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

Add the retrieval of defiVault balance #12933

Open
wants to merge 86 commits into
base: main
Choose a base branch
from

Conversation

buchaoqun
Copy link
Contributor

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama):
Twitter Link:
List of audit links if any:
Website Link:
Logo (High resolution, will be shown with rounded borders):
Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
Github org/user (Optional, if your code is open source, we can track activity):

buchaoqun and others added 30 commits March 19, 2024 10:46
* commit '97ee4392d12648c863df1d751c85427df864283c': (69 commits)
  track imx zkevm
  update openeden
  bugfix
  track ctez
  Native (DefiLlama#9478)
  minor fix
  Adding Archly v2 TVL tracking for Blast, Filecoin, and Fraxtal (DefiLlama#9475)
  Update Bitflow adapter (DefiLlama#9474)
  add-kinto-chain (DefiLlama#9476)
  Update index.js (DefiLlama#9472)
  Add new USDC market on Base (DefiLlama#9471)
  Tvl-v2 (DefiLlama#9466)
  minor fix
  fix blast bridge
  fix era tokens (DefiLlama#9470)
  Created zkLink Nova adapter (DefiLlama#9469)
  created degendex adapter for tracking on defillama (DefiLlama#9467)
  add melegaswap adapter (DefiLlama#9468)
  add treasury and token for bitsCrunch (DefiLlama#9465)
  Added adapter for soildblast (DefiLlama#9463)
  ...

# Conflicts:
#	projects/solv-protocol-funds/index.js
Solv Funds del solvbtc
buchaoqun and others added 27 commits October 18, 2024 22:25
* 'main' of github.com:buchaoqun/DefiLlama-Adapters: (78 commits)
  Added new address for obelisk protocol (DefiLlama#12029)
  fix lac issue DefiLlama#12028
  update zetaearn DefiLlama#12026
  tron btc + btc wallets (DefiLlama#12030)
  track swapos tvl (DefiLlama#12025)
  add token mapping DefiLlama#12027
  feat: add rootstock chain (DefiLlama#12023)
  minor fix
  Metavault (DefiLlama#12022)
  add morkie adapter (DefiLlama#12021)
  Chainge (DefiLlama#12019)
  Add ZetaChain (DefiLlama#12017)
  Update Ulysses adapter - update branch port addresses (DefiLlama#12014)
  add astar (DefiLlama#12015)
  ModeMax V2 TVL (DefiLlama#12016)
  track root DefiLlama#12013
  update fbtc addresses (DefiLlama#11882)
  track hydro farm tvl DefiLlama#11883
  Fix aave (DefiLlama#11997)
  Added Zircuit Staking L2 TVL (DefiLlama#11941)
  ...
# Conflicts:
#	projects/solv-btc-lst/index.js
* 'main' of github.com:buchaoqun/DefiLlama-Adapters:
  Add SolanaHub Staked SOL (hubSOL)  (DefiLlama#12221)
  Add newly supported Rumpel assets (Primarly YTs) (DefiLlama#12223)
  AeraFinance - added new arbitrum Aera Vault Factory (DefiLlama#12224)
  track royco
  add commonwealth tvl (DefiLlama#12219)
  feat: add new base vault (w/morpho) on bakerfi (DefiLlama#12220)
  add ezETH and uniBTC vaults
  Add SKALE IMA Bridge (Native) to SKALE TVL (DefiLlama#12214)
  Add additional reserve managers and tokens (DefiLlama#12215)
  Magma v3 (DefiLlama#12216)
  Fix  pumpbtc adapter(addresses of other chains not read properly) (DefiLlama#12217)
  Add STAB Protocol adapter (DefiLlama#12218)
  🥕 added Carrot tvl adapter (DefiLlama#12205)
  Fix: Velvet v3 (DefiLlama#12213)
  add wallet
  add wallets
  [WIP] -Fix: Maker (DefiLlama#12211)
  Update Desyn strategy Pools (DefiLlama#12136)
  feat: udpate pumpbtc adapter logic (DefiLlama#12147)
# Conflicts:
#	projects/solv-btc-lst/index.js
* 'main' of github.com:buchaoqun/DefiLlama-Adapters:
  Update VaultCraft staking TVL: include stVCX (DefiLlama#12236)
  fix uniswap v3 DefiLlama#12235
  fix magma: DefiLlama#12234
  track reservoir DefiLlama#11478
  add ourbit adapter (DefiLlama#12233)
  feat: add Arbitrum deployment for Enzyme (DefiLlama#12232)
  update worldes DefiLlama#12184
* 'main' of github.com:buchaoqun/DefiLlama-Adapters:
  add staking
  Ensuro: adds native USDC in AAVE to the list of assets (DefiLlama#12243)
  Update an address in the D8X adapter (DefiLlama#12240)
  Add support for Arbitrum chain in PumpBTC (DefiLlama#12239)
  Fix: Fuji-v2 (DefiLlama#12238)
  Return api.sumTokens  (DefiLlama#12237)
* 'main' of github.com:buchaoqun/DefiLlama-Adapters: (38 commits)
  Update index.js
  add iotaevm
  add satoshi-perps
  remove duplication (not necessary tho)
  Ensuro: adds new contracts to the TVL calculation
  bedrock LRT: brBTC
  add morph config
  feat: add new stake pool
  add spooky v2 and v3 on sonic
  remove outdated file
  update Stability: add base, real, sonic
  DackieSwap update Dackie address and staking contract
  add shadow-cl
  add FIVA (https://www.thefiva.com) adapter
  Add BitUSD adapters
  Ensuro: adds native USDC in AAVE to the list of assets
  update the contracts of Magma to v3
  update the contracts of Magma to v3
  update DackieSwap V2 V3 on World Chain
  add spookyswap v3 dex
  ...
@llamabutler
Copy link

The adapter at projects/solv-protocol-funds exports TVL:

ethereum                  19.89 M
arbitrum                  7.33 M
merlin                    556.25 k
mantle                    1.03 k
bsc                       0
polygon                   0

total                    27.77 M 


const [slotTotalValue, nav] = await Promise.all([
api.call({ abi: abi.slotTotalValue, target: redemptionConcrete, params: [poolInfos.poolSFTInfo.latestRedeemSlot] }),
api.call({ abi: abi.getSubscribeNav, target: poolInfos.navOracle, params: [defiVaultData.poolId, api.timestamp * 1000] }),
Copy link
Collaborator

Choose a reason for hiding this comment

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

what are these contract methods doing? are the contracts verified? can this be calculated on chain instead? what is counted by defiVaultBalance()?

@waynebruce0x waynebruce0x self-assigned this Jan 10, 2025
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.

6 participants