Skip to content

Merging updates from defillama#3

Open
iagoLD wants to merge 6312 commits into
Window-Finance:masterfrom
DefiLlama:master
Open

Merging updates from defillama#3
iagoLD wants to merge 6312 commits into
Window-Finance:masterfrom
DefiLlama:master

Conversation

@iagoLD
Copy link
Copy Markdown

@iagoLD iagoLD commented Jul 18, 2022

No description provided.

slasher125 and others added 28 commits April 20, 2026 09:56
* 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
slasher125 and others added 30 commits May 29, 2026 10:18
* 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>
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.