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 borrow related fields to damm-finance #368

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

sbbutler
Copy link
Contributor

@sbbutler sbbutler commented Oct 7, 2022

yeeee
ngl it feels like im doin sumthin wrong bcuz the apyRewardBorrow is too damm hiiiiigh
: )

@sbbutler sbbutler changed the title add borrow related fields add borrow related fields to damm-finance Oct 7, 2022
@llamatester
Copy link

The damm-finance adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 291 passed, 291 total
Snapshots: 0 total
Time: 0.422 s
Ran all test suites.

Nb of pools: 41
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬────────────────┬──────────┬────────────────────┬─────────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────────┬───────────────────┬─────┐
│ (index) │                         pool                          │   chain    │    project     │  symbol  │       tvlUsd       │       apyBase       │     apyReward      │                 underlyingTokens                 │                   rewardTokens                   │   apyBaseBorrow    │  apyRewardBorrow   │   totalSupplyUsd   │  totalBorrowUsd   │ ltv │
├─────────┼───────────────────────────────────────────────────────┼────────────┼────────────────┼──────────┼────────────────────┼─────────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────────┼───────────────────┼─────┤
│    0    │ '0xa3006250a22e1ca3c3f19fd1fb080c5dc65992c5-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dUSDC'  │ 1633620.4194276931 │ 0.8207349038531999  │ 21.740626900720645 │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │ 3.9426160943915995 │ 86.16259252065562  │ 2184922.0087909657 │ 551301.5893632725 │  0  │
│    1    │ '0x474a023313092ab7b69bc387e952f2e9616d0eaa-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dAUSDT' │ 1392635.4067666037 │          0          │ 16.295765325430864 │ [ '0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │         0          │ 22694059.772554524 │ 1392635.4067666037 │         0         │  0  │
│    2    │ '0x4b2ea02cfeac47ac1b33504900daa983aaaf5f9f-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dADAI'  │ 1070556.8677538873 │          0          │ 18.742269137278893 │ [ '0x028171bCA77440897B824Ca71D1c56caC55b68A3' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │         0          │ 20064664.942205645 │ 1070556.8677538873 │         0         │  0  │
│    3    │ '0xd8821e68d0c16b1e3fa2ba8dfc1013d245e06f77-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dCDAI'  │ 962991.3994910832  │          0          │ 21.11693201610478  │ [ '0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │         0          │ 20335423.915146805 │ 962991.3994910832  │         0         │  0  │
│    4    │ '0x5714eb15a226059202cdfa1bf304167e36752862-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dCUSDC' │ 825029.2472632595  │          0          │ 12.720227025351697 │ [ '0x39AA39c021dfbaE8faC545936693aC917d5E7563' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │         0          │ 10494559.327743681 │ 825029.2472632595  │         0         │  0  │
│    5    │ '0x4e6991d54a39092b76063bd26aad9d24b7a3c132-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dAUSDC' │ 727087.2154308868  │          0          │ 20.518560294824525 │ [ '0xBcca60bB61934080951369a648Fb03DF4F96263C' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │         0          │ 14918782.86941472  │ 727087.2154308868  │         0         │  0  │
│    6    │ '0xbf0852a95ec76e87f7431fa505b27937c9836372-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dUSDT'  │  570119.38625642   │   0.0556413026688   │ 28.232479492290913 │ [ '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │ 1.0265537256336001 │ 429.7259357988971  │  610209.414195381  │ 40090.02793896099 │  0  │
│    7    │ '0x1aa712bc9b16737ef98f15eeb841fc33b680901f-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dCUSDT' │  502803.267834842  │          0          │ 22.164931721365523 │ [ '0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │         0          │ 11144600.100838736 │  502803.267834842  │         0         │  0  │
│    8    │ '0x68fcd092fa88cb1972815de8afaaf318ef7d80ea-ethereum' │ 'Ethereum' │ 'damm-finance' │  'dDAI'  │ 479090.5448547738  │   0.0209286727164   │ 21.04449404189045  │ [ '0x6B175474E89094C44Da98b954EedeAC495271d0F' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │  0.6295842911412   │  522.28148637835   │ 499205.21769590874 │ 20114.67284113492 │  0  │
│    9    │ '0xf1667d8fa2a9d4a00717cb4f74cc698546acf602-ethereum' │ 'Ethereum' │ 'damm-finance' │ 'dFRAX'  │ 401506.16260160034 │ 0.15960038629679998 │ 16.29978000103993  │ [ '0x853d955aCEf822Db058eb8505911ED77F175b99e' ] │ [ '0xfa372fF1547fa1a283B5112a4685F1358CE5574d' ] │ 1.7386013326175997 │ 146.48790249301973 │ 451775.4344383689  │ 50269.27183676854 │  0  │
└─────────┴───────────────────────────────────────────────────────┴────────────┴────────────────┴──────────┴────────────────────┴─────────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────────┴───────────────────┴─────┘

@slasher125
Copy link
Collaborator

kek, that pretty insane. can't be correct?

@sbbutler
Copy link
Contributor Author

sbbutler commented Oct 8, 2022

🐳 i think it might be oke.... like iss only like dat because no one is borrowing and it would immediately start trending towards the apyReward rate the moment any significant borrows went thru.

n joshuagunn (core team on their discord) said Borrowers receive bdAMM as well hence double the amount (when asked y the bdamm emissions per day were double wat was going to suppliers)

sooo :llamashrug:

@slasher125
Copy link
Collaborator

gm ser. just seeing that ltv is 0 for every pool? 🤔

@sbbutler
Copy link
Contributor Author

i manually checked all 41 pools on etherscan... codes good me thinks.
mebe they don want borrowers using uncollateralized loans to borrow moar :llamashrug:

@sbbutler
Copy link
Contributor Author

sbbutler commented Oct 10, 2022

hol up i mean lenders cant use dtokens for collateral to borrow cuz only whitelisted users can borrow

@slasher125 slasher125 merged commit 00fbc73 into DefiLlama:master Oct 11, 2022
@slasher125
Copy link
Collaborator

ty, sorry for the many q. i forgot that damm is an institutional lending protocol

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