@curvefi/llamalend-api 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/SUPPORT_LLv2.md +6 -0
- package/lib/constants/abis/ControllerV2.json +1891 -0
- package/lib/index.d.ts +2 -2
- package/lib/lendMarkets/LendMarketTemplate.d.ts +9 -5
- package/lib/lendMarkets/LendMarketTemplate.js +12 -11
- package/lib/lendMarkets/fetch/fetchLendMarkets.js +6 -1
- package/lib/lendMarkets/interfaces/v1/statsV1.d.ts +1 -0
- package/lib/lendMarkets/interfaces/v2/loanV2.d.ts +1 -1
- package/lib/lendMarkets/interfaces/v2/statsV2.d.ts +1 -0
- package/lib/lendMarkets/lendMarketConstructor.d.ts +1 -1
- package/lib/lendMarkets/lendMarketConstructor.js +6 -1
- package/lib/lendMarkets/modules/common/loanBase.d.ts +0 -1
- package/lib/lendMarkets/modules/common/loanBase.js +8 -23
- package/lib/lendMarkets/modules/common/statsBase.d.ts +4 -2
- package/lib/lendMarkets/modules/common/statsBase.js +56 -85
- package/lib/lendMarkets/modules/v1/loanV1.d.ts +1 -0
- package/lib/lendMarkets/modules/v1/loanV1.js +19 -0
- package/lib/lendMarkets/modules/v2/loanV2.d.ts +5 -0
- package/lib/lendMarkets/modules/v2/loanV2.js +57 -0
- package/lib/lendMarkets/modules/v2/statsV2.d.ts +2 -0
- package/lib/lendMarkets/modules/v2/statsV2.js +19 -0
- package/lib/lendMarkets/utils.d.ts +14 -0
- package/lib/lendMarkets/utils.js +31 -0
- package/lib/llamalend.d.ts +1 -1
- package/package.json +9 -3
- package/src/constants/abis/ControllerV2.json +1891 -0
- package/src/lendMarkets/LendMarketTemplate.ts +24 -19
- package/src/lendMarkets/fetch/fetchLendMarkets.ts +7 -1
- package/src/lendMarkets/interfaces/v1/statsV1.ts +1 -0
- package/src/lendMarkets/interfaces/v2/loanV2.ts +1 -1
- package/src/lendMarkets/interfaces/v2/statsV2.ts +1 -0
- package/src/lendMarkets/lendMarketConstructor.ts +6 -2
- package/src/lendMarkets/modules/common/loanBase.ts +9 -24
- package/src/lendMarkets/modules/common/statsBase.ts +74 -92
- package/src/lendMarkets/modules/v1/loanV1.ts +12 -1
- package/src/lendMarkets/modules/v2/loanV2.ts +55 -1
- package/src/lendMarkets/modules/v2/statsV2.ts +9 -1
- package/src/lendMarkets/utils.ts +44 -0
- package/src/llamalend.ts +1 -1
package/docs/SUPPORT_LLv2.md
CHANGED
|
@@ -143,6 +143,12 @@ This document tracks feature support across market versions.
|
|
|
143
143
|
| ammBalances() | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
144
144
|
| capAndAvailable() | ✅ | ✅ | ❌ | ✅ | ❌ |
|
|
145
145
|
|
|
146
|
+
## Stats Module (`market.stats`) new methods
|
|
147
|
+
| Method | v1 | v2 | Same logic | Same params | Same type |
|
|
148
|
+
|--------|----|----|-----------------|----------------------|-----------------------|
|
|
149
|
+
| adminPercentage() | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
150
|
+
|
|
151
|
+
|
|
146
152
|
---
|
|
147
153
|
|
|
148
154
|
## Wallet Module (`market.wallet`)
|