@underscore-finance/sdk 1.2.13 → 1.2.14

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.
@@ -860,6 +860,59 @@ export const abi = [
860
860
  },
861
861
  ],
862
862
  },
863
+ {
864
+ stateMutability: 'view',
865
+ type: 'function',
866
+ name: 'getSavingsGreenBalances',
867
+ inputs: [],
868
+ outputs: [
869
+ {
870
+ name: '',
871
+ type: 'uint256',
872
+ },
873
+ {
874
+ name: '',
875
+ type: 'uint256',
876
+ },
877
+ {
878
+ name: '',
879
+ type: 'uint256',
880
+ },
881
+ {
882
+ name: '',
883
+ type: 'uint256',
884
+ },
885
+ ],
886
+ },
887
+ {
888
+ stateMutability: 'view',
889
+ type: 'function',
890
+ name: 'getSavingsGreenBalances',
891
+ inputs: [
892
+ {
893
+ name: '_ripeHq',
894
+ type: 'address',
895
+ },
896
+ ],
897
+ outputs: [
898
+ {
899
+ name: '',
900
+ type: 'uint256',
901
+ },
902
+ {
903
+ name: '',
904
+ type: 'uint256',
905
+ },
906
+ {
907
+ name: '',
908
+ type: 'uint256',
909
+ },
910
+ {
911
+ name: '',
912
+ type: 'uint256',
913
+ },
914
+ ],
915
+ },
863
916
  {
864
917
  stateMutability: 'view',
865
918
  type: 'function',
@@ -1286,6 +1339,35 @@ export const abi = [
1286
1339
  },
1287
1340
  ],
1288
1341
  },
1342
+ {
1343
+ stateMutability: 'view',
1344
+ type: 'function',
1345
+ name: 'getAvailableUsdcFromEndaomentPsm',
1346
+ inputs: [],
1347
+ outputs: [
1348
+ {
1349
+ name: '',
1350
+ type: 'uint256',
1351
+ },
1352
+ ],
1353
+ },
1354
+ {
1355
+ stateMutability: 'view',
1356
+ type: 'function',
1357
+ name: 'getAvailableUsdcFromEndaomentPsm',
1358
+ inputs: [
1359
+ {
1360
+ name: '_ripeHq',
1361
+ type: 'address',
1362
+ },
1363
+ ],
1364
+ outputs: [
1365
+ {
1366
+ name: '',
1367
+ type: 'uint256',
1368
+ },
1369
+ ],
1370
+ },
1289
1371
  {
1290
1372
  stateMutability: 'view',
1291
1373
  type: 'function',
@@ -1475,7 +1557,7 @@ export const abi = [
1475
1557
  type: 'address',
1476
1558
  },
1477
1559
  {
1478
- name: '_netUserCapital',
1560
+ name: '_totalAssets',
1479
1561
  type: 'uint256',
1480
1562
  },
1481
1563
  ],
@@ -1512,7 +1594,7 @@ export const abi = [
1512
1594
  type: 'address',
1513
1595
  },
1514
1596
  {
1515
- name: '_netUserCapital',
1597
+ name: '_totalAssets',
1516
1598
  type: 'uint256',
1517
1599
  },
1518
1600
  {
@@ -1553,7 +1635,7 @@ export const abi = [
1553
1635
  type: 'address',
1554
1636
  },
1555
1637
  {
1556
- name: '_netUserCapital',
1638
+ name: '_totalAssets',
1557
1639
  type: 'uint256',
1558
1640
  },
1559
1641
  {
@@ -1598,7 +1680,7 @@ export const abi = [
1598
1680
  type: 'address',
1599
1681
  },
1600
1682
  {
1601
- name: '_netUserCapital',
1683
+ name: '_totalAssets',
1602
1684
  type: 'uint256',
1603
1685
  },
1604
1686
  {
@@ -1647,7 +1729,7 @@ export const abi = [
1647
1729
  type: 'address',
1648
1730
  },
1649
1731
  {
1650
- name: '_netUserCapital',
1732
+ name: '_totalAssets',
1651
1733
  type: 'uint256',
1652
1734
  },
1653
1735
  {
@@ -1700,7 +1782,7 @@ export const abi = [
1700
1782
  type: 'address',
1701
1783
  },
1702
1784
  {
1703
- name: '_netUserCapital',
1785
+ name: '_totalAssets',
1704
1786
  type: 'uint256',
1705
1787
  },
1706
1788
  {
@@ -1794,6 +1876,947 @@ export const abi = [
1794
1876
  },
1795
1877
  ],
1796
1878
  },
1879
+ {
1880
+ stateMutability: 'view',
1881
+ type: 'function',
1882
+ name: 'getNetUserDebt',
1883
+ inputs: [
1884
+ {
1885
+ name: '_levgVault',
1886
+ type: 'address',
1887
+ },
1888
+ ],
1889
+ outputs: [
1890
+ {
1891
+ name: '',
1892
+ type: 'uint256',
1893
+ },
1894
+ ],
1895
+ },
1896
+ {
1897
+ stateMutability: 'view',
1898
+ type: 'function',
1899
+ name: 'getNetUserDebt',
1900
+ inputs: [
1901
+ {
1902
+ name: '_levgVault',
1903
+ type: 'address',
1904
+ },
1905
+ {
1906
+ name: '_ripeVaultBook',
1907
+ type: 'address',
1908
+ },
1909
+ ],
1910
+ outputs: [
1911
+ {
1912
+ name: '',
1913
+ type: 'uint256',
1914
+ },
1915
+ ],
1916
+ },
1917
+ {
1918
+ stateMutability: 'view',
1919
+ type: 'function',
1920
+ name: 'getNetUserDebt',
1921
+ inputs: [
1922
+ {
1923
+ name: '_levgVault',
1924
+ type: 'address',
1925
+ },
1926
+ {
1927
+ name: '_ripeVaultBook',
1928
+ type: 'address',
1929
+ },
1930
+ {
1931
+ name: '_ripeMissionControl',
1932
+ type: 'address',
1933
+ },
1934
+ ],
1935
+ outputs: [
1936
+ {
1937
+ name: '',
1938
+ type: 'uint256',
1939
+ },
1940
+ ],
1941
+ },
1942
+ {
1943
+ stateMutability: 'view',
1944
+ type: 'function',
1945
+ name: 'getNetUserDebt',
1946
+ inputs: [
1947
+ {
1948
+ name: '_levgVault',
1949
+ type: 'address',
1950
+ },
1951
+ {
1952
+ name: '_ripeVaultBook',
1953
+ type: 'address',
1954
+ },
1955
+ {
1956
+ name: '_ripeMissionControl',
1957
+ type: 'address',
1958
+ },
1959
+ {
1960
+ name: '_ripeHq',
1961
+ type: 'address',
1962
+ },
1963
+ ],
1964
+ outputs: [
1965
+ {
1966
+ name: '',
1967
+ type: 'uint256',
1968
+ },
1969
+ ],
1970
+ },
1971
+ {
1972
+ stateMutability: 'view',
1973
+ type: 'function',
1974
+ name: 'getDebtToDepositRatio',
1975
+ inputs: [
1976
+ {
1977
+ name: '_levgVault',
1978
+ type: 'address',
1979
+ },
1980
+ ],
1981
+ outputs: [
1982
+ {
1983
+ name: '',
1984
+ type: 'uint256',
1985
+ },
1986
+ ],
1987
+ },
1988
+ {
1989
+ stateMutability: 'view',
1990
+ type: 'function',
1991
+ name: 'getDebtToDepositRatio',
1992
+ inputs: [
1993
+ {
1994
+ name: '_levgVault',
1995
+ type: 'address',
1996
+ },
1997
+ {
1998
+ name: '_underlyingAsset',
1999
+ type: 'address',
2000
+ },
2001
+ ],
2002
+ outputs: [
2003
+ {
2004
+ name: '',
2005
+ type: 'uint256',
2006
+ },
2007
+ ],
2008
+ },
2009
+ {
2010
+ stateMutability: 'view',
2011
+ type: 'function',
2012
+ name: 'getDebtToDepositRatio',
2013
+ inputs: [
2014
+ {
2015
+ name: '_levgVault',
2016
+ type: 'address',
2017
+ },
2018
+ {
2019
+ name: '_underlyingAsset',
2020
+ type: 'address',
2021
+ },
2022
+ {
2023
+ name: '_collateralVaultToken',
2024
+ type: 'address',
2025
+ },
2026
+ ],
2027
+ outputs: [
2028
+ {
2029
+ name: '',
2030
+ type: 'uint256',
2031
+ },
2032
+ ],
2033
+ },
2034
+ {
2035
+ stateMutability: 'view',
2036
+ type: 'function',
2037
+ name: 'getDebtToDepositRatio',
2038
+ inputs: [
2039
+ {
2040
+ name: '_levgVault',
2041
+ type: 'address',
2042
+ },
2043
+ {
2044
+ name: '_underlyingAsset',
2045
+ type: 'address',
2046
+ },
2047
+ {
2048
+ name: '_collateralVaultToken',
2049
+ type: 'address',
2050
+ },
2051
+ {
2052
+ name: '_collateralVaultTokenRipeVaultId',
2053
+ type: 'uint256',
2054
+ },
2055
+ ],
2056
+ outputs: [
2057
+ {
2058
+ name: '',
2059
+ type: 'uint256',
2060
+ },
2061
+ ],
2062
+ },
2063
+ {
2064
+ stateMutability: 'view',
2065
+ type: 'function',
2066
+ name: 'getDebtToDepositRatio',
2067
+ inputs: [
2068
+ {
2069
+ name: '_levgVault',
2070
+ type: 'address',
2071
+ },
2072
+ {
2073
+ name: '_underlyingAsset',
2074
+ type: 'address',
2075
+ },
2076
+ {
2077
+ name: '_collateralVaultToken',
2078
+ type: 'address',
2079
+ },
2080
+ {
2081
+ name: '_collateralVaultTokenRipeVaultId',
2082
+ type: 'uint256',
2083
+ },
2084
+ {
2085
+ name: '_leverageVaultToken',
2086
+ type: 'address',
2087
+ },
2088
+ ],
2089
+ outputs: [
2090
+ {
2091
+ name: '',
2092
+ type: 'uint256',
2093
+ },
2094
+ ],
2095
+ },
2096
+ {
2097
+ stateMutability: 'view',
2098
+ type: 'function',
2099
+ name: 'getDebtToDepositRatio',
2100
+ inputs: [
2101
+ {
2102
+ name: '_levgVault',
2103
+ type: 'address',
2104
+ },
2105
+ {
2106
+ name: '_underlyingAsset',
2107
+ type: 'address',
2108
+ },
2109
+ {
2110
+ name: '_collateralVaultToken',
2111
+ type: 'address',
2112
+ },
2113
+ {
2114
+ name: '_collateralVaultTokenRipeVaultId',
2115
+ type: 'uint256',
2116
+ },
2117
+ {
2118
+ name: '_leverageVaultToken',
2119
+ type: 'address',
2120
+ },
2121
+ {
2122
+ name: '_totalAssets',
2123
+ type: 'uint256',
2124
+ },
2125
+ ],
2126
+ outputs: [
2127
+ {
2128
+ name: '',
2129
+ type: 'uint256',
2130
+ },
2131
+ ],
2132
+ },
2133
+ {
2134
+ stateMutability: 'view',
2135
+ type: 'function',
2136
+ name: 'getDebtToDepositRatio',
2137
+ inputs: [
2138
+ {
2139
+ name: '_levgVault',
2140
+ type: 'address',
2141
+ },
2142
+ {
2143
+ name: '_underlyingAsset',
2144
+ type: 'address',
2145
+ },
2146
+ {
2147
+ name: '_collateralVaultToken',
2148
+ type: 'address',
2149
+ },
2150
+ {
2151
+ name: '_collateralVaultTokenRipeVaultId',
2152
+ type: 'uint256',
2153
+ },
2154
+ {
2155
+ name: '_leverageVaultToken',
2156
+ type: 'address',
2157
+ },
2158
+ {
2159
+ name: '_totalAssets',
2160
+ type: 'uint256',
2161
+ },
2162
+ {
2163
+ name: '_legoBook',
2164
+ type: 'address',
2165
+ },
2166
+ ],
2167
+ outputs: [
2168
+ {
2169
+ name: '',
2170
+ type: 'uint256',
2171
+ },
2172
+ ],
2173
+ },
2174
+ {
2175
+ stateMutability: 'view',
2176
+ type: 'function',
2177
+ name: 'getDebtToDepositRatio',
2178
+ inputs: [
2179
+ {
2180
+ name: '_levgVault',
2181
+ type: 'address',
2182
+ },
2183
+ {
2184
+ name: '_underlyingAsset',
2185
+ type: 'address',
2186
+ },
2187
+ {
2188
+ name: '_collateralVaultToken',
2189
+ type: 'address',
2190
+ },
2191
+ {
2192
+ name: '_collateralVaultTokenRipeVaultId',
2193
+ type: 'uint256',
2194
+ },
2195
+ {
2196
+ name: '_leverageVaultToken',
2197
+ type: 'address',
2198
+ },
2199
+ {
2200
+ name: '_totalAssets',
2201
+ type: 'uint256',
2202
+ },
2203
+ {
2204
+ name: '_legoBook',
2205
+ type: 'address',
2206
+ },
2207
+ {
2208
+ name: '_ripeVaultBook',
2209
+ type: 'address',
2210
+ },
2211
+ ],
2212
+ outputs: [
2213
+ {
2214
+ name: '',
2215
+ type: 'uint256',
2216
+ },
2217
+ ],
2218
+ },
2219
+ {
2220
+ stateMutability: 'view',
2221
+ type: 'function',
2222
+ name: 'getDebtToDepositRatio',
2223
+ inputs: [
2224
+ {
2225
+ name: '_levgVault',
2226
+ type: 'address',
2227
+ },
2228
+ {
2229
+ name: '_underlyingAsset',
2230
+ type: 'address',
2231
+ },
2232
+ {
2233
+ name: '_collateralVaultToken',
2234
+ type: 'address',
2235
+ },
2236
+ {
2237
+ name: '_collateralVaultTokenRipeVaultId',
2238
+ type: 'uint256',
2239
+ },
2240
+ {
2241
+ name: '_leverageVaultToken',
2242
+ type: 'address',
2243
+ },
2244
+ {
2245
+ name: '_totalAssets',
2246
+ type: 'uint256',
2247
+ },
2248
+ {
2249
+ name: '_legoBook',
2250
+ type: 'address',
2251
+ },
2252
+ {
2253
+ name: '_ripeVaultBook',
2254
+ type: 'address',
2255
+ },
2256
+ {
2257
+ name: '_ripeMissionControl',
2258
+ type: 'address',
2259
+ },
2260
+ ],
2261
+ outputs: [
2262
+ {
2263
+ name: '',
2264
+ type: 'uint256',
2265
+ },
2266
+ ],
2267
+ },
2268
+ {
2269
+ stateMutability: 'view',
2270
+ type: 'function',
2271
+ name: 'getDebtToDepositRatio',
2272
+ inputs: [
2273
+ {
2274
+ name: '_levgVault',
2275
+ type: 'address',
2276
+ },
2277
+ {
2278
+ name: '_underlyingAsset',
2279
+ type: 'address',
2280
+ },
2281
+ {
2282
+ name: '_collateralVaultToken',
2283
+ type: 'address',
2284
+ },
2285
+ {
2286
+ name: '_collateralVaultTokenRipeVaultId',
2287
+ type: 'uint256',
2288
+ },
2289
+ {
2290
+ name: '_leverageVaultToken',
2291
+ type: 'address',
2292
+ },
2293
+ {
2294
+ name: '_totalAssets',
2295
+ type: 'uint256',
2296
+ },
2297
+ {
2298
+ name: '_legoBook',
2299
+ type: 'address',
2300
+ },
2301
+ {
2302
+ name: '_ripeVaultBook',
2303
+ type: 'address',
2304
+ },
2305
+ {
2306
+ name: '_ripeMissionControl',
2307
+ type: 'address',
2308
+ },
2309
+ {
2310
+ name: '_ripeHq',
2311
+ type: 'address',
2312
+ },
2313
+ ],
2314
+ outputs: [
2315
+ {
2316
+ name: '',
2317
+ type: 'uint256',
2318
+ },
2319
+ ],
2320
+ },
2321
+ {
2322
+ stateMutability: 'view',
2323
+ type: 'function',
2324
+ name: 'getDebtUtilization',
2325
+ inputs: [
2326
+ {
2327
+ name: '_levgVault',
2328
+ type: 'address',
2329
+ },
2330
+ ],
2331
+ outputs: [
2332
+ {
2333
+ name: '',
2334
+ type: 'uint256',
2335
+ },
2336
+ ],
2337
+ },
2338
+ {
2339
+ stateMutability: 'view',
2340
+ type: 'function',
2341
+ name: 'getDebtUtilization',
2342
+ inputs: [
2343
+ {
2344
+ name: '_levgVault',
2345
+ type: 'address',
2346
+ },
2347
+ {
2348
+ name: '_underlyingAsset',
2349
+ type: 'address',
2350
+ },
2351
+ ],
2352
+ outputs: [
2353
+ {
2354
+ name: '',
2355
+ type: 'uint256',
2356
+ },
2357
+ ],
2358
+ },
2359
+ {
2360
+ stateMutability: 'view',
2361
+ type: 'function',
2362
+ name: 'getDebtUtilization',
2363
+ inputs: [
2364
+ {
2365
+ name: '_levgVault',
2366
+ type: 'address',
2367
+ },
2368
+ {
2369
+ name: '_underlyingAsset',
2370
+ type: 'address',
2371
+ },
2372
+ {
2373
+ name: '_collateralVaultToken',
2374
+ type: 'address',
2375
+ },
2376
+ ],
2377
+ outputs: [
2378
+ {
2379
+ name: '',
2380
+ type: 'uint256',
2381
+ },
2382
+ ],
2383
+ },
2384
+ {
2385
+ stateMutability: 'view',
2386
+ type: 'function',
2387
+ name: 'getDebtUtilization',
2388
+ inputs: [
2389
+ {
2390
+ name: '_levgVault',
2391
+ type: 'address',
2392
+ },
2393
+ {
2394
+ name: '_underlyingAsset',
2395
+ type: 'address',
2396
+ },
2397
+ {
2398
+ name: '_collateralVaultToken',
2399
+ type: 'address',
2400
+ },
2401
+ {
2402
+ name: '_collateralVaultTokenRipeVaultId',
2403
+ type: 'uint256',
2404
+ },
2405
+ ],
2406
+ outputs: [
2407
+ {
2408
+ name: '',
2409
+ type: 'uint256',
2410
+ },
2411
+ ],
2412
+ },
2413
+ {
2414
+ stateMutability: 'view',
2415
+ type: 'function',
2416
+ name: 'getDebtUtilization',
2417
+ inputs: [
2418
+ {
2419
+ name: '_levgVault',
2420
+ type: 'address',
2421
+ },
2422
+ {
2423
+ name: '_underlyingAsset',
2424
+ type: 'address',
2425
+ },
2426
+ {
2427
+ name: '_collateralVaultToken',
2428
+ type: 'address',
2429
+ },
2430
+ {
2431
+ name: '_collateralVaultTokenRipeVaultId',
2432
+ type: 'uint256',
2433
+ },
2434
+ {
2435
+ name: '_leverageVaultToken',
2436
+ type: 'address',
2437
+ },
2438
+ ],
2439
+ outputs: [
2440
+ {
2441
+ name: '',
2442
+ type: 'uint256',
2443
+ },
2444
+ ],
2445
+ },
2446
+ {
2447
+ stateMutability: 'view',
2448
+ type: 'function',
2449
+ name: 'getDebtUtilization',
2450
+ inputs: [
2451
+ {
2452
+ name: '_levgVault',
2453
+ type: 'address',
2454
+ },
2455
+ {
2456
+ name: '_underlyingAsset',
2457
+ type: 'address',
2458
+ },
2459
+ {
2460
+ name: '_collateralVaultToken',
2461
+ type: 'address',
2462
+ },
2463
+ {
2464
+ name: '_collateralVaultTokenRipeVaultId',
2465
+ type: 'uint256',
2466
+ },
2467
+ {
2468
+ name: '_leverageVaultToken',
2469
+ type: 'address',
2470
+ },
2471
+ {
2472
+ name: '_totalAssets',
2473
+ type: 'uint256',
2474
+ },
2475
+ ],
2476
+ outputs: [
2477
+ {
2478
+ name: '',
2479
+ type: 'uint256',
2480
+ },
2481
+ ],
2482
+ },
2483
+ {
2484
+ stateMutability: 'view',
2485
+ type: 'function',
2486
+ name: 'getDebtUtilization',
2487
+ inputs: [
2488
+ {
2489
+ name: '_levgVault',
2490
+ type: 'address',
2491
+ },
2492
+ {
2493
+ name: '_underlyingAsset',
2494
+ type: 'address',
2495
+ },
2496
+ {
2497
+ name: '_collateralVaultToken',
2498
+ type: 'address',
2499
+ },
2500
+ {
2501
+ name: '_collateralVaultTokenRipeVaultId',
2502
+ type: 'uint256',
2503
+ },
2504
+ {
2505
+ name: '_leverageVaultToken',
2506
+ type: 'address',
2507
+ },
2508
+ {
2509
+ name: '_totalAssets',
2510
+ type: 'uint256',
2511
+ },
2512
+ {
2513
+ name: '_maxDebtRatio',
2514
+ type: 'uint256',
2515
+ },
2516
+ ],
2517
+ outputs: [
2518
+ {
2519
+ name: '',
2520
+ type: 'uint256',
2521
+ },
2522
+ ],
2523
+ },
2524
+ {
2525
+ stateMutability: 'view',
2526
+ type: 'function',
2527
+ name: 'getDebtUtilization',
2528
+ inputs: [
2529
+ {
2530
+ name: '_levgVault',
2531
+ type: 'address',
2532
+ },
2533
+ {
2534
+ name: '_underlyingAsset',
2535
+ type: 'address',
2536
+ },
2537
+ {
2538
+ name: '_collateralVaultToken',
2539
+ type: 'address',
2540
+ },
2541
+ {
2542
+ name: '_collateralVaultTokenRipeVaultId',
2543
+ type: 'uint256',
2544
+ },
2545
+ {
2546
+ name: '_leverageVaultToken',
2547
+ type: 'address',
2548
+ },
2549
+ {
2550
+ name: '_totalAssets',
2551
+ type: 'uint256',
2552
+ },
2553
+ {
2554
+ name: '_maxDebtRatio',
2555
+ type: 'uint256',
2556
+ },
2557
+ {
2558
+ name: '_legoBook',
2559
+ type: 'address',
2560
+ },
2561
+ ],
2562
+ outputs: [
2563
+ {
2564
+ name: '',
2565
+ type: 'uint256',
2566
+ },
2567
+ ],
2568
+ },
2569
+ {
2570
+ stateMutability: 'view',
2571
+ type: 'function',
2572
+ name: 'getDebtUtilization',
2573
+ inputs: [
2574
+ {
2575
+ name: '_levgVault',
2576
+ type: 'address',
2577
+ },
2578
+ {
2579
+ name: '_underlyingAsset',
2580
+ type: 'address',
2581
+ },
2582
+ {
2583
+ name: '_collateralVaultToken',
2584
+ type: 'address',
2585
+ },
2586
+ {
2587
+ name: '_collateralVaultTokenRipeVaultId',
2588
+ type: 'uint256',
2589
+ },
2590
+ {
2591
+ name: '_leverageVaultToken',
2592
+ type: 'address',
2593
+ },
2594
+ {
2595
+ name: '_totalAssets',
2596
+ type: 'uint256',
2597
+ },
2598
+ {
2599
+ name: '_maxDebtRatio',
2600
+ type: 'uint256',
2601
+ },
2602
+ {
2603
+ name: '_legoBook',
2604
+ type: 'address',
2605
+ },
2606
+ {
2607
+ name: '_ripeVaultBook',
2608
+ type: 'address',
2609
+ },
2610
+ ],
2611
+ outputs: [
2612
+ {
2613
+ name: '',
2614
+ type: 'uint256',
2615
+ },
2616
+ ],
2617
+ },
2618
+ {
2619
+ stateMutability: 'view',
2620
+ type: 'function',
2621
+ name: 'getDebtUtilization',
2622
+ inputs: [
2623
+ {
2624
+ name: '_levgVault',
2625
+ type: 'address',
2626
+ },
2627
+ {
2628
+ name: '_underlyingAsset',
2629
+ type: 'address',
2630
+ },
2631
+ {
2632
+ name: '_collateralVaultToken',
2633
+ type: 'address',
2634
+ },
2635
+ {
2636
+ name: '_collateralVaultTokenRipeVaultId',
2637
+ type: 'uint256',
2638
+ },
2639
+ {
2640
+ name: '_leverageVaultToken',
2641
+ type: 'address',
2642
+ },
2643
+ {
2644
+ name: '_totalAssets',
2645
+ type: 'uint256',
2646
+ },
2647
+ {
2648
+ name: '_maxDebtRatio',
2649
+ type: 'uint256',
2650
+ },
2651
+ {
2652
+ name: '_legoBook',
2653
+ type: 'address',
2654
+ },
2655
+ {
2656
+ name: '_ripeVaultBook',
2657
+ type: 'address',
2658
+ },
2659
+ {
2660
+ name: '_ripeMissionControl',
2661
+ type: 'address',
2662
+ },
2663
+ ],
2664
+ outputs: [
2665
+ {
2666
+ name: '',
2667
+ type: 'uint256',
2668
+ },
2669
+ ],
2670
+ },
2671
+ {
2672
+ stateMutability: 'view',
2673
+ type: 'function',
2674
+ name: 'getDebtUtilization',
2675
+ inputs: [
2676
+ {
2677
+ name: '_levgVault',
2678
+ type: 'address',
2679
+ },
2680
+ {
2681
+ name: '_underlyingAsset',
2682
+ type: 'address',
2683
+ },
2684
+ {
2685
+ name: '_collateralVaultToken',
2686
+ type: 'address',
2687
+ },
2688
+ {
2689
+ name: '_collateralVaultTokenRipeVaultId',
2690
+ type: 'uint256',
2691
+ },
2692
+ {
2693
+ name: '_leverageVaultToken',
2694
+ type: 'address',
2695
+ },
2696
+ {
2697
+ name: '_totalAssets',
2698
+ type: 'uint256',
2699
+ },
2700
+ {
2701
+ name: '_maxDebtRatio',
2702
+ type: 'uint256',
2703
+ },
2704
+ {
2705
+ name: '_legoBook',
2706
+ type: 'address',
2707
+ },
2708
+ {
2709
+ name: '_ripeVaultBook',
2710
+ type: 'address',
2711
+ },
2712
+ {
2713
+ name: '_ripeMissionControl',
2714
+ type: 'address',
2715
+ },
2716
+ {
2717
+ name: '_ripeHq',
2718
+ type: 'address',
2719
+ },
2720
+ ],
2721
+ outputs: [
2722
+ {
2723
+ name: '',
2724
+ type: 'uint256',
2725
+ },
2726
+ ],
2727
+ },
2728
+ {
2729
+ stateMutability: 'view',
2730
+ type: 'function',
2731
+ name: 'getDebtToRipeCollateralRatio',
2732
+ inputs: [
2733
+ {
2734
+ name: '_levgVault',
2735
+ type: 'address',
2736
+ },
2737
+ ],
2738
+ outputs: [
2739
+ {
2740
+ name: '',
2741
+ type: 'uint256',
2742
+ },
2743
+ ],
2744
+ },
2745
+ {
2746
+ stateMutability: 'view',
2747
+ type: 'function',
2748
+ name: 'getDebtToRipeCollateralRatio',
2749
+ inputs: [
2750
+ {
2751
+ name: '_levgVault',
2752
+ type: 'address',
2753
+ },
2754
+ {
2755
+ name: '_ripeVaultBook',
2756
+ type: 'address',
2757
+ },
2758
+ ],
2759
+ outputs: [
2760
+ {
2761
+ name: '',
2762
+ type: 'uint256',
2763
+ },
2764
+ ],
2765
+ },
2766
+ {
2767
+ stateMutability: 'view',
2768
+ type: 'function',
2769
+ name: 'getDebtToRipeCollateralRatio',
2770
+ inputs: [
2771
+ {
2772
+ name: '_levgVault',
2773
+ type: 'address',
2774
+ },
2775
+ {
2776
+ name: '_ripeVaultBook',
2777
+ type: 'address',
2778
+ },
2779
+ {
2780
+ name: '_ripeMissionControl',
2781
+ type: 'address',
2782
+ },
2783
+ ],
2784
+ outputs: [
2785
+ {
2786
+ name: '',
2787
+ type: 'uint256',
2788
+ },
2789
+ ],
2790
+ },
2791
+ {
2792
+ stateMutability: 'view',
2793
+ type: 'function',
2794
+ name: 'getDebtToRipeCollateralRatio',
2795
+ inputs: [
2796
+ {
2797
+ name: '_levgVault',
2798
+ type: 'address',
2799
+ },
2800
+ {
2801
+ name: '_ripeVaultBook',
2802
+ type: 'address',
2803
+ },
2804
+ {
2805
+ name: '_ripeMissionControl',
2806
+ type: 'address',
2807
+ },
2808
+ {
2809
+ name: '_ripeHq',
2810
+ type: 'address',
2811
+ },
2812
+ ],
2813
+ outputs: [
2814
+ {
2815
+ name: '',
2816
+ type: 'uint256',
2817
+ },
2818
+ ],
2819
+ },
1797
2820
  {
1798
2821
  stateMutability: 'view',
1799
2822
  type: 'function',
@@ -2445,7 +3468,7 @@ export const abi = [
2445
3468
  outputs: [],
2446
3469
  },
2447
3470
  ];
2448
- export const deployAddress = '0xbCfC93bbF48423fd033af30573afce75bDc6C3f4';
3471
+ export const deployAddress = '0xAb6CB7AfDB4e866dBd92Be00EEb3880946755047';
2449
3472
  function getRequest(method, args, contractAddressOrOptions) {
2450
3473
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2451
3474
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2481,12 +3504,18 @@ export const call = {
2481
3504
  getUnderlyingAmountForVaultToken: (...args) => getRequest('getUnderlyingAmountForVaultToken', args),
2482
3505
  getRipeCollateralBalance: (...args) => getRequest('getRipeCollateralBalance', args),
2483
3506
  getUnderlyingGreenAmount: (...args) => getRequest('getUnderlyingGreenAmount', args),
3507
+ getSavingsGreenBalances: (...args) => getRequest('getSavingsGreenBalances', args),
2484
3508
  getSwappableUsdcAmount: (...args) => getRequest('getSwappableUsdcAmount', args),
2485
3509
  getBorrowRate: (...args) => getRequest('getBorrowRate', args),
2486
3510
  getDebtAmount: (...args) => getRequest('getDebtAmount', args),
3511
+ getAvailableUsdcFromEndaomentPsm: (...args) => getRequest('getAvailableUsdcFromEndaomentPsm', args),
2487
3512
  getTrueMaxBorrowAmount: (...args) => getRequest('getTrueMaxBorrowAmount', args),
2488
3513
  getMaxBorrowAmountByMaxDebtRatio: (...args) => getRequest('getMaxBorrowAmountByMaxDebtRatio', args),
2489
3514
  getMaxBorrowAmountByRipeLtv: (...args) => getRequest('getMaxBorrowAmountByRipeLtv', args),
3515
+ getNetUserDebt: (...args) => getRequest('getNetUserDebt', args),
3516
+ getDebtToDepositRatio: (...args) => getRequest('getDebtToDepositRatio', args),
3517
+ getDebtUtilization: (...args) => getRequest('getDebtUtilization', args),
3518
+ getDebtToRipeCollateralRatio: (...args) => getRequest('getDebtToRipeCollateralRatio', args),
2490
3519
  getVaultTokenAmounts: (...args) => getRequest('getVaultTokenAmounts', args),
2491
3520
  getUnderlyingAmounts: (...args) => getRequest('getUnderlyingAmounts', args),
2492
3521
  getGreenAmounts: (...args) => getRequest('getGreenAmounts', args),
@@ -2507,12 +3536,18 @@ export function toSdk(publicClient, walletClient, addressResolver) {
2507
3536
  getUnderlyingAmountForVaultToken: (...args) => singleQuery(publicClient, call.getUnderlyingAmountForVaultToken(...args), {}, addressResolver),
2508
3537
  getRipeCollateralBalance: (...args) => singleQuery(publicClient, call.getRipeCollateralBalance(...args), {}, addressResolver),
2509
3538
  getUnderlyingGreenAmount: (...args) => singleQuery(publicClient, call.getUnderlyingGreenAmount(...args), {}, addressResolver),
3539
+ getSavingsGreenBalances: (...args) => singleQuery(publicClient, call.getSavingsGreenBalances(...args), {}, addressResolver),
2510
3540
  getSwappableUsdcAmount: (...args) => singleQuery(publicClient, call.getSwappableUsdcAmount(...args), {}, addressResolver),
2511
3541
  getBorrowRate: (...args) => singleQuery(publicClient, call.getBorrowRate(...args), {}, addressResolver),
2512
3542
  getDebtAmount: (...args) => singleQuery(publicClient, call.getDebtAmount(...args), {}, addressResolver),
3543
+ getAvailableUsdcFromEndaomentPsm: (...args) => singleQuery(publicClient, call.getAvailableUsdcFromEndaomentPsm(...args), {}, addressResolver),
2513
3544
  getTrueMaxBorrowAmount: (...args) => singleQuery(publicClient, call.getTrueMaxBorrowAmount(...args), {}, addressResolver),
2514
3545
  getMaxBorrowAmountByMaxDebtRatio: (...args) => singleQuery(publicClient, call.getMaxBorrowAmountByMaxDebtRatio(...args), {}, addressResolver),
2515
3546
  getMaxBorrowAmountByRipeLtv: (...args) => singleQuery(publicClient, call.getMaxBorrowAmountByRipeLtv(...args), {}, addressResolver),
3547
+ getNetUserDebt: (...args) => singleQuery(publicClient, call.getNetUserDebt(...args), {}, addressResolver),
3548
+ getDebtToDepositRatio: (...args) => singleQuery(publicClient, call.getDebtToDepositRatio(...args), {}, addressResolver),
3549
+ getDebtUtilization: (...args) => singleQuery(publicClient, call.getDebtUtilization(...args), {}, addressResolver),
3550
+ getDebtToRipeCollateralRatio: (...args) => singleQuery(publicClient, call.getDebtToRipeCollateralRatio(...args), {}, addressResolver),
2516
3551
  getVaultTokenAmounts: (...args) => singleQuery(publicClient, call.getVaultTokenAmounts(...args), {}, addressResolver),
2517
3552
  getUnderlyingAmounts: (...args) => singleQuery(publicClient, call.getUnderlyingAmounts(...args), {}, addressResolver),
2518
3553
  getGreenAmounts: (...args) => singleQuery(publicClient, call.getGreenAmounts(...args), {}, addressResolver),