@ripe-finance/sdk 1.13.2 → 1.14.2
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/AuctionHouse.d.ts +126 -60
- package/dist/contracts/AuctionHouse.d.ts.map +1 -1
- package/dist/contracts/AuctionHouse.js +145 -75
- package/dist/contracts/CreditEngine.d.ts +679 -242
- package/dist/contracts/CreditEngine.d.ts.map +1 -1
- package/dist/contracts/CreditEngine.js +790 -276
- package/dist/contracts/CreditRedeem.d.ts +475 -0
- package/dist/contracts/CreditRedeem.d.ts.map +1 -0
- package/dist/contracts/CreditRedeem.js +551 -0
- package/dist/contracts/Deleverage.d.ts +929 -0
- package/dist/contracts/Deleverage.d.ts.map +1 -0
- package/dist/contracts/Deleverage.js +1095 -0
- package/dist/contracts/RedStone.d.ts +1581 -0
- package/dist/contracts/RedStone.d.ts.map +1 -0
- package/dist/contracts/{AgentFactory_v2.js → RedStone.js} +1077 -682
- package/dist/contracts/RipePoolAero.d.ts +5 -5
- package/dist/contracts/RipePoolAero.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.d.ts +56 -0
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +73 -1
- package/dist/contracts/SwitchboardDelta.d.ts +115 -0
- package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
- package/dist/contracts/SwitchboardDelta.js +144 -1
- package/dist/contracts/Teller.d.ts +419 -0
- package/dist/contracts/Teller.d.ts.map +1 -1
- package/dist/contracts/Teller.js +531 -1
- package/dist/contracts/TellerUtils.d.ts +819 -0
- package/dist/contracts/TellerUtils.d.ts.map +1 -0
- package/dist/contracts/TellerUtils.js +994 -0
- package/dist/contracts/UnderscoreVault.d.ts +1028 -0
- package/dist/contracts/UnderscoreVault.d.ts.map +1 -0
- package/dist/contracts/UnderscoreVault.js +1243 -0
- package/dist/contracts/UndyVaultPrices.d.ts +1781 -0
- package/dist/contracts/UndyVaultPrices.d.ts.map +1 -0
- package/dist/contracts/{AgentFactory.js → UndyVaultPrices.js} +1185 -1024
- package/dist/contracts/index.d.ts +7 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +7 -0
- package/dist/contracts/sdk.d.ts +14 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +14 -0
- package/dist/contracts/{LegoMorpho.d.ts → wsuperOETHbPrices.d.ts} +610 -573
- package/dist/contracts/wsuperOETHbPrices.d.ts.map +1 -0
- package/dist/contracts/{LegoMorpho.js → wsuperOETHbPrices.js} +654 -632
- package/dist/index.d.ts +327 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/package.json +2 -2
- package/dist/contracts/AddyRegistry.d.ts +0 -1109
- package/dist/contracts/AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry.js +0 -1392
- package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
- package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v1.js +0 -594
- package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
- package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v2.js +0 -1313
- package/dist/contracts/Agent.d.ts +0 -2709
- package/dist/contracts/Agent.d.ts.map +0 -1
- package/dist/contracts/Agent.js +0 -3458
- package/dist/contracts/AgentFactory.d.ts +0 -1665
- package/dist/contracts/AgentFactory.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
- package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.js +0 -1336
- package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
- package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
- package/dist/contracts/AgentTemplate.d.ts +0 -2629
- package/dist/contracts/AgentTemplate.d.ts.map +0 -1
- package/dist/contracts/AgentTemplate.js +0 -3370
- package/dist/contracts/Agent_v1.d.ts +0 -2631
- package/dist/contracts/Agent_v1.d.ts.map +0 -1
- package/dist/contracts/Agent_v1.js +0 -3372
- package/dist/contracts/Agent_v2.d.ts +0 -2709
- package/dist/contracts/Agent_v2.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.js +0 -3458
- package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/ChainlinkFeeds.js +0 -900
- package/dist/contracts/LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/LegoAaveV3.js +0 -1330
- package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/LegoAeroClassic.js +0 -1546
- package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/LegoAeroSlipstream.js +0 -1671
- package/dist/contracts/LegoCommon.d.ts +0 -164
- package/dist/contracts/LegoCommon.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.js +0 -202
- package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/LegoCompoundV3.js +0 -1365
- package/dist/contracts/LegoCredit.d.ts +0 -140
- package/dist/contracts/LegoCredit.d.ts.map +0 -1
- package/dist/contracts/LegoCredit.js +0 -179
- package/dist/contracts/LegoCurve.d.ts +0 -1189
- package/dist/contracts/LegoCurve.d.ts.map +0 -1
- package/dist/contracts/LegoCurve.js +0 -1519
- package/dist/contracts/LegoDex.d.ts +0 -587
- package/dist/contracts/LegoDex.d.ts.map +0 -1
- package/dist/contracts/LegoDex.js +0 -774
- package/dist/contracts/LegoEuler.d.ts +0 -1074
- package/dist/contracts/LegoEuler.d.ts.map +0 -1
- package/dist/contracts/LegoEuler.js +0 -1383
- package/dist/contracts/LegoFluid.d.ts +0 -1025
- package/dist/contracts/LegoFluid.d.ts.map +0 -1
- package/dist/contracts/LegoFluid.js +0 -1320
- package/dist/contracts/LegoHelper.d.ts +0 -1563
- package/dist/contracts/LegoHelper.d.ts.map +0 -1
- package/dist/contracts/LegoHelper.js +0 -1947
- package/dist/contracts/LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/LegoMoonwell.js +0 -1342
- package/dist/contracts/LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.d.ts +0 -1079
- package/dist/contracts/LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.js +0 -1368
- package/dist/contracts/LegoSky.d.ts +0 -923
- package/dist/contracts/LegoSky.d.ts.map +0 -1
- package/dist/contracts/LegoSky.js +0 -1180
- package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV2.js +0 -1546
- package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV3.js +0 -1718
- package/dist/contracts/LegoYield.d.ts +0 -390
- package/dist/contracts/LegoYield.d.ts.map +0 -1
- package/dist/contracts/LegoYield.js +0 -511
- package/dist/contracts/OracleParser.d.ts +0 -207
- package/dist/contracts/OracleParser.d.ts.map +0 -1
- package/dist/contracts/OracleParser.js +0 -264
- package/dist/contracts/OracleRegistry.d.ts +0 -1221
- package/dist/contracts/OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/OracleRegistry.js +0 -1562
- package/dist/contracts/PriceSheets.d.ts +0 -1127
- package/dist/contracts/PriceSheets.d.ts.map +0 -1
- package/dist/contracts/PriceSheets.js +0 -1383
- package/dist/contracts/PythFeeds.d.ts +0 -640
- package/dist/contracts/PythFeeds.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.js +0 -813
- package/dist/contracts/RipePool.d.ts +0 -1264
- package/dist/contracts/RipePool.d.ts.map +0 -1
- package/dist/contracts/RipePool.js +0 -1627
- package/dist/contracts/StorkFeeds.d.ts +0 -640
- package/dist/contracts/StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/StorkFeeds.js +0 -813
- package/dist/contracts/UserWallet.d.ts +0 -1975
- package/dist/contracts/UserWallet.d.ts.map +0 -1
- package/dist/contracts/UserWallet.js +0 -2577
- package/dist/contracts/UserWalletConfig.d.ts +0 -1852
- package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig.js +0 -2263
- package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
- package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v1.js +0 -1676
- package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
- package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v2.js +0 -1764
- package/dist/contracts/UserWallet_v1.d.ts +0 -1980
- package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v1.js +0 -2581
- package/dist/contracts/UserWallet_v2.d.ts +0 -1958
- package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v2.js +0 -2553
- package/dist/contracts/WalletConfig.d.ts +0 -1398
- package/dist/contracts/WalletConfig.d.ts.map +0 -1
- package/dist/contracts/WalletConfig.js +0 -1674
- package/dist/contracts/WalletFunds.d.ts +0 -1978
- package/dist/contracts/WalletFunds.d.ts.map +0 -1
- package/dist/contracts/WalletFunds.js +0 -2579
|
@@ -104,48 +104,13 @@ export const abi = [
|
|
|
104
104
|
type: 'event',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: '
|
|
107
|
+
name: 'UnderscoreVaultDiscountSet',
|
|
108
108
|
inputs: [
|
|
109
109
|
{
|
|
110
|
-
name: '
|
|
111
|
-
type: 'address',
|
|
112
|
-
indexed: true,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'vaultId',
|
|
116
|
-
type: 'uint256',
|
|
117
|
-
indexed: false,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'asset',
|
|
121
|
-
type: 'address',
|
|
122
|
-
indexed: true,
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: 'amount',
|
|
126
|
-
type: 'uint256',
|
|
127
|
-
indexed: false,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: 'recipient',
|
|
131
|
-
type: 'address',
|
|
132
|
-
indexed: true,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'caller',
|
|
136
|
-
type: 'address',
|
|
137
|
-
indexed: false,
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: 'repayValue',
|
|
110
|
+
name: 'discount',
|
|
141
111
|
type: 'uint256',
|
|
142
112
|
indexed: false,
|
|
143
113
|
},
|
|
144
|
-
{
|
|
145
|
-
name: 'hasGoodDebtHealth',
|
|
146
|
-
type: 'bool',
|
|
147
|
-
indexed: false,
|
|
148
|
-
},
|
|
149
114
|
],
|
|
150
115
|
anonymous: false,
|
|
151
116
|
type: 'event',
|
|
@@ -662,12 +627,132 @@ export const abi = [
|
|
|
662
627
|
{
|
|
663
628
|
stateMutability: 'nonpayable',
|
|
664
629
|
type: 'function',
|
|
665
|
-
name: '
|
|
630
|
+
name: 'repayDuringAuctionPurchase',
|
|
631
|
+
inputs: [
|
|
632
|
+
{
|
|
633
|
+
name: '_liqUser',
|
|
634
|
+
type: 'address',
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: '_repayValue',
|
|
638
|
+
type: 'uint256',
|
|
639
|
+
},
|
|
640
|
+
],
|
|
641
|
+
outputs: [
|
|
642
|
+
{
|
|
643
|
+
name: '',
|
|
644
|
+
type: 'bool',
|
|
645
|
+
},
|
|
646
|
+
],
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
stateMutability: 'nonpayable',
|
|
650
|
+
type: 'function',
|
|
651
|
+
name: 'repayDuringAuctionPurchase',
|
|
666
652
|
inputs: [
|
|
667
653
|
{
|
|
668
654
|
name: '_liqUser',
|
|
669
655
|
type: 'address',
|
|
670
656
|
},
|
|
657
|
+
{
|
|
658
|
+
name: '_repayValue',
|
|
659
|
+
type: 'uint256',
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
name: '_a',
|
|
663
|
+
type: 'tuple',
|
|
664
|
+
components: [
|
|
665
|
+
{
|
|
666
|
+
name: 'hq',
|
|
667
|
+
type: 'address',
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
name: 'greenToken',
|
|
671
|
+
type: 'address',
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
name: 'savingsGreen',
|
|
675
|
+
type: 'address',
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
name: 'ripeToken',
|
|
679
|
+
type: 'address',
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
name: 'ledger',
|
|
683
|
+
type: 'address',
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
name: 'missionControl',
|
|
687
|
+
type: 'address',
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: 'switchboard',
|
|
691
|
+
type: 'address',
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: 'priceDesk',
|
|
695
|
+
type: 'address',
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: 'vaultBook',
|
|
699
|
+
type: 'address',
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
name: 'auctionHouse',
|
|
703
|
+
type: 'address',
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: 'auctionHouseNft',
|
|
707
|
+
type: 'address',
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
name: 'boardroom',
|
|
711
|
+
type: 'address',
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
name: 'bondRoom',
|
|
715
|
+
type: 'address',
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
name: 'creditEngine',
|
|
719
|
+
type: 'address',
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
name: 'endaoment',
|
|
723
|
+
type: 'address',
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
name: 'humanResources',
|
|
727
|
+
type: 'address',
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
name: 'lootbox',
|
|
731
|
+
type: 'address',
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: 'teller',
|
|
735
|
+
type: 'address',
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
},
|
|
739
|
+
],
|
|
740
|
+
outputs: [
|
|
741
|
+
{
|
|
742
|
+
name: '',
|
|
743
|
+
type: 'bool',
|
|
744
|
+
},
|
|
745
|
+
],
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
stateMutability: 'nonpayable',
|
|
749
|
+
type: 'function',
|
|
750
|
+
name: 'repayFromDept',
|
|
751
|
+
inputs: [
|
|
752
|
+
{
|
|
753
|
+
name: '_user',
|
|
754
|
+
type: 'address',
|
|
755
|
+
},
|
|
671
756
|
{
|
|
672
757
|
name: '_userDebt',
|
|
673
758
|
type: 'tuple',
|
|
@@ -728,6 +813,10 @@ export const abi = [
|
|
|
728
813
|
name: '_newInterest',
|
|
729
814
|
type: 'uint256',
|
|
730
815
|
},
|
|
816
|
+
{
|
|
817
|
+
name: '_numUserVaults',
|
|
818
|
+
type: 'uint256',
|
|
819
|
+
},
|
|
731
820
|
],
|
|
732
821
|
outputs: [
|
|
733
822
|
{
|
|
@@ -739,10 +828,10 @@ export const abi = [
|
|
|
739
828
|
{
|
|
740
829
|
stateMutability: 'nonpayable',
|
|
741
830
|
type: 'function',
|
|
742
|
-
name: '
|
|
831
|
+
name: 'repayFromDept',
|
|
743
832
|
inputs: [
|
|
744
833
|
{
|
|
745
|
-
name: '
|
|
834
|
+
name: '_user',
|
|
746
835
|
type: 'address',
|
|
747
836
|
},
|
|
748
837
|
{
|
|
@@ -805,6 +894,10 @@ export const abi = [
|
|
|
805
894
|
name: '_newInterest',
|
|
806
895
|
type: 'uint256',
|
|
807
896
|
},
|
|
897
|
+
{
|
|
898
|
+
name: '_numUserVaults',
|
|
899
|
+
type: 'uint256',
|
|
900
|
+
},
|
|
808
901
|
{
|
|
809
902
|
name: '_a',
|
|
810
903
|
type: 'tuple',
|
|
@@ -892,226 +985,244 @@ export const abi = [
|
|
|
892
985
|
],
|
|
893
986
|
},
|
|
894
987
|
{
|
|
895
|
-
stateMutability: '
|
|
988
|
+
stateMutability: 'view',
|
|
896
989
|
type: 'function',
|
|
897
|
-
name: '
|
|
990
|
+
name: 'getUserBorrowTerms',
|
|
898
991
|
inputs: [
|
|
899
992
|
{
|
|
900
|
-
name: '
|
|
993
|
+
name: '_user',
|
|
901
994
|
type: 'address',
|
|
902
995
|
},
|
|
903
996
|
{
|
|
904
|
-
name: '
|
|
905
|
-
type: '
|
|
997
|
+
name: '_shouldRaise',
|
|
998
|
+
type: 'bool',
|
|
906
999
|
},
|
|
907
1000
|
],
|
|
908
1001
|
outputs: [
|
|
909
1002
|
{
|
|
910
1003
|
name: '',
|
|
911
|
-
type: '
|
|
1004
|
+
type: 'tuple',
|
|
1005
|
+
components: [
|
|
1006
|
+
{
|
|
1007
|
+
name: 'collateralVal',
|
|
1008
|
+
type: 'uint256',
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
name: 'totalMaxDebt',
|
|
1012
|
+
type: 'uint256',
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
name: 'debtTerms',
|
|
1016
|
+
type: 'tuple',
|
|
1017
|
+
components: [
|
|
1018
|
+
{
|
|
1019
|
+
name: 'ltv',
|
|
1020
|
+
type: 'uint256',
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: 'redemptionThreshold',
|
|
1024
|
+
type: 'uint256',
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
name: 'liqThreshold',
|
|
1028
|
+
type: 'uint256',
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
name: 'liqFee',
|
|
1032
|
+
type: 'uint256',
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
name: 'borrowRate',
|
|
1036
|
+
type: 'uint256',
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
name: 'daowry',
|
|
1040
|
+
type: 'uint256',
|
|
1041
|
+
},
|
|
1042
|
+
],
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
name: 'lowestLtv',
|
|
1046
|
+
type: 'uint256',
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
name: 'highestLtv',
|
|
1050
|
+
type: 'uint256',
|
|
1051
|
+
},
|
|
1052
|
+
],
|
|
912
1053
|
},
|
|
913
1054
|
],
|
|
914
1055
|
},
|
|
915
1056
|
{
|
|
916
|
-
stateMutability: '
|
|
1057
|
+
stateMutability: 'view',
|
|
917
1058
|
type: 'function',
|
|
918
|
-
name: '
|
|
1059
|
+
name: 'getUserBorrowTerms',
|
|
919
1060
|
inputs: [
|
|
920
1061
|
{
|
|
921
|
-
name: '
|
|
1062
|
+
name: '_user',
|
|
922
1063
|
type: 'address',
|
|
923
1064
|
},
|
|
924
1065
|
{
|
|
925
|
-
name: '
|
|
1066
|
+
name: '_shouldRaise',
|
|
1067
|
+
type: 'bool',
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
name: '_skipVaultId',
|
|
926
1071
|
type: 'uint256',
|
|
927
1072
|
},
|
|
1073
|
+
],
|
|
1074
|
+
outputs: [
|
|
928
1075
|
{
|
|
929
|
-
name: '
|
|
1076
|
+
name: '',
|
|
930
1077
|
type: 'tuple',
|
|
931
1078
|
components: [
|
|
932
1079
|
{
|
|
933
|
-
name: '
|
|
934
|
-
type: '
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
name: 'greenToken',
|
|
938
|
-
type: 'address',
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
name: 'savingsGreen',
|
|
942
|
-
type: 'address',
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
name: 'ripeToken',
|
|
946
|
-
type: 'address',
|
|
1080
|
+
name: 'collateralVal',
|
|
1081
|
+
type: 'uint256',
|
|
947
1082
|
},
|
|
948
1083
|
{
|
|
949
|
-
name: '
|
|
950
|
-
type: '
|
|
1084
|
+
name: 'totalMaxDebt',
|
|
1085
|
+
type: 'uint256',
|
|
951
1086
|
},
|
|
952
1087
|
{
|
|
953
|
-
name: '
|
|
954
|
-
type: '
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
name: 'bondRoom',
|
|
982
|
-
type: 'address',
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
name: 'creditEngine',
|
|
986
|
-
type: 'address',
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
name: 'endaoment',
|
|
990
|
-
type: 'address',
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
name: 'humanResources',
|
|
994
|
-
type: 'address',
|
|
1088
|
+
name: 'debtTerms',
|
|
1089
|
+
type: 'tuple',
|
|
1090
|
+
components: [
|
|
1091
|
+
{
|
|
1092
|
+
name: 'ltv',
|
|
1093
|
+
type: 'uint256',
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
name: 'redemptionThreshold',
|
|
1097
|
+
type: 'uint256',
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
name: 'liqThreshold',
|
|
1101
|
+
type: 'uint256',
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
name: 'liqFee',
|
|
1105
|
+
type: 'uint256',
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
name: 'borrowRate',
|
|
1109
|
+
type: 'uint256',
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: 'daowry',
|
|
1113
|
+
type: 'uint256',
|
|
1114
|
+
},
|
|
1115
|
+
],
|
|
995
1116
|
},
|
|
996
1117
|
{
|
|
997
|
-
name: '
|
|
998
|
-
type: '
|
|
1118
|
+
name: 'lowestLtv',
|
|
1119
|
+
type: 'uint256',
|
|
999
1120
|
},
|
|
1000
1121
|
{
|
|
1001
|
-
name: '
|
|
1002
|
-
type: '
|
|
1122
|
+
name: 'highestLtv',
|
|
1123
|
+
type: 'uint256',
|
|
1003
1124
|
},
|
|
1004
1125
|
],
|
|
1005
1126
|
},
|
|
1006
1127
|
],
|
|
1007
|
-
outputs: [
|
|
1008
|
-
{
|
|
1009
|
-
name: '',
|
|
1010
|
-
type: 'bool',
|
|
1011
|
-
},
|
|
1012
|
-
],
|
|
1013
1128
|
},
|
|
1014
1129
|
{
|
|
1015
|
-
stateMutability: '
|
|
1130
|
+
stateMutability: 'view',
|
|
1016
1131
|
type: 'function',
|
|
1017
|
-
name: '
|
|
1132
|
+
name: 'getUserBorrowTerms',
|
|
1018
1133
|
inputs: [
|
|
1019
1134
|
{
|
|
1020
|
-
name: '
|
|
1021
|
-
type: 'tuple[]',
|
|
1022
|
-
components: [
|
|
1023
|
-
{
|
|
1024
|
-
name: 'user',
|
|
1025
|
-
type: 'address',
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
name: 'vaultId',
|
|
1029
|
-
type: 'uint256',
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
name: 'asset',
|
|
1033
|
-
type: 'address',
|
|
1034
|
-
},
|
|
1035
|
-
{
|
|
1036
|
-
name: 'maxGreenAmount',
|
|
1037
|
-
type: 'uint256',
|
|
1038
|
-
},
|
|
1039
|
-
],
|
|
1040
|
-
},
|
|
1041
|
-
{
|
|
1042
|
-
name: '_greenAmount',
|
|
1043
|
-
type: 'uint256',
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
name: '_recipient',
|
|
1135
|
+
name: '_user',
|
|
1047
1136
|
type: 'address',
|
|
1048
1137
|
},
|
|
1049
1138
|
{
|
|
1050
|
-
name: '
|
|
1051
|
-
type: '
|
|
1139
|
+
name: '_shouldRaise',
|
|
1140
|
+
type: 'bool',
|
|
1052
1141
|
},
|
|
1053
1142
|
{
|
|
1054
|
-
name: '
|
|
1055
|
-
type: '
|
|
1143
|
+
name: '_skipVaultId',
|
|
1144
|
+
type: 'uint256',
|
|
1056
1145
|
},
|
|
1057
1146
|
{
|
|
1058
|
-
name: '
|
|
1059
|
-
type: '
|
|
1147
|
+
name: '_skipAsset',
|
|
1148
|
+
type: 'address',
|
|
1060
1149
|
},
|
|
1061
1150
|
],
|
|
1062
1151
|
outputs: [
|
|
1063
1152
|
{
|
|
1064
1153
|
name: '',
|
|
1065
|
-
type: '
|
|
1066
|
-
},
|
|
1067
|
-
],
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
stateMutability: 'nonpayable',
|
|
1071
|
-
type: 'function',
|
|
1072
|
-
name: 'redeemCollateralFromMany',
|
|
1073
|
-
inputs: [
|
|
1074
|
-
{
|
|
1075
|
-
name: '_redemptions',
|
|
1076
|
-
type: 'tuple[]',
|
|
1154
|
+
type: 'tuple',
|
|
1077
1155
|
components: [
|
|
1078
1156
|
{
|
|
1079
|
-
name: '
|
|
1080
|
-
type: '
|
|
1157
|
+
name: 'collateralVal',
|
|
1158
|
+
type: 'uint256',
|
|
1081
1159
|
},
|
|
1082
1160
|
{
|
|
1083
|
-
name: '
|
|
1161
|
+
name: 'totalMaxDebt',
|
|
1084
1162
|
type: 'uint256',
|
|
1085
1163
|
},
|
|
1086
1164
|
{
|
|
1087
|
-
name: '
|
|
1088
|
-
type: '
|
|
1165
|
+
name: 'debtTerms',
|
|
1166
|
+
type: 'tuple',
|
|
1167
|
+
components: [
|
|
1168
|
+
{
|
|
1169
|
+
name: 'ltv',
|
|
1170
|
+
type: 'uint256',
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
name: 'redemptionThreshold',
|
|
1174
|
+
type: 'uint256',
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
name: 'liqThreshold',
|
|
1178
|
+
type: 'uint256',
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
name: 'liqFee',
|
|
1182
|
+
type: 'uint256',
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
name: 'borrowRate',
|
|
1186
|
+
type: 'uint256',
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
name: 'daowry',
|
|
1190
|
+
type: 'uint256',
|
|
1191
|
+
},
|
|
1192
|
+
],
|
|
1089
1193
|
},
|
|
1090
1194
|
{
|
|
1091
|
-
name: '
|
|
1195
|
+
name: 'lowestLtv',
|
|
1196
|
+
type: 'uint256',
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
name: 'highestLtv',
|
|
1092
1200
|
type: 'uint256',
|
|
1093
1201
|
},
|
|
1094
1202
|
],
|
|
1095
1203
|
},
|
|
1204
|
+
],
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
stateMutability: 'view',
|
|
1208
|
+
type: 'function',
|
|
1209
|
+
name: 'getUserBorrowTerms',
|
|
1210
|
+
inputs: [
|
|
1096
1211
|
{
|
|
1097
|
-
name: '
|
|
1098
|
-
type: 'uint256',
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
name: '_recipient',
|
|
1212
|
+
name: '_user',
|
|
1102
1213
|
type: 'address',
|
|
1103
1214
|
},
|
|
1104
1215
|
{
|
|
1105
|
-
name: '
|
|
1106
|
-
type: '
|
|
1216
|
+
name: '_shouldRaise',
|
|
1217
|
+
type: 'bool',
|
|
1107
1218
|
},
|
|
1108
1219
|
{
|
|
1109
|
-
name: '
|
|
1110
|
-
type: '
|
|
1220
|
+
name: '_skipVaultId',
|
|
1221
|
+
type: 'uint256',
|
|
1111
1222
|
},
|
|
1112
1223
|
{
|
|
1113
|
-
name: '
|
|
1114
|
-
type: '
|
|
1224
|
+
name: '_skipAsset',
|
|
1225
|
+
type: 'address',
|
|
1115
1226
|
},
|
|
1116
1227
|
{
|
|
1117
1228
|
name: '_a',
|
|
@@ -1195,53 +1306,71 @@ export const abi = [
|
|
|
1195
1306
|
outputs: [
|
|
1196
1307
|
{
|
|
1197
1308
|
name: '',
|
|
1198
|
-
type: '
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1309
|
+
type: 'tuple',
|
|
1310
|
+
components: [
|
|
1311
|
+
{
|
|
1312
|
+
name: 'collateralVal',
|
|
1313
|
+
type: 'uint256',
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
name: 'totalMaxDebt',
|
|
1317
|
+
type: 'uint256',
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
name: 'debtTerms',
|
|
1321
|
+
type: 'tuple',
|
|
1322
|
+
components: [
|
|
1323
|
+
{
|
|
1324
|
+
name: 'ltv',
|
|
1325
|
+
type: 'uint256',
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
name: 'redemptionThreshold',
|
|
1329
|
+
type: 'uint256',
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
name: 'liqThreshold',
|
|
1333
|
+
type: 'uint256',
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
name: 'liqFee',
|
|
1337
|
+
type: 'uint256',
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
name: 'borrowRate',
|
|
1341
|
+
type: 'uint256',
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
name: 'daowry',
|
|
1345
|
+
type: 'uint256',
|
|
1346
|
+
},
|
|
1347
|
+
],
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
name: 'lowestLtv',
|
|
1351
|
+
type: 'uint256',
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
name: 'highestLtv',
|
|
1355
|
+
type: 'uint256',
|
|
1356
|
+
},
|
|
1357
|
+
],
|
|
1216
1358
|
},
|
|
1217
1359
|
],
|
|
1218
1360
|
},
|
|
1219
1361
|
{
|
|
1220
1362
|
stateMutability: 'view',
|
|
1221
1363
|
type: 'function',
|
|
1222
|
-
name: '
|
|
1364
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1223
1365
|
inputs: [
|
|
1224
1366
|
{
|
|
1225
1367
|
name: '_user',
|
|
1226
1368
|
type: 'address',
|
|
1227
1369
|
},
|
|
1228
|
-
],
|
|
1229
|
-
outputs: [
|
|
1230
1370
|
{
|
|
1231
|
-
name: '',
|
|
1371
|
+
name: '_numUserVaults',
|
|
1232
1372
|
type: 'uint256',
|
|
1233
1373
|
},
|
|
1234
|
-
],
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
stateMutability: 'view',
|
|
1238
|
-
type: 'function',
|
|
1239
|
-
name: 'getUserBorrowTerms',
|
|
1240
|
-
inputs: [
|
|
1241
|
-
{
|
|
1242
|
-
name: '_user',
|
|
1243
|
-
type: 'address',
|
|
1244
|
-
},
|
|
1245
1374
|
{
|
|
1246
1375
|
name: '_shouldRaise',
|
|
1247
1376
|
type: 'bool',
|
|
@@ -1290,6 +1419,14 @@ export const abi = [
|
|
|
1290
1419
|
},
|
|
1291
1420
|
],
|
|
1292
1421
|
},
|
|
1422
|
+
{
|
|
1423
|
+
name: 'lowestLtv',
|
|
1424
|
+
type: 'uint256',
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
name: 'highestLtv',
|
|
1428
|
+
type: 'uint256',
|
|
1429
|
+
},
|
|
1293
1430
|
],
|
|
1294
1431
|
},
|
|
1295
1432
|
],
|
|
@@ -1297,12 +1434,16 @@ export const abi = [
|
|
|
1297
1434
|
{
|
|
1298
1435
|
stateMutability: 'view',
|
|
1299
1436
|
type: 'function',
|
|
1300
|
-
name: '
|
|
1437
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1301
1438
|
inputs: [
|
|
1302
1439
|
{
|
|
1303
1440
|
name: '_user',
|
|
1304
1441
|
type: 'address',
|
|
1305
1442
|
},
|
|
1443
|
+
{
|
|
1444
|
+
name: '_numUserVaults',
|
|
1445
|
+
type: 'uint256',
|
|
1446
|
+
},
|
|
1306
1447
|
{
|
|
1307
1448
|
name: '_shouldRaise',
|
|
1308
1449
|
type: 'bool',
|
|
@@ -1355,6 +1496,14 @@ export const abi = [
|
|
|
1355
1496
|
},
|
|
1356
1497
|
],
|
|
1357
1498
|
},
|
|
1499
|
+
{
|
|
1500
|
+
name: 'lowestLtv',
|
|
1501
|
+
type: 'uint256',
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
name: 'highestLtv',
|
|
1505
|
+
type: 'uint256',
|
|
1506
|
+
},
|
|
1358
1507
|
],
|
|
1359
1508
|
},
|
|
1360
1509
|
],
|
|
@@ -1362,12 +1511,16 @@ export const abi = [
|
|
|
1362
1511
|
{
|
|
1363
1512
|
stateMutability: 'view',
|
|
1364
1513
|
type: 'function',
|
|
1365
|
-
name: '
|
|
1514
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1366
1515
|
inputs: [
|
|
1367
1516
|
{
|
|
1368
1517
|
name: '_user',
|
|
1369
1518
|
type: 'address',
|
|
1370
1519
|
},
|
|
1520
|
+
{
|
|
1521
|
+
name: '_numUserVaults',
|
|
1522
|
+
type: 'uint256',
|
|
1523
|
+
},
|
|
1371
1524
|
{
|
|
1372
1525
|
name: '_shouldRaise',
|
|
1373
1526
|
type: 'bool',
|
|
@@ -1424,6 +1577,14 @@ export const abi = [
|
|
|
1424
1577
|
},
|
|
1425
1578
|
],
|
|
1426
1579
|
},
|
|
1580
|
+
{
|
|
1581
|
+
name: 'lowestLtv',
|
|
1582
|
+
type: 'uint256',
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
name: 'highestLtv',
|
|
1586
|
+
type: 'uint256',
|
|
1587
|
+
},
|
|
1427
1588
|
],
|
|
1428
1589
|
},
|
|
1429
1590
|
],
|
|
@@ -1431,12 +1592,16 @@ export const abi = [
|
|
|
1431
1592
|
{
|
|
1432
1593
|
stateMutability: 'view',
|
|
1433
1594
|
type: 'function',
|
|
1434
|
-
name: '
|
|
1595
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1435
1596
|
inputs: [
|
|
1436
1597
|
{
|
|
1437
1598
|
name: '_user',
|
|
1438
1599
|
type: 'address',
|
|
1439
1600
|
},
|
|
1601
|
+
{
|
|
1602
|
+
name: '_numUserVaults',
|
|
1603
|
+
type: 'uint256',
|
|
1604
|
+
},
|
|
1440
1605
|
{
|
|
1441
1606
|
name: '_shouldRaise',
|
|
1442
1607
|
type: 'bool',
|
|
@@ -1571,10 +1736,73 @@ export const abi = [
|
|
|
1571
1736
|
},
|
|
1572
1737
|
],
|
|
1573
1738
|
},
|
|
1739
|
+
{
|
|
1740
|
+
name: 'lowestLtv',
|
|
1741
|
+
type: 'uint256',
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
name: 'highestLtv',
|
|
1745
|
+
type: 'uint256',
|
|
1746
|
+
},
|
|
1574
1747
|
],
|
|
1575
1748
|
},
|
|
1576
1749
|
],
|
|
1577
1750
|
},
|
|
1751
|
+
{
|
|
1752
|
+
stateMutability: 'view',
|
|
1753
|
+
type: 'function',
|
|
1754
|
+
name: 'getUserCollateralValueAndDebtAmount',
|
|
1755
|
+
inputs: [
|
|
1756
|
+
{
|
|
1757
|
+
name: '_user',
|
|
1758
|
+
type: 'address',
|
|
1759
|
+
},
|
|
1760
|
+
],
|
|
1761
|
+
outputs: [
|
|
1762
|
+
{
|
|
1763
|
+
name: '',
|
|
1764
|
+
type: 'uint256',
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
name: '',
|
|
1768
|
+
type: 'uint256',
|
|
1769
|
+
},
|
|
1770
|
+
],
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
stateMutability: 'view',
|
|
1774
|
+
type: 'function',
|
|
1775
|
+
name: 'getCollateralValue',
|
|
1776
|
+
inputs: [
|
|
1777
|
+
{
|
|
1778
|
+
name: '_user',
|
|
1779
|
+
type: 'address',
|
|
1780
|
+
},
|
|
1781
|
+
],
|
|
1782
|
+
outputs: [
|
|
1783
|
+
{
|
|
1784
|
+
name: '',
|
|
1785
|
+
type: 'uint256',
|
|
1786
|
+
},
|
|
1787
|
+
],
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
stateMutability: 'view',
|
|
1791
|
+
type: 'function',
|
|
1792
|
+
name: 'getUserDebtAmount',
|
|
1793
|
+
inputs: [
|
|
1794
|
+
{
|
|
1795
|
+
name: '_user',
|
|
1796
|
+
type: 'address',
|
|
1797
|
+
},
|
|
1798
|
+
],
|
|
1799
|
+
outputs: [
|
|
1800
|
+
{
|
|
1801
|
+
name: '',
|
|
1802
|
+
type: 'uint256',
|
|
1803
|
+
},
|
|
1804
|
+
],
|
|
1805
|
+
},
|
|
1578
1806
|
{
|
|
1579
1807
|
stateMutability: 'view',
|
|
1580
1808
|
type: 'function',
|
|
@@ -1684,6 +1912,14 @@ export const abi = [
|
|
|
1684
1912
|
},
|
|
1685
1913
|
],
|
|
1686
1914
|
},
|
|
1915
|
+
{
|
|
1916
|
+
name: 'lowestLtv',
|
|
1917
|
+
type: 'uint256',
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
name: 'highestLtv',
|
|
1921
|
+
type: 'uint256',
|
|
1922
|
+
},
|
|
1687
1923
|
],
|
|
1688
1924
|
},
|
|
1689
1925
|
{
|
|
@@ -1778,15 +2014,130 @@ export const abi = [
|
|
|
1778
2014
|
type: 'address',
|
|
1779
2015
|
},
|
|
1780
2016
|
{
|
|
1781
|
-
name: 'teller',
|
|
1782
|
-
type: 'address',
|
|
2017
|
+
name: 'teller',
|
|
2018
|
+
type: 'address',
|
|
2019
|
+
},
|
|
2020
|
+
],
|
|
2021
|
+
},
|
|
2022
|
+
],
|
|
2023
|
+
outputs: [
|
|
2024
|
+
{
|
|
2025
|
+
name: '',
|
|
2026
|
+
type: 'tuple',
|
|
2027
|
+
components: [
|
|
2028
|
+
{
|
|
2029
|
+
name: 'amount',
|
|
2030
|
+
type: 'uint256',
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
name: 'principal',
|
|
2034
|
+
type: 'uint256',
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
name: 'debtTerms',
|
|
2038
|
+
type: 'tuple',
|
|
2039
|
+
components: [
|
|
2040
|
+
{
|
|
2041
|
+
name: 'ltv',
|
|
2042
|
+
type: 'uint256',
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
name: 'redemptionThreshold',
|
|
2046
|
+
type: 'uint256',
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
name: 'liqThreshold',
|
|
2050
|
+
type: 'uint256',
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
name: 'liqFee',
|
|
2054
|
+
type: 'uint256',
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
name: 'borrowRate',
|
|
2058
|
+
type: 'uint256',
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
name: 'daowry',
|
|
2062
|
+
type: 'uint256',
|
|
2063
|
+
},
|
|
2064
|
+
],
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
name: 'lastTimestamp',
|
|
2068
|
+
type: 'uint256',
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
name: 'inLiquidation',
|
|
2072
|
+
type: 'bool',
|
|
2073
|
+
},
|
|
2074
|
+
],
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
name: '',
|
|
2078
|
+
type: 'tuple',
|
|
2079
|
+
components: [
|
|
2080
|
+
{
|
|
2081
|
+
name: 'collateralVal',
|
|
2082
|
+
type: 'uint256',
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
name: 'totalMaxDebt',
|
|
2086
|
+
type: 'uint256',
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
name: 'debtTerms',
|
|
2090
|
+
type: 'tuple',
|
|
2091
|
+
components: [
|
|
2092
|
+
{
|
|
2093
|
+
name: 'ltv',
|
|
2094
|
+
type: 'uint256',
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
name: 'redemptionThreshold',
|
|
2098
|
+
type: 'uint256',
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
name: 'liqThreshold',
|
|
2102
|
+
type: 'uint256',
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
name: 'liqFee',
|
|
2106
|
+
type: 'uint256',
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
name: 'borrowRate',
|
|
2110
|
+
type: 'uint256',
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
name: 'daowry',
|
|
2114
|
+
type: 'uint256',
|
|
2115
|
+
},
|
|
2116
|
+
],
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
name: 'lowestLtv',
|
|
2120
|
+
type: 'uint256',
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
name: 'highestLtv',
|
|
2124
|
+
type: 'uint256',
|
|
1783
2125
|
},
|
|
1784
2126
|
],
|
|
1785
2127
|
},
|
|
1786
|
-
],
|
|
1787
|
-
outputs: [
|
|
1788
2128
|
{
|
|
1789
2129
|
name: '',
|
|
2130
|
+
type: 'uint256',
|
|
2131
|
+
},
|
|
2132
|
+
],
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
stateMutability: 'view',
|
|
2136
|
+
type: 'function',
|
|
2137
|
+
name: 'getLatestUserDebtWithInterest',
|
|
2138
|
+
inputs: [
|
|
2139
|
+
{
|
|
2140
|
+
name: '_userDebt',
|
|
1790
2141
|
type: 'tuple',
|
|
1791
2142
|
components: [
|
|
1792
2143
|
{
|
|
@@ -1837,16 +2188,18 @@ export const abi = [
|
|
|
1837
2188
|
},
|
|
1838
2189
|
],
|
|
1839
2190
|
},
|
|
2191
|
+
],
|
|
2192
|
+
outputs: [
|
|
1840
2193
|
{
|
|
1841
2194
|
name: '',
|
|
1842
2195
|
type: 'tuple',
|
|
1843
2196
|
components: [
|
|
1844
2197
|
{
|
|
1845
|
-
name: '
|
|
2198
|
+
name: 'amount',
|
|
1846
2199
|
type: 'uint256',
|
|
1847
2200
|
},
|
|
1848
2201
|
{
|
|
1849
|
-
name: '
|
|
2202
|
+
name: 'principal',
|
|
1850
2203
|
type: 'uint256',
|
|
1851
2204
|
},
|
|
1852
2205
|
{
|
|
@@ -1879,6 +2232,14 @@ export const abi = [
|
|
|
1879
2232
|
},
|
|
1880
2233
|
],
|
|
1881
2234
|
},
|
|
2235
|
+
{
|
|
2236
|
+
name: 'lastTimestamp',
|
|
2237
|
+
type: 'uint256',
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
name: 'inLiquidation',
|
|
2241
|
+
type: 'bool',
|
|
2242
|
+
},
|
|
1882
2243
|
],
|
|
1883
2244
|
},
|
|
1884
2245
|
{
|
|
@@ -1890,24 +2251,7 @@ export const abi = [
|
|
|
1890
2251
|
{
|
|
1891
2252
|
stateMutability: 'view',
|
|
1892
2253
|
type: 'function',
|
|
1893
|
-
name: '
|
|
1894
|
-
inputs: [
|
|
1895
|
-
{
|
|
1896
|
-
name: '_baseRate',
|
|
1897
|
-
type: 'uint256',
|
|
1898
|
-
},
|
|
1899
|
-
],
|
|
1900
|
-
outputs: [
|
|
1901
|
-
{
|
|
1902
|
-
name: '',
|
|
1903
|
-
type: 'uint256',
|
|
1904
|
-
},
|
|
1905
|
-
],
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
stateMutability: 'nonpayable',
|
|
1909
|
-
type: 'function',
|
|
1910
|
-
name: 'updateDebtForUser',
|
|
2254
|
+
name: 'hasGoodDebtHealth',
|
|
1911
2255
|
inputs: [
|
|
1912
2256
|
{
|
|
1913
2257
|
name: '_user',
|
|
@@ -1922,9 +2266,9 @@ export const abi = [
|
|
|
1922
2266
|
],
|
|
1923
2267
|
},
|
|
1924
2268
|
{
|
|
1925
|
-
stateMutability: '
|
|
2269
|
+
stateMutability: 'view',
|
|
1926
2270
|
type: 'function',
|
|
1927
|
-
name: '
|
|
2271
|
+
name: 'hasGoodDebtHealth',
|
|
1928
2272
|
inputs: [
|
|
1929
2273
|
{
|
|
1930
2274
|
name: '_user',
|
|
@@ -2019,7 +2363,7 @@ export const abi = [
|
|
|
2019
2363
|
{
|
|
2020
2364
|
stateMutability: 'view',
|
|
2021
2365
|
type: 'function',
|
|
2022
|
-
name: '
|
|
2366
|
+
name: 'canLiquidateUser',
|
|
2023
2367
|
inputs: [
|
|
2024
2368
|
{
|
|
2025
2369
|
name: '_user',
|
|
@@ -2036,7 +2380,7 @@ export const abi = [
|
|
|
2036
2380
|
{
|
|
2037
2381
|
stateMutability: 'view',
|
|
2038
2382
|
type: 'function',
|
|
2039
|
-
name: '
|
|
2383
|
+
name: 'canLiquidateUser',
|
|
2040
2384
|
inputs: [
|
|
2041
2385
|
{
|
|
2042
2386
|
name: '_user',
|
|
@@ -2131,7 +2475,7 @@ export const abi = [
|
|
|
2131
2475
|
{
|
|
2132
2476
|
stateMutability: 'view',
|
|
2133
2477
|
type: 'function',
|
|
2134
|
-
name: '
|
|
2478
|
+
name: 'canRedeemUserCollateral',
|
|
2135
2479
|
inputs: [
|
|
2136
2480
|
{
|
|
2137
2481
|
name: '_user',
|
|
@@ -2148,7 +2492,7 @@ export const abi = [
|
|
|
2148
2492
|
{
|
|
2149
2493
|
stateMutability: 'view',
|
|
2150
2494
|
type: 'function',
|
|
2151
|
-
name: '
|
|
2495
|
+
name: 'canRedeemUserCollateral',
|
|
2152
2496
|
inputs: [
|
|
2153
2497
|
{
|
|
2154
2498
|
name: '_user',
|
|
@@ -2243,7 +2587,7 @@ export const abi = [
|
|
|
2243
2587
|
{
|
|
2244
2588
|
stateMutability: 'view',
|
|
2245
2589
|
type: 'function',
|
|
2246
|
-
name: '
|
|
2590
|
+
name: 'getLiquidationThreshold',
|
|
2247
2591
|
inputs: [
|
|
2248
2592
|
{
|
|
2249
2593
|
name: '_user',
|
|
@@ -2253,14 +2597,77 @@ export const abi = [
|
|
|
2253
2597
|
outputs: [
|
|
2254
2598
|
{
|
|
2255
2599
|
name: '',
|
|
2256
|
-
type: '
|
|
2600
|
+
type: 'uint256',
|
|
2257
2601
|
},
|
|
2258
2602
|
],
|
|
2259
2603
|
},
|
|
2260
2604
|
{
|
|
2261
2605
|
stateMutability: 'view',
|
|
2262
2606
|
type: 'function',
|
|
2263
|
-
name: '
|
|
2607
|
+
name: 'getRedemptionThreshold',
|
|
2608
|
+
inputs: [
|
|
2609
|
+
{
|
|
2610
|
+
name: '_user',
|
|
2611
|
+
type: 'address',
|
|
2612
|
+
},
|
|
2613
|
+
],
|
|
2614
|
+
outputs: [
|
|
2615
|
+
{
|
|
2616
|
+
name: '',
|
|
2617
|
+
type: 'uint256',
|
|
2618
|
+
},
|
|
2619
|
+
],
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
stateMutability: 'view',
|
|
2623
|
+
type: 'function',
|
|
2624
|
+
name: 'getDynamicBorrowRate',
|
|
2625
|
+
inputs: [
|
|
2626
|
+
{
|
|
2627
|
+
name: '_baseRate',
|
|
2628
|
+
type: 'uint256',
|
|
2629
|
+
},
|
|
2630
|
+
],
|
|
2631
|
+
outputs: [
|
|
2632
|
+
{
|
|
2633
|
+
name: '',
|
|
2634
|
+
type: 'uint256',
|
|
2635
|
+
},
|
|
2636
|
+
],
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
stateMutability: 'nonpayable',
|
|
2640
|
+
type: 'function',
|
|
2641
|
+
name: 'setUnderscoreVaultDiscount',
|
|
2642
|
+
inputs: [
|
|
2643
|
+
{
|
|
2644
|
+
name: '_discount',
|
|
2645
|
+
type: 'uint256',
|
|
2646
|
+
},
|
|
2647
|
+
],
|
|
2648
|
+
outputs: [],
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
stateMutability: 'nonpayable',
|
|
2652
|
+
type: 'function',
|
|
2653
|
+
name: 'updateDebtForUser',
|
|
2654
|
+
inputs: [
|
|
2655
|
+
{
|
|
2656
|
+
name: '_user',
|
|
2657
|
+
type: 'address',
|
|
2658
|
+
},
|
|
2659
|
+
],
|
|
2660
|
+
outputs: [
|
|
2661
|
+
{
|
|
2662
|
+
name: '',
|
|
2663
|
+
type: 'bool',
|
|
2664
|
+
},
|
|
2665
|
+
],
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
stateMutability: 'nonpayable',
|
|
2669
|
+
type: 'function',
|
|
2670
|
+
name: 'updateDebtForUser',
|
|
2264
2671
|
inputs: [
|
|
2265
2672
|
{
|
|
2266
2673
|
name: '_user',
|
|
@@ -2353,31 +2760,116 @@ export const abi = [
|
|
|
2353
2760
|
],
|
|
2354
2761
|
},
|
|
2355
2762
|
{
|
|
2356
|
-
stateMutability: '
|
|
2763
|
+
stateMutability: 'nonpayable',
|
|
2357
2764
|
type: 'function',
|
|
2358
|
-
name: '
|
|
2765
|
+
name: 'transferOrWithdrawViaRedemption',
|
|
2359
2766
|
inputs: [
|
|
2767
|
+
{
|
|
2768
|
+
name: '_shouldTransferBalance',
|
|
2769
|
+
type: 'bool',
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
name: '_asset',
|
|
2773
|
+
type: 'address',
|
|
2774
|
+
},
|
|
2360
2775
|
{
|
|
2361
2776
|
name: '_user',
|
|
2362
2777
|
type: 'address',
|
|
2363
2778
|
},
|
|
2364
|
-
],
|
|
2365
|
-
outputs: [
|
|
2366
2779
|
{
|
|
2367
|
-
name: '',
|
|
2780
|
+
name: '_recipient',
|
|
2781
|
+
type: 'address',
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
name: '_amount',
|
|
2368
2785
|
type: 'uint256',
|
|
2369
2786
|
},
|
|
2370
|
-
],
|
|
2371
|
-
},
|
|
2372
|
-
{
|
|
2373
|
-
stateMutability: 'view',
|
|
2374
|
-
type: 'function',
|
|
2375
|
-
name: 'getRedemptionThreshold',
|
|
2376
|
-
inputs: [
|
|
2377
2787
|
{
|
|
2378
|
-
name: '
|
|
2788
|
+
name: '_vaultId',
|
|
2789
|
+
type: 'uint256',
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
name: '_vaultAddr',
|
|
2379
2793
|
type: 'address',
|
|
2380
2794
|
},
|
|
2795
|
+
{
|
|
2796
|
+
name: '_a',
|
|
2797
|
+
type: 'tuple',
|
|
2798
|
+
components: [
|
|
2799
|
+
{
|
|
2800
|
+
name: 'hq',
|
|
2801
|
+
type: 'address',
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
name: 'greenToken',
|
|
2805
|
+
type: 'address',
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
name: 'savingsGreen',
|
|
2809
|
+
type: 'address',
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
name: 'ripeToken',
|
|
2813
|
+
type: 'address',
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
name: 'ledger',
|
|
2817
|
+
type: 'address',
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
name: 'missionControl',
|
|
2821
|
+
type: 'address',
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
name: 'switchboard',
|
|
2825
|
+
type: 'address',
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
name: 'priceDesk',
|
|
2829
|
+
type: 'address',
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
name: 'vaultBook',
|
|
2833
|
+
type: 'address',
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
name: 'auctionHouse',
|
|
2837
|
+
type: 'address',
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
name: 'auctionHouseNft',
|
|
2841
|
+
type: 'address',
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
name: 'boardroom',
|
|
2845
|
+
type: 'address',
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
name: 'bondRoom',
|
|
2849
|
+
type: 'address',
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
name: 'creditEngine',
|
|
2853
|
+
type: 'address',
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
name: 'endaoment',
|
|
2857
|
+
type: 'address',
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
name: 'humanResources',
|
|
2861
|
+
type: 'address',
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
name: 'lootbox',
|
|
2865
|
+
type: 'address',
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
name: 'teller',
|
|
2869
|
+
type: 'address',
|
|
2870
|
+
},
|
|
2871
|
+
],
|
|
2872
|
+
},
|
|
2381
2873
|
],
|
|
2382
2874
|
outputs: [
|
|
2383
2875
|
{
|
|
@@ -2547,6 +3039,18 @@ export const abi = [
|
|
|
2547
3039
|
},
|
|
2548
3040
|
],
|
|
2549
3041
|
},
|
|
3042
|
+
{
|
|
3043
|
+
stateMutability: 'view',
|
|
3044
|
+
type: 'function',
|
|
3045
|
+
name: 'undyVaulDiscount',
|
|
3046
|
+
inputs: [],
|
|
3047
|
+
outputs: [
|
|
3048
|
+
{
|
|
3049
|
+
name: '',
|
|
3050
|
+
type: 'uint256',
|
|
3051
|
+
},
|
|
3052
|
+
],
|
|
3053
|
+
},
|
|
2550
3054
|
{
|
|
2551
3055
|
stateMutability: 'nonpayable',
|
|
2552
3056
|
type: 'constructor',
|
|
@@ -2559,7 +3063,7 @@ export const abi = [
|
|
|
2559
3063
|
outputs: [],
|
|
2560
3064
|
},
|
|
2561
3065
|
];
|
|
2562
|
-
export const deployAddress = '
|
|
3066
|
+
export const deployAddress = '0xf9111dFcAbf2538D6ED9057C07e18bc14AC8DA6a';
|
|
2563
3067
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
2564
3068
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
2565
3069
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -2594,17 +3098,21 @@ export const call = {
|
|
|
2594
3098
|
canMintRipe: (...args) => getRequest('canMintRipe', args),
|
|
2595
3099
|
isPaused: (...args) => getRequest('isPaused', args),
|
|
2596
3100
|
getMaxBorrowAmount: (...args) => getRequest('getMaxBorrowAmount', args),
|
|
2597
|
-
getMaxRedeemValue: (...args) => getRequest('getMaxRedeemValue', args),
|
|
2598
|
-
getCollateralValue: (...args) => getRequest('getCollateralValue', args),
|
|
2599
3101
|
getUserBorrowTerms: (...args) => getRequest('getUserBorrowTerms', args),
|
|
3102
|
+
getUserBorrowTermsWithNumVaults: (...args) => getRequest('getUserBorrowTermsWithNumVaults', args),
|
|
3103
|
+
getUserCollateralValueAndDebtAmount: (...args) => getRequest('getUserCollateralValueAndDebtAmount', args),
|
|
3104
|
+
getCollateralValue: (...args) => getRequest('getCollateralValue', args),
|
|
3105
|
+
getUserDebtAmount: (...args) => getRequest('getUserDebtAmount', args),
|
|
2600
3106
|
getLatestUserDebtAndTerms: (...args) => getRequest('getLatestUserDebtAndTerms', args),
|
|
2601
|
-
|
|
3107
|
+
getLatestUserDebtWithInterest: (...args) => getRequest('getLatestUserDebtWithInterest', args),
|
|
2602
3108
|
hasGoodDebtHealth: (...args) => getRequest('hasGoodDebtHealth', args),
|
|
2603
3109
|
canLiquidateUser: (...args) => getRequest('canLiquidateUser', args),
|
|
2604
3110
|
canRedeemUserCollateral: (...args) => getRequest('canRedeemUserCollateral', args),
|
|
2605
3111
|
getLiquidationThreshold: (...args) => getRequest('getLiquidationThreshold', args),
|
|
2606
3112
|
getRedemptionThreshold: (...args) => getRequest('getRedemptionThreshold', args),
|
|
3113
|
+
getDynamicBorrowRate: (...args) => getRequest('getDynamicBorrowRate', args),
|
|
2607
3114
|
getMaxWithdrawableForAsset: (...args) => getRequest('getMaxWithdrawableForAsset', args),
|
|
3115
|
+
undyVaulDiscount: (...args) => getRequest('undyVaulDiscount', args),
|
|
2608
3116
|
};
|
|
2609
3117
|
function getMutation(functionName) {
|
|
2610
3118
|
return {
|
|
@@ -2621,10 +3129,11 @@ export const mutation = {
|
|
|
2621
3129
|
recoverFundsMany: getMutation('recoverFundsMany'),
|
|
2622
3130
|
borrowForUser: getMutation('borrowForUser'),
|
|
2623
3131
|
repayForUser: getMutation('repayForUser'),
|
|
2624
|
-
repayDuringLiquidation: getMutation('repayDuringLiquidation'),
|
|
2625
3132
|
repayDuringAuctionPurchase: getMutation('repayDuringAuctionPurchase'),
|
|
2626
|
-
|
|
3133
|
+
repayFromDept: getMutation('repayFromDept'),
|
|
3134
|
+
setUnderscoreVaultDiscount: getMutation('setUnderscoreVaultDiscount'),
|
|
2627
3135
|
updateDebtForUser: getMutation('updateDebtForUser'),
|
|
3136
|
+
transferOrWithdrawViaRedemption: getMutation('transferOrWithdrawViaRedemption'),
|
|
2628
3137
|
};
|
|
2629
3138
|
export function toSdk(publicClient, walletClient) {
|
|
2630
3139
|
return {
|
|
@@ -2637,26 +3146,31 @@ export function toSdk(publicClient, walletClient) {
|
|
|
2637
3146
|
canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
|
|
2638
3147
|
isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
|
|
2639
3148
|
getMaxBorrowAmount: (...args) => singleQuery(publicClient, call.getMaxBorrowAmount(...args)),
|
|
2640
|
-
getMaxRedeemValue: (...args) => singleQuery(publicClient, call.getMaxRedeemValue(...args)),
|
|
2641
|
-
getCollateralValue: (...args) => singleQuery(publicClient, call.getCollateralValue(...args)),
|
|
2642
3149
|
getUserBorrowTerms: (...args) => singleQuery(publicClient, call.getUserBorrowTerms(...args)),
|
|
3150
|
+
getUserBorrowTermsWithNumVaults: (...args) => singleQuery(publicClient, call.getUserBorrowTermsWithNumVaults(...args)),
|
|
3151
|
+
getUserCollateralValueAndDebtAmount: (...args) => singleQuery(publicClient, call.getUserCollateralValueAndDebtAmount(...args)),
|
|
3152
|
+
getCollateralValue: (...args) => singleQuery(publicClient, call.getCollateralValue(...args)),
|
|
3153
|
+
getUserDebtAmount: (...args) => singleQuery(publicClient, call.getUserDebtAmount(...args)),
|
|
2643
3154
|
getLatestUserDebtAndTerms: (...args) => singleQuery(publicClient, call.getLatestUserDebtAndTerms(...args)),
|
|
2644
|
-
|
|
3155
|
+
getLatestUserDebtWithInterest: (...args) => singleQuery(publicClient, call.getLatestUserDebtWithInterest(...args)),
|
|
2645
3156
|
hasGoodDebtHealth: (...args) => singleQuery(publicClient, call.hasGoodDebtHealth(...args)),
|
|
2646
3157
|
canLiquidateUser: (...args) => singleQuery(publicClient, call.canLiquidateUser(...args)),
|
|
2647
3158
|
canRedeemUserCollateral: (...args) => singleQuery(publicClient, call.canRedeemUserCollateral(...args)),
|
|
2648
3159
|
getLiquidationThreshold: (...args) => singleQuery(publicClient, call.getLiquidationThreshold(...args)),
|
|
2649
3160
|
getRedemptionThreshold: (...args) => singleQuery(publicClient, call.getRedemptionThreshold(...args)),
|
|
3161
|
+
getDynamicBorrowRate: (...args) => singleQuery(publicClient, call.getDynamicBorrowRate(...args)),
|
|
2650
3162
|
getMaxWithdrawableForAsset: (...args) => singleQuery(publicClient, call.getMaxWithdrawableForAsset(...args)),
|
|
3163
|
+
undyVaulDiscount: (...args) => singleQuery(publicClient, call.undyVaulDiscount(...args)),
|
|
2651
3164
|
// Mutations
|
|
2652
3165
|
pause: (...args) => mutate(walletClient, mutation.pause)(...args),
|
|
2653
3166
|
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
|
|
2654
3167
|
recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
|
|
2655
3168
|
borrowForUser: (...args) => mutate(walletClient, mutation.borrowForUser)(...args),
|
|
2656
3169
|
repayForUser: (...args) => mutate(walletClient, mutation.repayForUser)(...args),
|
|
2657
|
-
repayDuringLiquidation: (...args) => mutate(walletClient, mutation.repayDuringLiquidation)(...args),
|
|
2658
3170
|
repayDuringAuctionPurchase: (...args) => mutate(walletClient, mutation.repayDuringAuctionPurchase)(...args),
|
|
2659
|
-
|
|
3171
|
+
repayFromDept: (...args) => mutate(walletClient, mutation.repayFromDept)(...args),
|
|
3172
|
+
setUnderscoreVaultDiscount: (...args) => mutate(walletClient, mutation.setUnderscoreVaultDiscount)(...args),
|
|
2660
3173
|
updateDebtForUser: (...args) => mutate(walletClient, mutation.updateDebtForUser)(...args),
|
|
3174
|
+
transferOrWithdrawViaRedemption: (...args) => mutate(walletClient, mutation.transferOrWithdrawViaRedemption)(...args),
|
|
2661
3175
|
};
|
|
2662
3176
|
}
|