@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.
- package/dist/contracts/LevgVaultAgent.d.ts +1955 -0
- package/dist/contracts/LevgVaultAgent.d.ts.map +1 -0
- package/dist/contracts/LevgVaultAgent.js +2523 -0
- package/dist/contracts/LevgVaultHelper.d.ts +26 -120
- package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
- package/dist/contracts/LevgVaultHelper.js +30 -155
- package/dist/contracts/LevgVaultTools.d.ts +763 -7
- package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
- package/dist/contracts/LevgVaultTools.js +1042 -7
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/sdk.d.ts +2 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +2 -0
- package/package.json +1 -1
|
@@ -624,6 +624,45 @@ export declare const abi: readonly [{
|
|
|
624
624
|
readonly name: "";
|
|
625
625
|
readonly type: "uint256";
|
|
626
626
|
}];
|
|
627
|
+
}, {
|
|
628
|
+
readonly stateMutability: "view";
|
|
629
|
+
readonly type: "function";
|
|
630
|
+
readonly name: "getSavingsGreenBalances";
|
|
631
|
+
readonly inputs: readonly [];
|
|
632
|
+
readonly outputs: readonly [{
|
|
633
|
+
readonly name: "";
|
|
634
|
+
readonly type: "uint256";
|
|
635
|
+
}, {
|
|
636
|
+
readonly name: "";
|
|
637
|
+
readonly type: "uint256";
|
|
638
|
+
}, {
|
|
639
|
+
readonly name: "";
|
|
640
|
+
readonly type: "uint256";
|
|
641
|
+
}, {
|
|
642
|
+
readonly name: "";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}];
|
|
645
|
+
}, {
|
|
646
|
+
readonly stateMutability: "view";
|
|
647
|
+
readonly type: "function";
|
|
648
|
+
readonly name: "getSavingsGreenBalances";
|
|
649
|
+
readonly inputs: readonly [{
|
|
650
|
+
readonly name: "_ripeHq";
|
|
651
|
+
readonly type: "address";
|
|
652
|
+
}];
|
|
653
|
+
readonly outputs: readonly [{
|
|
654
|
+
readonly name: "";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly name: "";
|
|
658
|
+
readonly type: "uint256";
|
|
659
|
+
}, {
|
|
660
|
+
readonly name: "";
|
|
661
|
+
readonly type: "uint256";
|
|
662
|
+
}, {
|
|
663
|
+
readonly name: "";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
}];
|
|
627
666
|
}, {
|
|
628
667
|
readonly stateMutability: "view";
|
|
629
668
|
readonly type: "function";
|
|
@@ -933,6 +972,27 @@ export declare const abi: readonly [{
|
|
|
933
972
|
readonly name: "";
|
|
934
973
|
readonly type: "uint256";
|
|
935
974
|
}];
|
|
975
|
+
}, {
|
|
976
|
+
readonly stateMutability: "view";
|
|
977
|
+
readonly type: "function";
|
|
978
|
+
readonly name: "getAvailableUsdcFromEndaomentPsm";
|
|
979
|
+
readonly inputs: readonly [];
|
|
980
|
+
readonly outputs: readonly [{
|
|
981
|
+
readonly name: "";
|
|
982
|
+
readonly type: "uint256";
|
|
983
|
+
}];
|
|
984
|
+
}, {
|
|
985
|
+
readonly stateMutability: "view";
|
|
986
|
+
readonly type: "function";
|
|
987
|
+
readonly name: "getAvailableUsdcFromEndaomentPsm";
|
|
988
|
+
readonly inputs: readonly [{
|
|
989
|
+
readonly name: "_ripeHq";
|
|
990
|
+
readonly type: "address";
|
|
991
|
+
}];
|
|
992
|
+
readonly outputs: readonly [{
|
|
993
|
+
readonly name: "";
|
|
994
|
+
readonly type: "uint256";
|
|
995
|
+
}];
|
|
936
996
|
}, {
|
|
937
997
|
readonly stateMutability: "view";
|
|
938
998
|
readonly type: "function";
|
|
@@ -1070,7 +1130,7 @@ export declare const abi: readonly [{
|
|
|
1070
1130
|
readonly name: "_leverageVaultToken";
|
|
1071
1131
|
readonly type: "address";
|
|
1072
1132
|
}, {
|
|
1073
|
-
readonly name: "
|
|
1133
|
+
readonly name: "_totalAssets";
|
|
1074
1134
|
readonly type: "uint256";
|
|
1075
1135
|
}];
|
|
1076
1136
|
readonly outputs: readonly [{
|
|
@@ -1097,7 +1157,7 @@ export declare const abi: readonly [{
|
|
|
1097
1157
|
readonly name: "_leverageVaultToken";
|
|
1098
1158
|
readonly type: "address";
|
|
1099
1159
|
}, {
|
|
1100
|
-
readonly name: "
|
|
1160
|
+
readonly name: "_totalAssets";
|
|
1101
1161
|
readonly type: "uint256";
|
|
1102
1162
|
}, {
|
|
1103
1163
|
readonly name: "_maxDebtRatio";
|
|
@@ -1127,7 +1187,7 @@ export declare const abi: readonly [{
|
|
|
1127
1187
|
readonly name: "_leverageVaultToken";
|
|
1128
1188
|
readonly type: "address";
|
|
1129
1189
|
}, {
|
|
1130
|
-
readonly name: "
|
|
1190
|
+
readonly name: "_totalAssets";
|
|
1131
1191
|
readonly type: "uint256";
|
|
1132
1192
|
}, {
|
|
1133
1193
|
readonly name: "_maxDebtRatio";
|
|
@@ -1160,7 +1220,7 @@ export declare const abi: readonly [{
|
|
|
1160
1220
|
readonly name: "_leverageVaultToken";
|
|
1161
1221
|
readonly type: "address";
|
|
1162
1222
|
}, {
|
|
1163
|
-
readonly name: "
|
|
1223
|
+
readonly name: "_totalAssets";
|
|
1164
1224
|
readonly type: "uint256";
|
|
1165
1225
|
}, {
|
|
1166
1226
|
readonly name: "_maxDebtRatio";
|
|
@@ -1196,7 +1256,7 @@ export declare const abi: readonly [{
|
|
|
1196
1256
|
readonly name: "_leverageVaultToken";
|
|
1197
1257
|
readonly type: "address";
|
|
1198
1258
|
}, {
|
|
1199
|
-
readonly name: "
|
|
1259
|
+
readonly name: "_totalAssets";
|
|
1200
1260
|
readonly type: "uint256";
|
|
1201
1261
|
}, {
|
|
1202
1262
|
readonly name: "_maxDebtRatio";
|
|
@@ -1235,7 +1295,7 @@ export declare const abi: readonly [{
|
|
|
1235
1295
|
readonly name: "_leverageVaultToken";
|
|
1236
1296
|
readonly type: "address";
|
|
1237
1297
|
}, {
|
|
1238
|
-
readonly name: "
|
|
1298
|
+
readonly name: "_totalAssets";
|
|
1239
1299
|
readonly type: "uint256";
|
|
1240
1300
|
}, {
|
|
1241
1301
|
readonly name: "_maxDebtRatio";
|
|
@@ -1302,6 +1362,690 @@ export declare const abi: readonly [{
|
|
|
1302
1362
|
readonly name: "";
|
|
1303
1363
|
readonly type: "uint256";
|
|
1304
1364
|
}];
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly stateMutability: "view";
|
|
1367
|
+
readonly type: "function";
|
|
1368
|
+
readonly name: "getNetUserDebt";
|
|
1369
|
+
readonly inputs: readonly [{
|
|
1370
|
+
readonly name: "_levgVault";
|
|
1371
|
+
readonly type: "address";
|
|
1372
|
+
}];
|
|
1373
|
+
readonly outputs: readonly [{
|
|
1374
|
+
readonly name: "";
|
|
1375
|
+
readonly type: "uint256";
|
|
1376
|
+
}];
|
|
1377
|
+
}, {
|
|
1378
|
+
readonly stateMutability: "view";
|
|
1379
|
+
readonly type: "function";
|
|
1380
|
+
readonly name: "getNetUserDebt";
|
|
1381
|
+
readonly inputs: readonly [{
|
|
1382
|
+
readonly name: "_levgVault";
|
|
1383
|
+
readonly type: "address";
|
|
1384
|
+
}, {
|
|
1385
|
+
readonly name: "_ripeVaultBook";
|
|
1386
|
+
readonly type: "address";
|
|
1387
|
+
}];
|
|
1388
|
+
readonly outputs: readonly [{
|
|
1389
|
+
readonly name: "";
|
|
1390
|
+
readonly type: "uint256";
|
|
1391
|
+
}];
|
|
1392
|
+
}, {
|
|
1393
|
+
readonly stateMutability: "view";
|
|
1394
|
+
readonly type: "function";
|
|
1395
|
+
readonly name: "getNetUserDebt";
|
|
1396
|
+
readonly inputs: readonly [{
|
|
1397
|
+
readonly name: "_levgVault";
|
|
1398
|
+
readonly type: "address";
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly name: "_ripeVaultBook";
|
|
1401
|
+
readonly type: "address";
|
|
1402
|
+
}, {
|
|
1403
|
+
readonly name: "_ripeMissionControl";
|
|
1404
|
+
readonly type: "address";
|
|
1405
|
+
}];
|
|
1406
|
+
readonly outputs: readonly [{
|
|
1407
|
+
readonly name: "";
|
|
1408
|
+
readonly type: "uint256";
|
|
1409
|
+
}];
|
|
1410
|
+
}, {
|
|
1411
|
+
readonly stateMutability: "view";
|
|
1412
|
+
readonly type: "function";
|
|
1413
|
+
readonly name: "getNetUserDebt";
|
|
1414
|
+
readonly inputs: readonly [{
|
|
1415
|
+
readonly name: "_levgVault";
|
|
1416
|
+
readonly type: "address";
|
|
1417
|
+
}, {
|
|
1418
|
+
readonly name: "_ripeVaultBook";
|
|
1419
|
+
readonly type: "address";
|
|
1420
|
+
}, {
|
|
1421
|
+
readonly name: "_ripeMissionControl";
|
|
1422
|
+
readonly type: "address";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "_ripeHq";
|
|
1425
|
+
readonly type: "address";
|
|
1426
|
+
}];
|
|
1427
|
+
readonly outputs: readonly [{
|
|
1428
|
+
readonly name: "";
|
|
1429
|
+
readonly type: "uint256";
|
|
1430
|
+
}];
|
|
1431
|
+
}, {
|
|
1432
|
+
readonly stateMutability: "view";
|
|
1433
|
+
readonly type: "function";
|
|
1434
|
+
readonly name: "getDebtToDepositRatio";
|
|
1435
|
+
readonly inputs: readonly [{
|
|
1436
|
+
readonly name: "_levgVault";
|
|
1437
|
+
readonly type: "address";
|
|
1438
|
+
}];
|
|
1439
|
+
readonly outputs: readonly [{
|
|
1440
|
+
readonly name: "";
|
|
1441
|
+
readonly type: "uint256";
|
|
1442
|
+
}];
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly stateMutability: "view";
|
|
1445
|
+
readonly type: "function";
|
|
1446
|
+
readonly name: "getDebtToDepositRatio";
|
|
1447
|
+
readonly inputs: readonly [{
|
|
1448
|
+
readonly name: "_levgVault";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly name: "_underlyingAsset";
|
|
1452
|
+
readonly type: "address";
|
|
1453
|
+
}];
|
|
1454
|
+
readonly outputs: readonly [{
|
|
1455
|
+
readonly name: "";
|
|
1456
|
+
readonly type: "uint256";
|
|
1457
|
+
}];
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly stateMutability: "view";
|
|
1460
|
+
readonly type: "function";
|
|
1461
|
+
readonly name: "getDebtToDepositRatio";
|
|
1462
|
+
readonly inputs: readonly [{
|
|
1463
|
+
readonly name: "_levgVault";
|
|
1464
|
+
readonly type: "address";
|
|
1465
|
+
}, {
|
|
1466
|
+
readonly name: "_underlyingAsset";
|
|
1467
|
+
readonly type: "address";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly name: "_collateralVaultToken";
|
|
1470
|
+
readonly type: "address";
|
|
1471
|
+
}];
|
|
1472
|
+
readonly outputs: readonly [{
|
|
1473
|
+
readonly name: "";
|
|
1474
|
+
readonly type: "uint256";
|
|
1475
|
+
}];
|
|
1476
|
+
}, {
|
|
1477
|
+
readonly stateMutability: "view";
|
|
1478
|
+
readonly type: "function";
|
|
1479
|
+
readonly name: "getDebtToDepositRatio";
|
|
1480
|
+
readonly inputs: readonly [{
|
|
1481
|
+
readonly name: "_levgVault";
|
|
1482
|
+
readonly type: "address";
|
|
1483
|
+
}, {
|
|
1484
|
+
readonly name: "_underlyingAsset";
|
|
1485
|
+
readonly type: "address";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly name: "_collateralVaultToken";
|
|
1488
|
+
readonly type: "address";
|
|
1489
|
+
}, {
|
|
1490
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1491
|
+
readonly type: "uint256";
|
|
1492
|
+
}];
|
|
1493
|
+
readonly outputs: readonly [{
|
|
1494
|
+
readonly name: "";
|
|
1495
|
+
readonly type: "uint256";
|
|
1496
|
+
}];
|
|
1497
|
+
}, {
|
|
1498
|
+
readonly stateMutability: "view";
|
|
1499
|
+
readonly type: "function";
|
|
1500
|
+
readonly name: "getDebtToDepositRatio";
|
|
1501
|
+
readonly inputs: readonly [{
|
|
1502
|
+
readonly name: "_levgVault";
|
|
1503
|
+
readonly type: "address";
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly name: "_underlyingAsset";
|
|
1506
|
+
readonly type: "address";
|
|
1507
|
+
}, {
|
|
1508
|
+
readonly name: "_collateralVaultToken";
|
|
1509
|
+
readonly type: "address";
|
|
1510
|
+
}, {
|
|
1511
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1512
|
+
readonly type: "uint256";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly name: "_leverageVaultToken";
|
|
1515
|
+
readonly type: "address";
|
|
1516
|
+
}];
|
|
1517
|
+
readonly outputs: readonly [{
|
|
1518
|
+
readonly name: "";
|
|
1519
|
+
readonly type: "uint256";
|
|
1520
|
+
}];
|
|
1521
|
+
}, {
|
|
1522
|
+
readonly stateMutability: "view";
|
|
1523
|
+
readonly type: "function";
|
|
1524
|
+
readonly name: "getDebtToDepositRatio";
|
|
1525
|
+
readonly inputs: readonly [{
|
|
1526
|
+
readonly name: "_levgVault";
|
|
1527
|
+
readonly type: "address";
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly name: "_underlyingAsset";
|
|
1530
|
+
readonly type: "address";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly name: "_collateralVaultToken";
|
|
1533
|
+
readonly type: "address";
|
|
1534
|
+
}, {
|
|
1535
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1536
|
+
readonly type: "uint256";
|
|
1537
|
+
}, {
|
|
1538
|
+
readonly name: "_leverageVaultToken";
|
|
1539
|
+
readonly type: "address";
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly name: "_totalAssets";
|
|
1542
|
+
readonly type: "uint256";
|
|
1543
|
+
}];
|
|
1544
|
+
readonly outputs: readonly [{
|
|
1545
|
+
readonly name: "";
|
|
1546
|
+
readonly type: "uint256";
|
|
1547
|
+
}];
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly stateMutability: "view";
|
|
1550
|
+
readonly type: "function";
|
|
1551
|
+
readonly name: "getDebtToDepositRatio";
|
|
1552
|
+
readonly inputs: readonly [{
|
|
1553
|
+
readonly name: "_levgVault";
|
|
1554
|
+
readonly type: "address";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly name: "_underlyingAsset";
|
|
1557
|
+
readonly type: "address";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly name: "_collateralVaultToken";
|
|
1560
|
+
readonly type: "address";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1563
|
+
readonly type: "uint256";
|
|
1564
|
+
}, {
|
|
1565
|
+
readonly name: "_leverageVaultToken";
|
|
1566
|
+
readonly type: "address";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly name: "_totalAssets";
|
|
1569
|
+
readonly type: "uint256";
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly name: "_legoBook";
|
|
1572
|
+
readonly type: "address";
|
|
1573
|
+
}];
|
|
1574
|
+
readonly outputs: readonly [{
|
|
1575
|
+
readonly name: "";
|
|
1576
|
+
readonly type: "uint256";
|
|
1577
|
+
}];
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly stateMutability: "view";
|
|
1580
|
+
readonly type: "function";
|
|
1581
|
+
readonly name: "getDebtToDepositRatio";
|
|
1582
|
+
readonly inputs: readonly [{
|
|
1583
|
+
readonly name: "_levgVault";
|
|
1584
|
+
readonly type: "address";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly name: "_underlyingAsset";
|
|
1587
|
+
readonly type: "address";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "_collateralVaultToken";
|
|
1590
|
+
readonly type: "address";
|
|
1591
|
+
}, {
|
|
1592
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1593
|
+
readonly type: "uint256";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly name: "_leverageVaultToken";
|
|
1596
|
+
readonly type: "address";
|
|
1597
|
+
}, {
|
|
1598
|
+
readonly name: "_totalAssets";
|
|
1599
|
+
readonly type: "uint256";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly name: "_legoBook";
|
|
1602
|
+
readonly type: "address";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly name: "_ripeVaultBook";
|
|
1605
|
+
readonly type: "address";
|
|
1606
|
+
}];
|
|
1607
|
+
readonly outputs: readonly [{
|
|
1608
|
+
readonly name: "";
|
|
1609
|
+
readonly type: "uint256";
|
|
1610
|
+
}];
|
|
1611
|
+
}, {
|
|
1612
|
+
readonly stateMutability: "view";
|
|
1613
|
+
readonly type: "function";
|
|
1614
|
+
readonly name: "getDebtToDepositRatio";
|
|
1615
|
+
readonly inputs: readonly [{
|
|
1616
|
+
readonly name: "_levgVault";
|
|
1617
|
+
readonly type: "address";
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly name: "_underlyingAsset";
|
|
1620
|
+
readonly type: "address";
|
|
1621
|
+
}, {
|
|
1622
|
+
readonly name: "_collateralVaultToken";
|
|
1623
|
+
readonly type: "address";
|
|
1624
|
+
}, {
|
|
1625
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly name: "_leverageVaultToken";
|
|
1629
|
+
readonly type: "address";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "_totalAssets";
|
|
1632
|
+
readonly type: "uint256";
|
|
1633
|
+
}, {
|
|
1634
|
+
readonly name: "_legoBook";
|
|
1635
|
+
readonly type: "address";
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly name: "_ripeVaultBook";
|
|
1638
|
+
readonly type: "address";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly name: "_ripeMissionControl";
|
|
1641
|
+
readonly type: "address";
|
|
1642
|
+
}];
|
|
1643
|
+
readonly outputs: readonly [{
|
|
1644
|
+
readonly name: "";
|
|
1645
|
+
readonly type: "uint256";
|
|
1646
|
+
}];
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly stateMutability: "view";
|
|
1649
|
+
readonly type: "function";
|
|
1650
|
+
readonly name: "getDebtToDepositRatio";
|
|
1651
|
+
readonly inputs: readonly [{
|
|
1652
|
+
readonly name: "_levgVault";
|
|
1653
|
+
readonly type: "address";
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly name: "_underlyingAsset";
|
|
1656
|
+
readonly type: "address";
|
|
1657
|
+
}, {
|
|
1658
|
+
readonly name: "_collateralVaultToken";
|
|
1659
|
+
readonly type: "address";
|
|
1660
|
+
}, {
|
|
1661
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1662
|
+
readonly type: "uint256";
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly name: "_leverageVaultToken";
|
|
1665
|
+
readonly type: "address";
|
|
1666
|
+
}, {
|
|
1667
|
+
readonly name: "_totalAssets";
|
|
1668
|
+
readonly type: "uint256";
|
|
1669
|
+
}, {
|
|
1670
|
+
readonly name: "_legoBook";
|
|
1671
|
+
readonly type: "address";
|
|
1672
|
+
}, {
|
|
1673
|
+
readonly name: "_ripeVaultBook";
|
|
1674
|
+
readonly type: "address";
|
|
1675
|
+
}, {
|
|
1676
|
+
readonly name: "_ripeMissionControl";
|
|
1677
|
+
readonly type: "address";
|
|
1678
|
+
}, {
|
|
1679
|
+
readonly name: "_ripeHq";
|
|
1680
|
+
readonly type: "address";
|
|
1681
|
+
}];
|
|
1682
|
+
readonly outputs: readonly [{
|
|
1683
|
+
readonly name: "";
|
|
1684
|
+
readonly type: "uint256";
|
|
1685
|
+
}];
|
|
1686
|
+
}, {
|
|
1687
|
+
readonly stateMutability: "view";
|
|
1688
|
+
readonly type: "function";
|
|
1689
|
+
readonly name: "getDebtUtilization";
|
|
1690
|
+
readonly inputs: readonly [{
|
|
1691
|
+
readonly name: "_levgVault";
|
|
1692
|
+
readonly type: "address";
|
|
1693
|
+
}];
|
|
1694
|
+
readonly outputs: readonly [{
|
|
1695
|
+
readonly name: "";
|
|
1696
|
+
readonly type: "uint256";
|
|
1697
|
+
}];
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly stateMutability: "view";
|
|
1700
|
+
readonly type: "function";
|
|
1701
|
+
readonly name: "getDebtUtilization";
|
|
1702
|
+
readonly inputs: readonly [{
|
|
1703
|
+
readonly name: "_levgVault";
|
|
1704
|
+
readonly type: "address";
|
|
1705
|
+
}, {
|
|
1706
|
+
readonly name: "_underlyingAsset";
|
|
1707
|
+
readonly type: "address";
|
|
1708
|
+
}];
|
|
1709
|
+
readonly outputs: readonly [{
|
|
1710
|
+
readonly name: "";
|
|
1711
|
+
readonly type: "uint256";
|
|
1712
|
+
}];
|
|
1713
|
+
}, {
|
|
1714
|
+
readonly stateMutability: "view";
|
|
1715
|
+
readonly type: "function";
|
|
1716
|
+
readonly name: "getDebtUtilization";
|
|
1717
|
+
readonly inputs: readonly [{
|
|
1718
|
+
readonly name: "_levgVault";
|
|
1719
|
+
readonly type: "address";
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly name: "_underlyingAsset";
|
|
1722
|
+
readonly type: "address";
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly name: "_collateralVaultToken";
|
|
1725
|
+
readonly type: "address";
|
|
1726
|
+
}];
|
|
1727
|
+
readonly outputs: readonly [{
|
|
1728
|
+
readonly name: "";
|
|
1729
|
+
readonly type: "uint256";
|
|
1730
|
+
}];
|
|
1731
|
+
}, {
|
|
1732
|
+
readonly stateMutability: "view";
|
|
1733
|
+
readonly type: "function";
|
|
1734
|
+
readonly name: "getDebtUtilization";
|
|
1735
|
+
readonly inputs: readonly [{
|
|
1736
|
+
readonly name: "_levgVault";
|
|
1737
|
+
readonly type: "address";
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "_underlyingAsset";
|
|
1740
|
+
readonly type: "address";
|
|
1741
|
+
}, {
|
|
1742
|
+
readonly name: "_collateralVaultToken";
|
|
1743
|
+
readonly type: "address";
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1746
|
+
readonly type: "uint256";
|
|
1747
|
+
}];
|
|
1748
|
+
readonly outputs: readonly [{
|
|
1749
|
+
readonly name: "";
|
|
1750
|
+
readonly type: "uint256";
|
|
1751
|
+
}];
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly stateMutability: "view";
|
|
1754
|
+
readonly type: "function";
|
|
1755
|
+
readonly name: "getDebtUtilization";
|
|
1756
|
+
readonly inputs: readonly [{
|
|
1757
|
+
readonly name: "_levgVault";
|
|
1758
|
+
readonly type: "address";
|
|
1759
|
+
}, {
|
|
1760
|
+
readonly name: "_underlyingAsset";
|
|
1761
|
+
readonly type: "address";
|
|
1762
|
+
}, {
|
|
1763
|
+
readonly name: "_collateralVaultToken";
|
|
1764
|
+
readonly type: "address";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1767
|
+
readonly type: "uint256";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "_leverageVaultToken";
|
|
1770
|
+
readonly type: "address";
|
|
1771
|
+
}];
|
|
1772
|
+
readonly outputs: readonly [{
|
|
1773
|
+
readonly name: "";
|
|
1774
|
+
readonly type: "uint256";
|
|
1775
|
+
}];
|
|
1776
|
+
}, {
|
|
1777
|
+
readonly stateMutability: "view";
|
|
1778
|
+
readonly type: "function";
|
|
1779
|
+
readonly name: "getDebtUtilization";
|
|
1780
|
+
readonly inputs: readonly [{
|
|
1781
|
+
readonly name: "_levgVault";
|
|
1782
|
+
readonly type: "address";
|
|
1783
|
+
}, {
|
|
1784
|
+
readonly name: "_underlyingAsset";
|
|
1785
|
+
readonly type: "address";
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly name: "_collateralVaultToken";
|
|
1788
|
+
readonly type: "address";
|
|
1789
|
+
}, {
|
|
1790
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1791
|
+
readonly type: "uint256";
|
|
1792
|
+
}, {
|
|
1793
|
+
readonly name: "_leverageVaultToken";
|
|
1794
|
+
readonly type: "address";
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly name: "_totalAssets";
|
|
1797
|
+
readonly type: "uint256";
|
|
1798
|
+
}];
|
|
1799
|
+
readonly outputs: readonly [{
|
|
1800
|
+
readonly name: "";
|
|
1801
|
+
readonly type: "uint256";
|
|
1802
|
+
}];
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly stateMutability: "view";
|
|
1805
|
+
readonly type: "function";
|
|
1806
|
+
readonly name: "getDebtUtilization";
|
|
1807
|
+
readonly inputs: readonly [{
|
|
1808
|
+
readonly name: "_levgVault";
|
|
1809
|
+
readonly type: "address";
|
|
1810
|
+
}, {
|
|
1811
|
+
readonly name: "_underlyingAsset";
|
|
1812
|
+
readonly type: "address";
|
|
1813
|
+
}, {
|
|
1814
|
+
readonly name: "_collateralVaultToken";
|
|
1815
|
+
readonly type: "address";
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1818
|
+
readonly type: "uint256";
|
|
1819
|
+
}, {
|
|
1820
|
+
readonly name: "_leverageVaultToken";
|
|
1821
|
+
readonly type: "address";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly name: "_totalAssets";
|
|
1824
|
+
readonly type: "uint256";
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly name: "_maxDebtRatio";
|
|
1827
|
+
readonly type: "uint256";
|
|
1828
|
+
}];
|
|
1829
|
+
readonly outputs: readonly [{
|
|
1830
|
+
readonly name: "";
|
|
1831
|
+
readonly type: "uint256";
|
|
1832
|
+
}];
|
|
1833
|
+
}, {
|
|
1834
|
+
readonly stateMutability: "view";
|
|
1835
|
+
readonly type: "function";
|
|
1836
|
+
readonly name: "getDebtUtilization";
|
|
1837
|
+
readonly inputs: readonly [{
|
|
1838
|
+
readonly name: "_levgVault";
|
|
1839
|
+
readonly type: "address";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly name: "_underlyingAsset";
|
|
1842
|
+
readonly type: "address";
|
|
1843
|
+
}, {
|
|
1844
|
+
readonly name: "_collateralVaultToken";
|
|
1845
|
+
readonly type: "address";
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1848
|
+
readonly type: "uint256";
|
|
1849
|
+
}, {
|
|
1850
|
+
readonly name: "_leverageVaultToken";
|
|
1851
|
+
readonly type: "address";
|
|
1852
|
+
}, {
|
|
1853
|
+
readonly name: "_totalAssets";
|
|
1854
|
+
readonly type: "uint256";
|
|
1855
|
+
}, {
|
|
1856
|
+
readonly name: "_maxDebtRatio";
|
|
1857
|
+
readonly type: "uint256";
|
|
1858
|
+
}, {
|
|
1859
|
+
readonly name: "_legoBook";
|
|
1860
|
+
readonly type: "address";
|
|
1861
|
+
}];
|
|
1862
|
+
readonly outputs: readonly [{
|
|
1863
|
+
readonly name: "";
|
|
1864
|
+
readonly type: "uint256";
|
|
1865
|
+
}];
|
|
1866
|
+
}, {
|
|
1867
|
+
readonly stateMutability: "view";
|
|
1868
|
+
readonly type: "function";
|
|
1869
|
+
readonly name: "getDebtUtilization";
|
|
1870
|
+
readonly inputs: readonly [{
|
|
1871
|
+
readonly name: "_levgVault";
|
|
1872
|
+
readonly type: "address";
|
|
1873
|
+
}, {
|
|
1874
|
+
readonly name: "_underlyingAsset";
|
|
1875
|
+
readonly type: "address";
|
|
1876
|
+
}, {
|
|
1877
|
+
readonly name: "_collateralVaultToken";
|
|
1878
|
+
readonly type: "address";
|
|
1879
|
+
}, {
|
|
1880
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1881
|
+
readonly type: "uint256";
|
|
1882
|
+
}, {
|
|
1883
|
+
readonly name: "_leverageVaultToken";
|
|
1884
|
+
readonly type: "address";
|
|
1885
|
+
}, {
|
|
1886
|
+
readonly name: "_totalAssets";
|
|
1887
|
+
readonly type: "uint256";
|
|
1888
|
+
}, {
|
|
1889
|
+
readonly name: "_maxDebtRatio";
|
|
1890
|
+
readonly type: "uint256";
|
|
1891
|
+
}, {
|
|
1892
|
+
readonly name: "_legoBook";
|
|
1893
|
+
readonly type: "address";
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly name: "_ripeVaultBook";
|
|
1896
|
+
readonly type: "address";
|
|
1897
|
+
}];
|
|
1898
|
+
readonly outputs: readonly [{
|
|
1899
|
+
readonly name: "";
|
|
1900
|
+
readonly type: "uint256";
|
|
1901
|
+
}];
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly stateMutability: "view";
|
|
1904
|
+
readonly type: "function";
|
|
1905
|
+
readonly name: "getDebtUtilization";
|
|
1906
|
+
readonly inputs: readonly [{
|
|
1907
|
+
readonly name: "_levgVault";
|
|
1908
|
+
readonly type: "address";
|
|
1909
|
+
}, {
|
|
1910
|
+
readonly name: "_underlyingAsset";
|
|
1911
|
+
readonly type: "address";
|
|
1912
|
+
}, {
|
|
1913
|
+
readonly name: "_collateralVaultToken";
|
|
1914
|
+
readonly type: "address";
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1917
|
+
readonly type: "uint256";
|
|
1918
|
+
}, {
|
|
1919
|
+
readonly name: "_leverageVaultToken";
|
|
1920
|
+
readonly type: "address";
|
|
1921
|
+
}, {
|
|
1922
|
+
readonly name: "_totalAssets";
|
|
1923
|
+
readonly type: "uint256";
|
|
1924
|
+
}, {
|
|
1925
|
+
readonly name: "_maxDebtRatio";
|
|
1926
|
+
readonly type: "uint256";
|
|
1927
|
+
}, {
|
|
1928
|
+
readonly name: "_legoBook";
|
|
1929
|
+
readonly type: "address";
|
|
1930
|
+
}, {
|
|
1931
|
+
readonly name: "_ripeVaultBook";
|
|
1932
|
+
readonly type: "address";
|
|
1933
|
+
}, {
|
|
1934
|
+
readonly name: "_ripeMissionControl";
|
|
1935
|
+
readonly type: "address";
|
|
1936
|
+
}];
|
|
1937
|
+
readonly outputs: readonly [{
|
|
1938
|
+
readonly name: "";
|
|
1939
|
+
readonly type: "uint256";
|
|
1940
|
+
}];
|
|
1941
|
+
}, {
|
|
1942
|
+
readonly stateMutability: "view";
|
|
1943
|
+
readonly type: "function";
|
|
1944
|
+
readonly name: "getDebtUtilization";
|
|
1945
|
+
readonly inputs: readonly [{
|
|
1946
|
+
readonly name: "_levgVault";
|
|
1947
|
+
readonly type: "address";
|
|
1948
|
+
}, {
|
|
1949
|
+
readonly name: "_underlyingAsset";
|
|
1950
|
+
readonly type: "address";
|
|
1951
|
+
}, {
|
|
1952
|
+
readonly name: "_collateralVaultToken";
|
|
1953
|
+
readonly type: "address";
|
|
1954
|
+
}, {
|
|
1955
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1956
|
+
readonly type: "uint256";
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly name: "_leverageVaultToken";
|
|
1959
|
+
readonly type: "address";
|
|
1960
|
+
}, {
|
|
1961
|
+
readonly name: "_totalAssets";
|
|
1962
|
+
readonly type: "uint256";
|
|
1963
|
+
}, {
|
|
1964
|
+
readonly name: "_maxDebtRatio";
|
|
1965
|
+
readonly type: "uint256";
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly name: "_legoBook";
|
|
1968
|
+
readonly type: "address";
|
|
1969
|
+
}, {
|
|
1970
|
+
readonly name: "_ripeVaultBook";
|
|
1971
|
+
readonly type: "address";
|
|
1972
|
+
}, {
|
|
1973
|
+
readonly name: "_ripeMissionControl";
|
|
1974
|
+
readonly type: "address";
|
|
1975
|
+
}, {
|
|
1976
|
+
readonly name: "_ripeHq";
|
|
1977
|
+
readonly type: "address";
|
|
1978
|
+
}];
|
|
1979
|
+
readonly outputs: readonly [{
|
|
1980
|
+
readonly name: "";
|
|
1981
|
+
readonly type: "uint256";
|
|
1982
|
+
}];
|
|
1983
|
+
}, {
|
|
1984
|
+
readonly stateMutability: "view";
|
|
1985
|
+
readonly type: "function";
|
|
1986
|
+
readonly name: "getDebtToRipeCollateralRatio";
|
|
1987
|
+
readonly inputs: readonly [{
|
|
1988
|
+
readonly name: "_levgVault";
|
|
1989
|
+
readonly type: "address";
|
|
1990
|
+
}];
|
|
1991
|
+
readonly outputs: readonly [{
|
|
1992
|
+
readonly name: "";
|
|
1993
|
+
readonly type: "uint256";
|
|
1994
|
+
}];
|
|
1995
|
+
}, {
|
|
1996
|
+
readonly stateMutability: "view";
|
|
1997
|
+
readonly type: "function";
|
|
1998
|
+
readonly name: "getDebtToRipeCollateralRatio";
|
|
1999
|
+
readonly inputs: readonly [{
|
|
2000
|
+
readonly name: "_levgVault";
|
|
2001
|
+
readonly type: "address";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly name: "_ripeVaultBook";
|
|
2004
|
+
readonly type: "address";
|
|
2005
|
+
}];
|
|
2006
|
+
readonly outputs: readonly [{
|
|
2007
|
+
readonly name: "";
|
|
2008
|
+
readonly type: "uint256";
|
|
2009
|
+
}];
|
|
2010
|
+
}, {
|
|
2011
|
+
readonly stateMutability: "view";
|
|
2012
|
+
readonly type: "function";
|
|
2013
|
+
readonly name: "getDebtToRipeCollateralRatio";
|
|
2014
|
+
readonly inputs: readonly [{
|
|
2015
|
+
readonly name: "_levgVault";
|
|
2016
|
+
readonly type: "address";
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly name: "_ripeVaultBook";
|
|
2019
|
+
readonly type: "address";
|
|
2020
|
+
}, {
|
|
2021
|
+
readonly name: "_ripeMissionControl";
|
|
2022
|
+
readonly type: "address";
|
|
2023
|
+
}];
|
|
2024
|
+
readonly outputs: readonly [{
|
|
2025
|
+
readonly name: "";
|
|
2026
|
+
readonly type: "uint256";
|
|
2027
|
+
}];
|
|
2028
|
+
}, {
|
|
2029
|
+
readonly stateMutability: "view";
|
|
2030
|
+
readonly type: "function";
|
|
2031
|
+
readonly name: "getDebtToRipeCollateralRatio";
|
|
2032
|
+
readonly inputs: readonly [{
|
|
2033
|
+
readonly name: "_levgVault";
|
|
2034
|
+
readonly type: "address";
|
|
2035
|
+
}, {
|
|
2036
|
+
readonly name: "_ripeVaultBook";
|
|
2037
|
+
readonly type: "address";
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly name: "_ripeMissionControl";
|
|
2040
|
+
readonly type: "address";
|
|
2041
|
+
}, {
|
|
2042
|
+
readonly name: "_ripeHq";
|
|
2043
|
+
readonly type: "address";
|
|
2044
|
+
}];
|
|
2045
|
+
readonly outputs: readonly [{
|
|
2046
|
+
readonly name: "";
|
|
2047
|
+
readonly type: "uint256";
|
|
2048
|
+
}];
|
|
1305
2049
|
}, {
|
|
1306
2050
|
readonly stateMutability: "view";
|
|
1307
2051
|
readonly type: "function";
|
|
@@ -1802,12 +2546,18 @@ export type Contract = {
|
|
|
1802
2546
|
getUnderlyingAmountForVaultToken: (levgVault: `0x${string}`, isCollateralAsset: boolean, shouldGetMax: boolean, legoBook?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1803
2547
|
getRipeCollateralBalance: (levgVault: `0x${string}`, asset: `0x${string}`, ripeVaultId?: bigint, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1804
2548
|
getUnderlyingGreenAmount: (levgVault: `0x${string}`, green?: `0x${string}`, savingsGreen?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
2549
|
+
getSavingsGreenBalances: (ripeHq?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
1805
2550
|
getSwappableUsdcAmount: (levgVault: `0x${string}`, leverageVaultToken?: `0x${string}`, leverageVaultTokenRipeVaultId?: bigint, usdc?: `0x${string}`, green?: `0x${string}`, savingsGreen?: `0x${string}`, legoBook?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1806
2551
|
getBorrowRate: (levgVault: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1807
2552
|
getDebtAmount: (levgVault: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
2553
|
+
getAvailableUsdcFromEndaomentPsm: (ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1808
2554
|
getTrueMaxBorrowAmount: (levgVault: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1809
|
-
getMaxBorrowAmountByMaxDebtRatio: (levgVault: `0x${string}`, underlyingAsset?: `0x${string}`, collateralVaultToken?: `0x${string}`, collateralVaultTokenRipeVaultId?: bigint, leverageVaultToken?: `0x${string}`,
|
|
2555
|
+
getMaxBorrowAmountByMaxDebtRatio: (levgVault: `0x${string}`, underlyingAsset?: `0x${string}`, collateralVaultToken?: `0x${string}`, collateralVaultTokenRipeVaultId?: bigint, leverageVaultToken?: `0x${string}`, totalAssets?: bigint, maxDebtRatio?: bigint, legoBook?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1810
2556
|
getMaxBorrowAmountByRipeLtv: (levgVault: `0x${string}`, creditEngine?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
2557
|
+
getNetUserDebt: (levgVault: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
2558
|
+
getDebtToDepositRatio: (levgVault: `0x${string}`, underlyingAsset?: `0x${string}`, collateralVaultToken?: `0x${string}`, collateralVaultTokenRipeVaultId?: bigint, leverageVaultToken?: `0x${string}`, totalAssets?: bigint, legoBook?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
2559
|
+
getDebtUtilization: (levgVault: `0x${string}`, underlyingAsset?: `0x${string}`, collateralVaultToken?: `0x${string}`, collateralVaultTokenRipeVaultId?: bigint, leverageVaultToken?: `0x${string}`, totalAssets?: bigint, maxDebtRatio?: bigint, legoBook?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
2560
|
+
getDebtToRipeCollateralRatio: (levgVault: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<bigint>;
|
|
1811
2561
|
getVaultTokenAmounts: (levgVault: `0x${string}`, isCollateralAsset: boolean, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
1812
2562
|
getUnderlyingAmounts: (levgVault: `0x${string}`, isCollateralAsset: boolean, shouldGetMax: boolean, legoBook?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
1813
2563
|
getGreenAmounts: (levgVault: `0x${string}`, green?: `0x${string}`, savingsGreen?: `0x${string}`, ripeVaultBook?: `0x${string}`, ripeMissionControl?: `0x${string}`, ripeHq?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
@@ -1854,12 +2604,18 @@ export type SDK = {
|
|
|
1854
2604
|
getUnderlyingAmountForVaultToken: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountForVaultToken']>) => Promise<CallReturn<'getUnderlyingAmountForVaultToken'>>;
|
|
1855
2605
|
getRipeCollateralBalance: (...args: ExtractArgs<Contract['calls']['getRipeCollateralBalance']>) => Promise<CallReturn<'getRipeCollateralBalance'>>;
|
|
1856
2606
|
getUnderlyingGreenAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingGreenAmount']>) => Promise<CallReturn<'getUnderlyingGreenAmount'>>;
|
|
2607
|
+
getSavingsGreenBalances: (...args: ExtractArgs<Contract['calls']['getSavingsGreenBalances']>) => Promise<CallReturn<'getSavingsGreenBalances'>>;
|
|
1857
2608
|
getSwappableUsdcAmount: (...args: ExtractArgs<Contract['calls']['getSwappableUsdcAmount']>) => Promise<CallReturn<'getSwappableUsdcAmount'>>;
|
|
1858
2609
|
getBorrowRate: (...args: ExtractArgs<Contract['calls']['getBorrowRate']>) => Promise<CallReturn<'getBorrowRate'>>;
|
|
1859
2610
|
getDebtAmount: (...args: ExtractArgs<Contract['calls']['getDebtAmount']>) => Promise<CallReturn<'getDebtAmount'>>;
|
|
2611
|
+
getAvailableUsdcFromEndaomentPsm: (...args: ExtractArgs<Contract['calls']['getAvailableUsdcFromEndaomentPsm']>) => Promise<CallReturn<'getAvailableUsdcFromEndaomentPsm'>>;
|
|
1860
2612
|
getTrueMaxBorrowAmount: (...args: ExtractArgs<Contract['calls']['getTrueMaxBorrowAmount']>) => Promise<CallReturn<'getTrueMaxBorrowAmount'>>;
|
|
1861
2613
|
getMaxBorrowAmountByMaxDebtRatio: (...args: ExtractArgs<Contract['calls']['getMaxBorrowAmountByMaxDebtRatio']>) => Promise<CallReturn<'getMaxBorrowAmountByMaxDebtRatio'>>;
|
|
1862
2614
|
getMaxBorrowAmountByRipeLtv: (...args: ExtractArgs<Contract['calls']['getMaxBorrowAmountByRipeLtv']>) => Promise<CallReturn<'getMaxBorrowAmountByRipeLtv'>>;
|
|
2615
|
+
getNetUserDebt: (...args: ExtractArgs<Contract['calls']['getNetUserDebt']>) => Promise<CallReturn<'getNetUserDebt'>>;
|
|
2616
|
+
getDebtToDepositRatio: (...args: ExtractArgs<Contract['calls']['getDebtToDepositRatio']>) => Promise<CallReturn<'getDebtToDepositRatio'>>;
|
|
2617
|
+
getDebtUtilization: (...args: ExtractArgs<Contract['calls']['getDebtUtilization']>) => Promise<CallReturn<'getDebtUtilization'>>;
|
|
2618
|
+
getDebtToRipeCollateralRatio: (...args: ExtractArgs<Contract['calls']['getDebtToRipeCollateralRatio']>) => Promise<CallReturn<'getDebtToRipeCollateralRatio'>>;
|
|
1863
2619
|
getVaultTokenAmounts: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmounts']>) => Promise<CallReturn<'getVaultTokenAmounts'>>;
|
|
1864
2620
|
getUnderlyingAmounts: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmounts']>) => Promise<CallReturn<'getUnderlyingAmounts'>>;
|
|
1865
2621
|
getGreenAmounts: (...args: ExtractArgs<Contract['calls']['getGreenAmounts']>) => Promise<CallReturn<'getGreenAmounts'>>;
|