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

first draft of thresher; processing yield and fees #139

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

gosuto-inzasheru
Copy link
Collaborator

@gosuto-inzasheru gosuto-inzasheru commented Feb 16, 2022

solution to #56

@gosuto-inzasheru gosuto-inzasheru marked this pull request as draft February 16, 2022 13:25
@gosuto-inzasheru
Copy link
Collaborator Author

ideally we wait for #28, #131 and badger tree emission redirection before editing and running this.

@gosuto-inzasheru gosuto-inzasheru marked this pull request as ready for review February 21, 2022 20:31
Copy link
Collaborator

@petrovska-petro petrovska-petro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Consolidating into key sett tokens: bvecvx, bcvxcrv & bibbtc ✅

  • Unwraps curve, sushi & uni ✅

  • Consolidate usdc, dai and usdt into 3pool ✅

Snap:

snapshot result for 0x042B32Ac6b453485e357938bdC38e0340d4b9276:
                              balance_before               balance_after                balance_delta
symbol                                                                                               
BADGER              5,000.000000000000000000   20,462.657579641411777907    15,462.657579641411777907
ibBTC                   0.038950617857484599        0.001331763539982798        -0.037618854317501801
DIGG                    0.078975719000000000        0.501798870000000000         0.422823151000000000
USDT                2,946.129307000000000000        0.000000000000000000    -2,946.129307000000000000
USDC              419,579.019201000000000000        0.000000000000000000  -419,579.019201000000000000
DAI               111,450.530166875737873018        0.000000000000000000  -111,450.530166875737873018
CRV                   931.548895506701708221        0.000000000000000000      -931.548895506701708221
WBTC                    0.601531700000000000        0.028248580000000000        -0.573283120000000000
renBTC                  0.139954720000000000        0.000699780000000000        -0.139254940000000000
WETH                   41.913058624872964898       91.653546680442072357        49.740488055569107459
bBADGER                98.049355725222614268        0.000000000000000000       -98.049355725222614268
crvRenWBTC              0.227771066825237180        0.000000000000000000        -0.227771066825237180
crvRenWSBTC             0.044418098780758964        0.001183824719320202        -0.043234274061438762
tbtc/sbtcCrv            0.119959810768566656        0.000000000000000000        -0.119959810768566656
SLP                     0.000000039313031053        0.000000000000000000        -0.000000039313031053
UNI-V2                  0.000000000316226766        0.000000000000000000        -0.000000000316226766
SLP                     0.000002256577742932        0.000000000000000000        -0.000002256577742932
SLP                   752.198636734524115950        0.000000000000000000      -752.198636734524115950
hCRV                    0.138509454978643360        0.000000000000000000        -0.138509454978643360
bBTC/sbtcCRV            0.009152098801314979        0.000000000000000000        -0.009152098801314979
oBTC/sbtcCRV            0.046465433934354089        0.000000000000000000        -0.046465433934354089
pBTC/sbtcCRV            0.002035191408957473        0.000000000000000000        -0.002035191408957473
ibbtc/sbtcCRV-f         0.060076571242109943        0.000000000000000000        -0.060076571242109943
crv3crypto              0.323173563701192738        0.000000000000000000        -0.323173563701192738
3Crv                    0.000000000000000000  523,217.869244564952582499   523,217.869244564952582499
MIM-3LP3CRV-f           0.039827993552528545        0.000000000000000000        -0.039827993552528545
FRAX3CRV-f              0.039706063903846634        0.000000000000000000        -0.039706063903846634
CVX                   390.337135617178279022        0.000000000000000000      -390.337135617178279022
cvxCRV              9,129.027440447304847181        0.000000000000000000    -9,129.027440447304847181
bcvxCRV            20,254.763318954187920209   27,601.671461081581751278     7,346.908142127393831069
bcrvRenWBTC             0.083705682871655912        0.000000000000000000        -0.083705682871655912
bveCVX              5,890.856337802452189800    6,281.193473419630468822       390.337135617178279022
bibbtc/sbtcCRV-f       22.244492276616633500       28.504683514044135314         6.260191237427501814
bcrv3crypto           104.411400561752669326        0.000000000000000000      -104.411400561752669326

@petrovska-petro petrovska-petro requested a review from a team February 22, 2022 12:37
Copy link
Contributor

@jalbrekt85 jalbrekt85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clever way to filter lp tokens from registry, token balances from snapshot look good

@gosuto-inzasheru gosuto-inzasheru merged commit 615d841 into main Feb 22, 2022
@gosuto-inzasheru gosuto-inzasheru deleted the issue/56_draft branch February 22, 2022 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants