Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

week 4: claim bribes and process into bvecvx emissions #26

Closed
gosuto-inzasheru opened this issue Jan 24, 2022 · 2 comments
Closed

week 4: claim bribes and process into bvecvx emissions #26

gosuto-inzasheru opened this issue Jan 24, 2022 · 2 comments
Assignees

Comments

@gosuto-inzasheru
Copy link
Collaborator

@gosuto-inzasheru
Copy link
Collaborator Author

notes from @GalloDaSballo :

Claim CVX bribes from Votium

Why

CVX Bribes that couldn't be claimed in the past can now be claimed

Technical

See Code from this test:
https://github.com/GalloDaSballo/vested-cvx/blob/6c5cbc84464fbfef4646bd702bb2e9b211668a1d/tests/test_claim_bribes.py#L150

Specifically

TOKEN = "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B"
INDEX = 684
AMOUNT = "0x6e4a3cd203a5a40000"
PROOF = [
    "0xde24992959a35e41f92dc070000fb59ade0b47f2399b2cbe7ec0126accc9f832",
    "0xe965287182073f2db7f8507458c9a1e168200f7973c155f5432e49dc51d80ed2",
    "0x53fba95706bb8bcfeb337fffb943c4ea708425185e2931139fdfe0e3f96ae49a",
    "0x9817ff39ca612d9b62f61f8e266df6a8d67b5406e339be58dd832e324851479e",
    "0x9fc0b7dc83afc55158b60d5709091348c4bc6f9a5263af5d42c5e70437a6db9e",
    "0xcbff70570ca71e83dbd2bdbd254c916a629092a73fd148675f55fdfb1ae85c4d",
    "0x0f53cd12926a48df89913df901b24def5d7b74f90b1e862f0103b575fcb7b0d2",
    "0x78266a424a8faf8964c0ad8ef984a56bb23daa585ce45ce549c72891f67c5619",
    "0x0395908c13baf6cf4dfb9ddba61bc7e02567fc186a4f8243ac970af4c290c634",
    "0x93fe0d6bdabadd863667aaa36cdbd1c48483b71ef903088ac2fca69964f1291e",
    "0x92313245368194a1e13309d50a3b382ea5185547fddd2651159a85936c8a7182"
]

def test_claim_votium_bribes(upgraded_strat, badger_tree, real_strategist, bribes_receiver):
  cvx_token = ERC20Upgradeable.at(TOKEN)
  balance_for_receiver_cvx = cvx_token.balanceOf(bribes_receiver)

  claim_tx = upgraded_strat.claimBribeFromVotium(
    TOKEN,
    INDEX,
    upgraded_strat,
    AMOUNT,
    PROOF,
    {"from": real_strategist}
  )

NOTE:

You may need to change the votium data based on when you do it, this is the last I got and was tested and running as of 24th Jan

Urgency

Anytime, just after the Upgrade of bveCVX to Version 1.4

@gosuto-inzasheru
Copy link
Collaborator Author

gosuto-inzasheru commented Jan 26, 2022

posted nonce 989: https://gnosis-safe.io/app/eth:0xB65cef03b9B89f99517643226d76e286ee999e77/transactions/0x0397a4d7e74befceecbdd86d65c5c0338cd3b4c08c606aad24b7b49e9b3b62e9

snapshot result for 0x6F76C6A1059093E21D8B1C13C4e20D8335e2909F:
              balance_before                 balance_after                 balance_delta
symbol                                                                                  
SPELL   0.000000000000000000  6,139,984.483299981205151366  6,139,984.483299981205151366
ALCX    0.000371370882048178         28.454111986823631026         28.453740615941582848
FXS     0.000000000000000000      3,760.448398630809763840      3,760.448398630809763840
LDO     0.000000000000000000     18,785.007052194171584512     18,785.007052194171584512
TRIBE   0.000000000000000000     24,657.691305197868941312     24,657.691305197868941312
OGN     0.000000000000000000     96,845.641140162732752896     96,845.641140162732752896

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Executed
Development

No branches or pull requests

1 participant