@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.
Files changed (39) hide show
  1. package/docs/SUPPORT_LLv2.md +6 -0
  2. package/lib/constants/abis/ControllerV2.json +1891 -0
  3. package/lib/index.d.ts +2 -2
  4. package/lib/lendMarkets/LendMarketTemplate.d.ts +9 -5
  5. package/lib/lendMarkets/LendMarketTemplate.js +12 -11
  6. package/lib/lendMarkets/fetch/fetchLendMarkets.js +6 -1
  7. package/lib/lendMarkets/interfaces/v1/statsV1.d.ts +1 -0
  8. package/lib/lendMarkets/interfaces/v2/loanV2.d.ts +1 -1
  9. package/lib/lendMarkets/interfaces/v2/statsV2.d.ts +1 -0
  10. package/lib/lendMarkets/lendMarketConstructor.d.ts +1 -1
  11. package/lib/lendMarkets/lendMarketConstructor.js +6 -1
  12. package/lib/lendMarkets/modules/common/loanBase.d.ts +0 -1
  13. package/lib/lendMarkets/modules/common/loanBase.js +8 -23
  14. package/lib/lendMarkets/modules/common/statsBase.d.ts +4 -2
  15. package/lib/lendMarkets/modules/common/statsBase.js +56 -85
  16. package/lib/lendMarkets/modules/v1/loanV1.d.ts +1 -0
  17. package/lib/lendMarkets/modules/v1/loanV1.js +19 -0
  18. package/lib/lendMarkets/modules/v2/loanV2.d.ts +5 -0
  19. package/lib/lendMarkets/modules/v2/loanV2.js +57 -0
  20. package/lib/lendMarkets/modules/v2/statsV2.d.ts +2 -0
  21. package/lib/lendMarkets/modules/v2/statsV2.js +19 -0
  22. package/lib/lendMarkets/utils.d.ts +14 -0
  23. package/lib/lendMarkets/utils.js +31 -0
  24. package/lib/llamalend.d.ts +1 -1
  25. package/package.json +9 -3
  26. package/src/constants/abis/ControllerV2.json +1891 -0
  27. package/src/lendMarkets/LendMarketTemplate.ts +24 -19
  28. package/src/lendMarkets/fetch/fetchLendMarkets.ts +7 -1
  29. package/src/lendMarkets/interfaces/v1/statsV1.ts +1 -0
  30. package/src/lendMarkets/interfaces/v2/loanV2.ts +1 -1
  31. package/src/lendMarkets/interfaces/v2/statsV2.ts +1 -0
  32. package/src/lendMarkets/lendMarketConstructor.ts +6 -2
  33. package/src/lendMarkets/modules/common/loanBase.ts +9 -24
  34. package/src/lendMarkets/modules/common/statsBase.ts +74 -92
  35. package/src/lendMarkets/modules/v1/loanV1.ts +12 -1
  36. package/src/lendMarkets/modules/v2/loanV2.ts +55 -1
  37. package/src/lendMarkets/modules/v2/statsV2.ts +9 -1
  38. package/src/lendMarkets/utils.ts +44 -0
  39. package/src/llamalend.ts +1 -1
@@ -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`)