Merging updates from defillama#3
Open
iagoLD wants to merge 6312 commits into
Open
Conversation
* justlend retry and batch req * remove console log
* feat: add ink to velodrome-v3 * tweaks * fix chain links
* perf: multicalls, pagination, parallelized 348s to 171s * use promise all settled * fix
* add omnipair yield adapter scaffold * add omnipair yield adapter * fix omnipair pool id casing and preserve null apr * Update omnipair
* morpho chain separation * keep strict key logic * use promiseAllSettled * more improvements
* ref: reduce to 1 api req with retry * better error handling
* optimisations to fix lambda timeout * fetch required tokens metadata * clear timeout
Added 'blockchain-capital' to the exclusion list with a detailed comment regarding its reporting issues.
* treehouse more resilient * tweaks * revert negative apy change
* prefer subgraph * healthy threshold * probe fix
* fix: url structure and add eth support * defensive fix for rewards
* feat: add unitas bsc pool yield * feat: add unitas bsc pool yield * feat: add unitas bsc pool yield * fix: series of failures * fix: pool error * fix: pool error * fix: tvlUsd --------- Co-authored-by: June <june.zhu@unipay.fi>
* feat: add credit adapter * refactor: read interest rate params from parameters contract
* b14g adapter improvements * dry refactor
* added travessia adapter * updated travessia apy to fetch vaults dynamically * fixed coderabbit suggestions * adressed issues + minor cleanup * renamed folder to travessia-credit
* Add Flying Tulip ftUSD APY adapter sftUSD is the staked form of ftUSD, Flying Tulip's yield-bearing stablecoin. APY is funded entirely by FT rewards: protocol fees from ftUSD MintAndRedeem are used to buy FT on the open market and FT is distributed to stakers per epoch through the EpochRewardsVault. FT total supply is fixed so nothing is minted. The adapter reads sftUSD.totalSupply() for tvlUsd (1:1 with USD because ftUSD is dollar pegged and the vault is a 1:1 ERC4626) and sums the rewardAmount field of EpochSettled events from the trailing 30 days, priced via coins.llama.fi. APY is annualised over the 30 day window. Reads on chain only, no centralised API dependency. Verified locally: Ethereum: tvlUsd=$496,429.90, apyReward=2.19% Sonic: tvlUsd=$340,619.84, apyReward=2.44% TVL matches api.flyingtulip.com/ftusd/staking exactly. * Address codex review on flying-tulip-ftusd - Sum rewards in the BigInt domain and only convert to Number after scaling down by 10^12 wei. The previous direct Number(totalRewardWei) cast lost precision once a single epoch's rewardAmount went past 2^53 (around 0.009 FT). - Treat a missing or zero FT price from coins.llama.fi as soft fail (apyReward = 0) instead of throwing. A transient pricing miss shouldn't drop both pools. * set apyreward as null if price missing * refactor use timestamp lookback period --------- Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com>
This file contains hidden or 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
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.
No description provided.