-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
buchaoqun
wants to merge
86
commits into
DefiLlama:main
Choose a base branch
from
solv-finance-dev:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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
* '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 ...
The adapter at projects/solv-protocol-funds exports TVL:
|
|
||
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] }), |
There was a problem hiding this comment.
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()?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.json
file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CIName (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):