diff --git a/contracts/VeSugar.vy b/contracts/VeSugar.vy index 942703f..5f5b3c3 100644 --- a/contracts/VeSugar.vy +++ b/contracts/VeSugar.vy @@ -28,6 +28,7 @@ struct VeNFT: token: address permanent: bool delegate_id: uint256 + managed_id: uint256 # Our contracts / Interfaces @@ -200,5 +201,6 @@ def _byId(_id: uint256) -> VeNFT: votes: votes, token: self.token, permanent: perma, - delegate_id: delegate_id + delegate_id: delegate_id, + managed_id: managed_id }) diff --git a/env.example b/env.example index a65f0b7..1fddf8d 100644 --- a/env.example +++ b/env.example @@ -4,9 +4,9 @@ DIST_ADDRESS=0x9D4736EC60715e71aFe72973f7885DCBC21EA99b CONVERTOR_ADDRESS=0x585Af0b397AC42dbeF7f18395426BF878634f18D RELAY_REGISTRY_ADDRESSES=0xe9F00f2e61CB0c6fb00A2e457546aCbF0fC303C2,0x6b1253B116B5919932399295C75116d33F8EfF96 SLIPSTREAM_HELPER_ADDRESS=0x5Bd7E2221C2d59c99e6A9Cd18D80A5F4257D0f32 -GOVERNOR_ADDRESS=0x0000000000000000000000000000000000000000 +GOVERNOR_ADDRESS=0x1F82e10D58aEf03DeA2e478029fB0387A1cbE989 LP_SUGAR_ADDRESS=0xDa888C610a00686A3cce21b7F4A45A5e52eFa572 -VE_SUGAR_ADDRESS=0x37403dBd6f1b583ea244F7956fF9e37EF45c63eB +VE_SUGAR_ADDRESS=0x94f913362b232e31daB49a1aFB775cfd25DaA6a1 RELAY_SUGAR_ADDRESS=0xb8307e5842B9aeE75C704183F0355076aa74b4e2 # For testing purposes diff --git a/readme.md b/readme.md index 03f305e..0ccda20 100644 --- a/readme.md +++ b/readme.md @@ -155,7 +155,7 @@ To fetch a list of rewards for a specific veNFT, this method is available: ### Vote-Escrow Locked NFT (veNFT) Data > [!NOTE] -> `VeSugar.vy` is deployed at `0x37403dBd6f1b583ea244F7956fF9e37EF45c63eB` +> `VeSugar.vy` is deployed at `0x94f913362b232e31daB49a1aFB775cfd25DaA6a1` It allows fetching on-chain veNFT data (including the rewards accrued). The returned data/struct of type `VeNFT` values represent: diff --git a/tests/test_ve_sugar.py b/tests/test_ve_sugar.py index 77fc40d..7a06c38 100644 --- a/tests/test_ve_sugar.py +++ b/tests/test_ve_sugar.py @@ -31,7 +31,7 @@ def test_byId(sugar_contract, VeNFTStruct): venft = VeNFTStruct(*sugar_contract.byId(1)) assert venft is not None - assert len(venft) == 13 + assert len(venft) == 14 assert venft.id is not None assert len(venft.votes) > 0 assert venft.voted_at > 0 @@ -45,7 +45,7 @@ def test_byAccount(sugar_contract, VeNFTStruct): )) assert venft is not None - assert len(venft) == 13 + assert len(venft) == 14 assert venft.account == acc_venft[0].account