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: shapeshift multichain update #13157

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

firebomb1
Copy link
Contributor

Adds the missing data from the various chains where the FOX token, ShapeShift DAO's native token, lives (Ethereum, Aribtrum, Gnosis and Polygon) and where it has locked value (even if none qualifies as our protocol TVL per DefiLlama's methodology):

  • A new ETH/FOX LP staking staking farm on Ethereum (0xe7e16e2b05440c2e484c5c41ac3e5a4d15da2744). This is an evergreen contract so we shouldn't need to add new ones on Ethereum after that (hopefully).
  • RFOX. This is a "FOX on Arbitrum" (0xf929de51d91c77e42f5090069e0ad7a09e513c73) staking contract deployed on Arbitrum (Proxy: 0xac2a4fd70bcd8bab0662960455c363735f0e2b56, Implementation:0x4f9c6a6cc987de98c8109e121516008906a899c9). It is single asset staking, 28 days lock minimum, with yield distributed in RUNE on Thorchain. It serves as a way for our DAO to do both revenue sharing with stakers and FOX burning monthly.

Few things of note:

  • I've moved the ETH/FOX LP token staking in ethereum to staking because they are effectively a staking farm and not just a liquidity pool... and since we should not double count them, under pool2 we have another pool that is not used for farming/staking.
    • I would like to know the benefits of using staking to list these? Aren't we missing out on counting tokens that might be in the Uniswap v2 pool but aren't staked in any of the staking farms? If so, shouldn't we instead just remove all the staking/farms and only list the two pools under pool2 (Uniswap v2 and v3)?
  • I've this PR it and the values appear to be correct for all chains but I would appreciate a sanity check, especially around the RFOX proxy/contract, as it is a custom contract/implementation. It seems to work with stakings(), but I do not know all of the details of this functions and maybe the particularities of the RFOX contract.

If that might be useful for the tests, we maintain a dashboard with the LP on these various chains here: https://flipsidecrypto.xyz/Rayyyk/shapeshift-lp-dashboard-ciW_N4 . It isn't live data, it has to be refreshed, and doesn't list USD values for the FOX share of the pools unfortunately, but it could still be of use. For RFOX we maintain a dashboard here with the total FOX locked: https://dune.com/shapeshift/rfox

@llamabutler
Copy link

The adapter at projects/shapeshift exports TVL:

staking                   5.60 M
ethereum-staking          2.94 M
arbitrum-staking          2.66 M
pool2                     245.97 k
arbitrum-pool2            96.23 k
polygon-pool2             76.56 k
xdai-pool2                73.17 k
ethereum-pool2            0
ethereum                  0
arbitrum                  0
polygon                   0
xdai                      0

total                    0 

@waynebruce0x waynebruce0x merged commit f6967b2 into DefiLlama:main Jan 20, 2025
1 check passed
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