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

feat(abracadabra): Add support for compounded ARB reward distribution for GM strategies #1116

Conversation

0xmDreamy
Copy link
Contributor

@0xmDreamy 0xmDreamy commented Dec 13, 2023

Added the Abracadabra's DegenBox strategies for the various GM markets. All ARB rewards earned for the GM tokens held in the DegenBox will be compounded into more GM tokens and distributed through the strategies regardless of the amount that is managed by the strategy. Thus, ignoreTargetPercentage was added to consider this.

@llamatester
Copy link

The abracadabra adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 393 passed, 393 total
Snapshots: 0 total
Time: 0.346 s
Ran all test suites.

Nb of pools: 75
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────┬────────────┬─────────────────────────┬────────────────────┬───────────────┬────────────────────┬────────────────────┬──────┬────────────────────┬────────────┬────────────────────┬───────────────┬───────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────┬─────┬───────────────┐
│ (index) │                              pool                              │   chain    │         symbol          │       tvlUsd       │ apyBaseBorrow │   totalSupplyUsd   │   totalBorrowUsd   │ ltv  │   debtCeilingUsd   │ mintedCoin │      apyBase       │    project    │     apyReward     │                                          rewardTokens                                          │                                                               underlyingTokens                                                               │                   url                    │ apy │   poolMeta    │
├─────────┼────────────────────────────────────────────────────────────────┼────────────┼─────────────────────────┼────────────────────┼───────────────┼────────────────────┼────────────────────┼──────┼────────────────────┼────────────┼────────────────────┼───────────────┼───────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────┼─────┼───────────────┤
│    0    │     '0x920d9bd936da4eafb5e25c6bdc9f6cb528953f9f-ethereum'      │ 'Ethereum' │        'YVWETH'         │ 61525101.725237094 │       0       │ 61525101.725237094 │ 11072812.856209531 │ 0.8  │ 11072859.386629358 │   'MIM'    │      3.49372       │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │     │               │
│    1    │     '0x4eaed76c3a388f4a841e9c765560bbe7b3e4b3a0-ethereum'      │ 'Ethereum' │ 'STKCVXCRV3CRYPTO-ABRA' │ 25322392.831272513 │      3.5      │ 25322392.831272513 │ 11461185.990064163 │ 0.9  │ 11461185.990064163 │   'MIM'    │        1.25        │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │     │               │
│    2    │     '0x6d2070b13929df15b13d96cfc509c574168988cd-arbitrum'      │ 'Arbitrum' │     'MIM/USDC/USDT'     │ 16924743.06392996  │               │                    │                    │      │                    │            │      0.48646       │ 'abracadabra' │ 36.24218857454067 │ [ '0x912CE59144191C1204E64559FE8253a0e49E6548', '0x3E6648C5a70A150A88bCE65F4aD4d506Fe15d2AF' ] │ [ '0xFEa7a6a0B346362BF88A9e4A88416B77a57D6c2A', '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9' ] │ 'https://app.abracadabra.money/#/farm/4' │     │               │
│    3    │ '0x85667409a723684fe1e57dd1abde8d88c2f54214-magicglp-arbitrum' │ 'Arbitrum' │       'MAGICGLP'        │ 14195769.772437377 │               │                    │                    │      │                    │            │ 20.655343374310764 │ 'abracadabra' │                   │                                                                                                │                                               [ '0x4277f8f2c384827b5273592ff7cebd9f2c1ac258' ]                                               │                                          │     │               │
│    4    │     '0x726413d7402ff180609d0ebc79506df8633701b1-arbitrum'      │ 'Arbitrum' │         'MGLP'          │ 13825421.775413364 │       7       │ 13825421.775413364 │  6508178.2594105   │ 0.75 │  6508178.2594105   │   'MIM'    │      20.59351      │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │     │               │
│    5    │     '0x1062eb452f8c7a94276437ec1f4aaca9b1495b72-ethereum'      │ 'Ethereum' │        'S*USDT'         │ 6463778.385668216  │       0       │ 6463778.385668216  │ 4437055.699045559  │ 0.99 │      8961498       │   'MIM'    │                    │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │  0  │ 'Whitelisted' │
│    6    │     '0xd7659d913430945600dfe875434b6d80646d552a-arbitrum'      │ 'Arbitrum' │      'WBTC.B-USDC'      │ 4356719.630122666  │       5       │ 4356719.630122666  │ 3099873.668495871  │ 0.85 │ 3099873.668495871  │   'MIM'    │     18.6671064     │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │     │               │
│    7    │     '0x2b02bbeab8ecab792d3f4dda7a76f63aa21934fa-arbitrum'      │ 'Arbitrum' │       'ETH-USDC'        │ 4340542.705807846  │       5       │ 4340542.705807846  │ 3094895.6461093617 │ 0.85 │ 3094895.6461093617 │   'MIM'    │     20.744128      │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │     │               │
│    8    │     '0xc89958b03a55b5de2221acb25b58b89a000215e6-arbitrum'      │ 'Arbitrum' │         'WETH'          │ 4089810.825125744  │      0.5      │ 4089810.825125744  │ 1292193.4190207275 │ 0.85 │ 1292193.4190207275 │   'MIM'    │                    │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │  0  │               │
│    9    │     '0x7962acfcfc2ccebc810045391d60040f635404fb-arbitrum'      │ 'Arbitrum' │       'SOL-USDC'        │ 3399479.8920022673 │     6.89      │ 3399479.8920022673 │ 2054798.348293664  │ 0.75 │ 2091348.5344768343 │   'MIM'    │ 42.818030400000005 │ 'abracadabra' │                   │                                                                                                │                                                                                                                                              │                                          │     │               │
└─────────┴────────────────────────────────────────────────────────────────┴────────────┴─────────────────────────┴────────────────────┴───────────────┴────────────────────┴────────────────────┴──────┴────────────────────┴────────────┴────────────────────┴───────────────┴───────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────┴─────┴───────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit 90617ec into DefiLlama:master Dec 13, 2023
1 check passed
@0xmDreamy 0xmDreamy deleted the feature/abracadabra-gm-reward-strategies branch December 13, 2023 13:01
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.

3 participants