@ripe-finance/sdk 1.14.1 → 1.15.0
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/BondRoom.js +1 -1
- package/dist/contracts/CreditEngine.d.ts +741 -272
- package/dist/contracts/CreditEngine.d.ts.map +1 -1
- package/dist/contracts/CreditEngine.js +820 -266
- 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/Endaoment.d.ts +230 -1138
- package/dist/contracts/Endaoment.d.ts.map +1 -1
- package/dist/contracts/Endaoment.js +216 -1445
- package/dist/contracts/EndaomentFunds.d.ts +241 -0
- package/dist/contracts/EndaomentFunds.d.ts.map +1 -0
- package/dist/contracts/EndaomentFunds.js +278 -0
- package/dist/contracts/EndaomentPSM.d.ts +1229 -0
- package/dist/contracts/EndaomentPSM.d.ts.map +1 -0
- package/dist/contracts/{PriceSheets.js → EndaomentPSM.js} +840 -685
- package/dist/contracts/Lootbox.d.ts +184 -0
- package/dist/contracts/Lootbox.d.ts.map +1 -1
- package/dist/contracts/Lootbox.js +232 -1
- package/dist/contracts/PriceDesk.js +1 -1
- package/dist/contracts/PythPrices.d.ts +60 -8
- package/dist/contracts/PythPrices.d.ts.map +1 -1
- package/dist/contracts/PythPrices.js +77 -9
- 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/StorkPrices.d.ts +8 -8
- package/dist/contracts/StorkPrices.d.ts.map +1 -1
- package/dist/contracts/StorkPrices.js +9 -9
- package/dist/contracts/SwitchboardAlpha.d.ts +168 -0
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +217 -1
- package/dist/contracts/SwitchboardCharlie.d.ts +133 -1760
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +129 -2217
- 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/SwitchboardEcho.d.ts +3296 -0
- package/dist/contracts/SwitchboardEcho.d.ts.map +1 -0
- package/dist/contracts/{Agent.js → SwitchboardEcho.js} +2424 -1698
- package/dist/contracts/Teller.d.ts +378 -0
- package/dist/contracts/Teller.d.ts.map +1 -1
- package/dist/contracts/Teller.js +475 -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 +10 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/sdk.d.ts +20 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +20 -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 +354 -68
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/package.json +3 -3
- 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/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/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,25 @@ 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',
|
|
110
|
+
name: 'discount',
|
|
126
111
|
type: 'uint256',
|
|
127
112
|
indexed: false,
|
|
128
113
|
},
|
|
114
|
+
],
|
|
115
|
+
anonymous: false,
|
|
116
|
+
type: 'event',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'BuybackRatioSet',
|
|
120
|
+
inputs: [
|
|
129
121
|
{
|
|
130
|
-
name: '
|
|
131
|
-
type: 'address',
|
|
132
|
-
indexed: true,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'caller',
|
|
136
|
-
type: 'address',
|
|
137
|
-
indexed: false,
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: 'repayValue',
|
|
122
|
+
name: 'ratio',
|
|
141
123
|
type: 'uint256',
|
|
142
124
|
indexed: false,
|
|
143
125
|
},
|
|
144
|
-
{
|
|
145
|
-
name: 'hasGoodDebtHealth',
|
|
146
|
-
type: 'bool',
|
|
147
|
-
indexed: false,
|
|
148
|
-
},
|
|
149
126
|
],
|
|
150
127
|
anonymous: false,
|
|
151
128
|
type: 'event',
|
|
@@ -662,12 +639,132 @@ export const abi = [
|
|
|
662
639
|
{
|
|
663
640
|
stateMutability: 'nonpayable',
|
|
664
641
|
type: 'function',
|
|
665
|
-
name: '
|
|
642
|
+
name: 'repayDuringAuctionPurchase',
|
|
643
|
+
inputs: [
|
|
644
|
+
{
|
|
645
|
+
name: '_liqUser',
|
|
646
|
+
type: 'address',
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
name: '_repayValue',
|
|
650
|
+
type: 'uint256',
|
|
651
|
+
},
|
|
652
|
+
],
|
|
653
|
+
outputs: [
|
|
654
|
+
{
|
|
655
|
+
name: '',
|
|
656
|
+
type: 'bool',
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
stateMutability: 'nonpayable',
|
|
662
|
+
type: 'function',
|
|
663
|
+
name: 'repayDuringAuctionPurchase',
|
|
666
664
|
inputs: [
|
|
667
665
|
{
|
|
668
666
|
name: '_liqUser',
|
|
669
667
|
type: 'address',
|
|
670
668
|
},
|
|
669
|
+
{
|
|
670
|
+
name: '_repayValue',
|
|
671
|
+
type: 'uint256',
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
name: '_a',
|
|
675
|
+
type: 'tuple',
|
|
676
|
+
components: [
|
|
677
|
+
{
|
|
678
|
+
name: 'hq',
|
|
679
|
+
type: 'address',
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
name: 'greenToken',
|
|
683
|
+
type: 'address',
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
name: 'savingsGreen',
|
|
687
|
+
type: 'address',
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: 'ripeToken',
|
|
691
|
+
type: 'address',
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: 'ledger',
|
|
695
|
+
type: 'address',
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: 'missionControl',
|
|
699
|
+
type: 'address',
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
name: 'switchboard',
|
|
703
|
+
type: 'address',
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: 'priceDesk',
|
|
707
|
+
type: 'address',
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
name: 'vaultBook',
|
|
711
|
+
type: 'address',
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
name: 'auctionHouse',
|
|
715
|
+
type: 'address',
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
name: 'auctionHouseNft',
|
|
719
|
+
type: 'address',
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
name: 'boardroom',
|
|
723
|
+
type: 'address',
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
name: 'bondRoom',
|
|
727
|
+
type: 'address',
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
name: 'creditEngine',
|
|
731
|
+
type: 'address',
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: 'endaoment',
|
|
735
|
+
type: 'address',
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
name: 'humanResources',
|
|
739
|
+
type: 'address',
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
name: 'lootbox',
|
|
743
|
+
type: 'address',
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
name: 'teller',
|
|
747
|
+
type: 'address',
|
|
748
|
+
},
|
|
749
|
+
],
|
|
750
|
+
},
|
|
751
|
+
],
|
|
752
|
+
outputs: [
|
|
753
|
+
{
|
|
754
|
+
name: '',
|
|
755
|
+
type: 'bool',
|
|
756
|
+
},
|
|
757
|
+
],
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
stateMutability: 'nonpayable',
|
|
761
|
+
type: 'function',
|
|
762
|
+
name: 'repayFromDept',
|
|
763
|
+
inputs: [
|
|
764
|
+
{
|
|
765
|
+
name: '_user',
|
|
766
|
+
type: 'address',
|
|
767
|
+
},
|
|
671
768
|
{
|
|
672
769
|
name: '_userDebt',
|
|
673
770
|
type: 'tuple',
|
|
@@ -728,6 +825,10 @@ export const abi = [
|
|
|
728
825
|
name: '_newInterest',
|
|
729
826
|
type: 'uint256',
|
|
730
827
|
},
|
|
828
|
+
{
|
|
829
|
+
name: '_numUserVaults',
|
|
830
|
+
type: 'uint256',
|
|
831
|
+
},
|
|
731
832
|
],
|
|
732
833
|
outputs: [
|
|
733
834
|
{
|
|
@@ -739,10 +840,10 @@ export const abi = [
|
|
|
739
840
|
{
|
|
740
841
|
stateMutability: 'nonpayable',
|
|
741
842
|
type: 'function',
|
|
742
|
-
name: '
|
|
843
|
+
name: 'repayFromDept',
|
|
743
844
|
inputs: [
|
|
744
845
|
{
|
|
745
|
-
name: '
|
|
846
|
+
name: '_user',
|
|
746
847
|
type: 'address',
|
|
747
848
|
},
|
|
748
849
|
{
|
|
@@ -805,6 +906,10 @@ export const abi = [
|
|
|
805
906
|
name: '_newInterest',
|
|
806
907
|
type: 'uint256',
|
|
807
908
|
},
|
|
909
|
+
{
|
|
910
|
+
name: '_numUserVaults',
|
|
911
|
+
type: 'uint256',
|
|
912
|
+
},
|
|
808
913
|
{
|
|
809
914
|
name: '_a',
|
|
810
915
|
type: 'tuple',
|
|
@@ -892,226 +997,244 @@ export const abi = [
|
|
|
892
997
|
],
|
|
893
998
|
},
|
|
894
999
|
{
|
|
895
|
-
stateMutability: '
|
|
1000
|
+
stateMutability: 'view',
|
|
896
1001
|
type: 'function',
|
|
897
|
-
name: '
|
|
1002
|
+
name: 'getUserBorrowTerms',
|
|
898
1003
|
inputs: [
|
|
899
1004
|
{
|
|
900
|
-
name: '
|
|
1005
|
+
name: '_user',
|
|
901
1006
|
type: 'address',
|
|
902
1007
|
},
|
|
903
1008
|
{
|
|
904
|
-
name: '
|
|
905
|
-
type: '
|
|
1009
|
+
name: '_shouldRaise',
|
|
1010
|
+
type: 'bool',
|
|
906
1011
|
},
|
|
907
1012
|
],
|
|
908
1013
|
outputs: [
|
|
909
1014
|
{
|
|
910
1015
|
name: '',
|
|
911
|
-
type: '
|
|
1016
|
+
type: 'tuple',
|
|
1017
|
+
components: [
|
|
1018
|
+
{
|
|
1019
|
+
name: 'collateralVal',
|
|
1020
|
+
type: 'uint256',
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: 'totalMaxDebt',
|
|
1024
|
+
type: 'uint256',
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
name: 'debtTerms',
|
|
1028
|
+
type: 'tuple',
|
|
1029
|
+
components: [
|
|
1030
|
+
{
|
|
1031
|
+
name: 'ltv',
|
|
1032
|
+
type: 'uint256',
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
name: 'redemptionThreshold',
|
|
1036
|
+
type: 'uint256',
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
name: 'liqThreshold',
|
|
1040
|
+
type: 'uint256',
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
name: 'liqFee',
|
|
1044
|
+
type: 'uint256',
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
name: 'borrowRate',
|
|
1048
|
+
type: 'uint256',
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
name: 'daowry',
|
|
1052
|
+
type: 'uint256',
|
|
1053
|
+
},
|
|
1054
|
+
],
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
name: 'lowestLtv',
|
|
1058
|
+
type: 'uint256',
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
name: 'highestLtv',
|
|
1062
|
+
type: 'uint256',
|
|
1063
|
+
},
|
|
1064
|
+
],
|
|
912
1065
|
},
|
|
913
1066
|
],
|
|
914
1067
|
},
|
|
915
1068
|
{
|
|
916
|
-
stateMutability: '
|
|
1069
|
+
stateMutability: 'view',
|
|
917
1070
|
type: 'function',
|
|
918
|
-
name: '
|
|
1071
|
+
name: 'getUserBorrowTerms',
|
|
919
1072
|
inputs: [
|
|
920
1073
|
{
|
|
921
|
-
name: '
|
|
1074
|
+
name: '_user',
|
|
922
1075
|
type: 'address',
|
|
923
1076
|
},
|
|
924
1077
|
{
|
|
925
|
-
name: '
|
|
1078
|
+
name: '_shouldRaise',
|
|
1079
|
+
type: 'bool',
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
name: '_skipVaultId',
|
|
926
1083
|
type: 'uint256',
|
|
927
1084
|
},
|
|
1085
|
+
],
|
|
1086
|
+
outputs: [
|
|
928
1087
|
{
|
|
929
|
-
name: '
|
|
1088
|
+
name: '',
|
|
930
1089
|
type: 'tuple',
|
|
931
1090
|
components: [
|
|
932
1091
|
{
|
|
933
|
-
name: '
|
|
934
|
-
type: '
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
name: 'greenToken',
|
|
938
|
-
type: 'address',
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
name: 'savingsGreen',
|
|
942
|
-
type: 'address',
|
|
1092
|
+
name: 'collateralVal',
|
|
1093
|
+
type: 'uint256',
|
|
943
1094
|
},
|
|
944
1095
|
{
|
|
945
|
-
name: '
|
|
946
|
-
type: '
|
|
1096
|
+
name: 'totalMaxDebt',
|
|
1097
|
+
type: 'uint256',
|
|
947
1098
|
},
|
|
948
1099
|
{
|
|
949
|
-
name: '
|
|
950
|
-
type: '
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
name: 'boardroom',
|
|
978
|
-
type: 'address',
|
|
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',
|
|
1100
|
+
name: 'debtTerms',
|
|
1101
|
+
type: 'tuple',
|
|
1102
|
+
components: [
|
|
1103
|
+
{
|
|
1104
|
+
name: 'ltv',
|
|
1105
|
+
type: 'uint256',
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
name: 'redemptionThreshold',
|
|
1109
|
+
type: 'uint256',
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: 'liqThreshold',
|
|
1113
|
+
type: 'uint256',
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
name: 'liqFee',
|
|
1117
|
+
type: 'uint256',
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
name: 'borrowRate',
|
|
1121
|
+
type: 'uint256',
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
name: 'daowry',
|
|
1125
|
+
type: 'uint256',
|
|
1126
|
+
},
|
|
1127
|
+
],
|
|
995
1128
|
},
|
|
996
1129
|
{
|
|
997
|
-
name: '
|
|
998
|
-
type: '
|
|
1130
|
+
name: 'lowestLtv',
|
|
1131
|
+
type: 'uint256',
|
|
999
1132
|
},
|
|
1000
1133
|
{
|
|
1001
|
-
name: '
|
|
1002
|
-
type: '
|
|
1134
|
+
name: 'highestLtv',
|
|
1135
|
+
type: 'uint256',
|
|
1003
1136
|
},
|
|
1004
1137
|
],
|
|
1005
1138
|
},
|
|
1006
1139
|
],
|
|
1007
|
-
outputs: [
|
|
1008
|
-
{
|
|
1009
|
-
name: '',
|
|
1010
|
-
type: 'bool',
|
|
1011
|
-
},
|
|
1012
|
-
],
|
|
1013
1140
|
},
|
|
1014
1141
|
{
|
|
1015
|
-
stateMutability: '
|
|
1142
|
+
stateMutability: 'view',
|
|
1016
1143
|
type: 'function',
|
|
1017
|
-
name: '
|
|
1144
|
+
name: 'getUserBorrowTerms',
|
|
1018
1145
|
inputs: [
|
|
1019
1146
|
{
|
|
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',
|
|
1147
|
+
name: '_user',
|
|
1047
1148
|
type: 'address',
|
|
1048
1149
|
},
|
|
1049
1150
|
{
|
|
1050
|
-
name: '
|
|
1051
|
-
type: '
|
|
1151
|
+
name: '_shouldRaise',
|
|
1152
|
+
type: 'bool',
|
|
1052
1153
|
},
|
|
1053
1154
|
{
|
|
1054
|
-
name: '
|
|
1055
|
-
type: '
|
|
1155
|
+
name: '_skipVaultId',
|
|
1156
|
+
type: 'uint256',
|
|
1056
1157
|
},
|
|
1057
1158
|
{
|
|
1058
|
-
name: '
|
|
1059
|
-
type: '
|
|
1159
|
+
name: '_skipAsset',
|
|
1160
|
+
type: 'address',
|
|
1060
1161
|
},
|
|
1061
1162
|
],
|
|
1062
1163
|
outputs: [
|
|
1063
1164
|
{
|
|
1064
1165
|
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[]',
|
|
1166
|
+
type: 'tuple',
|
|
1077
1167
|
components: [
|
|
1078
1168
|
{
|
|
1079
|
-
name: '
|
|
1080
|
-
type: '
|
|
1169
|
+
name: 'collateralVal',
|
|
1170
|
+
type: 'uint256',
|
|
1081
1171
|
},
|
|
1082
1172
|
{
|
|
1083
|
-
name: '
|
|
1173
|
+
name: 'totalMaxDebt',
|
|
1084
1174
|
type: 'uint256',
|
|
1085
1175
|
},
|
|
1086
1176
|
{
|
|
1087
|
-
name: '
|
|
1088
|
-
type: '
|
|
1177
|
+
name: 'debtTerms',
|
|
1178
|
+
type: 'tuple',
|
|
1179
|
+
components: [
|
|
1180
|
+
{
|
|
1181
|
+
name: 'ltv',
|
|
1182
|
+
type: 'uint256',
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
name: 'redemptionThreshold',
|
|
1186
|
+
type: 'uint256',
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
name: 'liqThreshold',
|
|
1190
|
+
type: 'uint256',
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
name: 'liqFee',
|
|
1194
|
+
type: 'uint256',
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
name: 'borrowRate',
|
|
1198
|
+
type: 'uint256',
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
name: 'daowry',
|
|
1202
|
+
type: 'uint256',
|
|
1203
|
+
},
|
|
1204
|
+
],
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
name: 'lowestLtv',
|
|
1208
|
+
type: 'uint256',
|
|
1089
1209
|
},
|
|
1090
1210
|
{
|
|
1091
|
-
name: '
|
|
1211
|
+
name: 'highestLtv',
|
|
1092
1212
|
type: 'uint256',
|
|
1093
1213
|
},
|
|
1094
1214
|
],
|
|
1095
1215
|
},
|
|
1216
|
+
],
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
stateMutability: 'view',
|
|
1220
|
+
type: 'function',
|
|
1221
|
+
name: 'getUserBorrowTerms',
|
|
1222
|
+
inputs: [
|
|
1096
1223
|
{
|
|
1097
|
-
name: '
|
|
1098
|
-
type: 'uint256',
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
name: '_recipient',
|
|
1224
|
+
name: '_user',
|
|
1102
1225
|
type: 'address',
|
|
1103
1226
|
},
|
|
1104
1227
|
{
|
|
1105
|
-
name: '
|
|
1106
|
-
type: '
|
|
1228
|
+
name: '_shouldRaise',
|
|
1229
|
+
type: 'bool',
|
|
1107
1230
|
},
|
|
1108
1231
|
{
|
|
1109
|
-
name: '
|
|
1110
|
-
type: '
|
|
1232
|
+
name: '_skipVaultId',
|
|
1233
|
+
type: 'uint256',
|
|
1111
1234
|
},
|
|
1112
1235
|
{
|
|
1113
|
-
name: '
|
|
1114
|
-
type: '
|
|
1236
|
+
name: '_skipAsset',
|
|
1237
|
+
type: 'address',
|
|
1115
1238
|
},
|
|
1116
1239
|
{
|
|
1117
1240
|
name: '_a',
|
|
@@ -1195,53 +1318,71 @@ export const abi = [
|
|
|
1195
1318
|
outputs: [
|
|
1196
1319
|
{
|
|
1197
1320
|
name: '',
|
|
1198
|
-
type: '
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1321
|
+
type: 'tuple',
|
|
1322
|
+
components: [
|
|
1323
|
+
{
|
|
1324
|
+
name: 'collateralVal',
|
|
1325
|
+
type: 'uint256',
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
name: 'totalMaxDebt',
|
|
1329
|
+
type: 'uint256',
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
name: 'debtTerms',
|
|
1333
|
+
type: 'tuple',
|
|
1334
|
+
components: [
|
|
1335
|
+
{
|
|
1336
|
+
name: 'ltv',
|
|
1337
|
+
type: 'uint256',
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
name: 'redemptionThreshold',
|
|
1341
|
+
type: 'uint256',
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
name: 'liqThreshold',
|
|
1345
|
+
type: 'uint256',
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
name: 'liqFee',
|
|
1349
|
+
type: 'uint256',
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
name: 'borrowRate',
|
|
1353
|
+
type: 'uint256',
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
name: 'daowry',
|
|
1357
|
+
type: 'uint256',
|
|
1358
|
+
},
|
|
1359
|
+
],
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
name: 'lowestLtv',
|
|
1363
|
+
type: 'uint256',
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
name: 'highestLtv',
|
|
1367
|
+
type: 'uint256',
|
|
1368
|
+
},
|
|
1369
|
+
],
|
|
1216
1370
|
},
|
|
1217
1371
|
],
|
|
1218
1372
|
},
|
|
1219
1373
|
{
|
|
1220
1374
|
stateMutability: 'view',
|
|
1221
1375
|
type: 'function',
|
|
1222
|
-
name: '
|
|
1376
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1223
1377
|
inputs: [
|
|
1224
1378
|
{
|
|
1225
1379
|
name: '_user',
|
|
1226
1380
|
type: 'address',
|
|
1227
1381
|
},
|
|
1228
|
-
],
|
|
1229
|
-
outputs: [
|
|
1230
1382
|
{
|
|
1231
|
-
name: '',
|
|
1383
|
+
name: '_numUserVaults',
|
|
1232
1384
|
type: 'uint256',
|
|
1233
1385
|
},
|
|
1234
|
-
],
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
stateMutability: 'view',
|
|
1238
|
-
type: 'function',
|
|
1239
|
-
name: 'getUserBorrowTerms',
|
|
1240
|
-
inputs: [
|
|
1241
|
-
{
|
|
1242
|
-
name: '_user',
|
|
1243
|
-
type: 'address',
|
|
1244
|
-
},
|
|
1245
1386
|
{
|
|
1246
1387
|
name: '_shouldRaise',
|
|
1247
1388
|
type: 'bool',
|
|
@@ -1290,6 +1431,14 @@ export const abi = [
|
|
|
1290
1431
|
},
|
|
1291
1432
|
],
|
|
1292
1433
|
},
|
|
1434
|
+
{
|
|
1435
|
+
name: 'lowestLtv',
|
|
1436
|
+
type: 'uint256',
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
name: 'highestLtv',
|
|
1440
|
+
type: 'uint256',
|
|
1441
|
+
},
|
|
1293
1442
|
],
|
|
1294
1443
|
},
|
|
1295
1444
|
],
|
|
@@ -1297,12 +1446,16 @@ export const abi = [
|
|
|
1297
1446
|
{
|
|
1298
1447
|
stateMutability: 'view',
|
|
1299
1448
|
type: 'function',
|
|
1300
|
-
name: '
|
|
1449
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1301
1450
|
inputs: [
|
|
1302
1451
|
{
|
|
1303
1452
|
name: '_user',
|
|
1304
1453
|
type: 'address',
|
|
1305
1454
|
},
|
|
1455
|
+
{
|
|
1456
|
+
name: '_numUserVaults',
|
|
1457
|
+
type: 'uint256',
|
|
1458
|
+
},
|
|
1306
1459
|
{
|
|
1307
1460
|
name: '_shouldRaise',
|
|
1308
1461
|
type: 'bool',
|
|
@@ -1355,6 +1508,14 @@ export const abi = [
|
|
|
1355
1508
|
},
|
|
1356
1509
|
],
|
|
1357
1510
|
},
|
|
1511
|
+
{
|
|
1512
|
+
name: 'lowestLtv',
|
|
1513
|
+
type: 'uint256',
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
name: 'highestLtv',
|
|
1517
|
+
type: 'uint256',
|
|
1518
|
+
},
|
|
1358
1519
|
],
|
|
1359
1520
|
},
|
|
1360
1521
|
],
|
|
@@ -1362,12 +1523,16 @@ export const abi = [
|
|
|
1362
1523
|
{
|
|
1363
1524
|
stateMutability: 'view',
|
|
1364
1525
|
type: 'function',
|
|
1365
|
-
name: '
|
|
1526
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1366
1527
|
inputs: [
|
|
1367
1528
|
{
|
|
1368
1529
|
name: '_user',
|
|
1369
1530
|
type: 'address',
|
|
1370
1531
|
},
|
|
1532
|
+
{
|
|
1533
|
+
name: '_numUserVaults',
|
|
1534
|
+
type: 'uint256',
|
|
1535
|
+
},
|
|
1371
1536
|
{
|
|
1372
1537
|
name: '_shouldRaise',
|
|
1373
1538
|
type: 'bool',
|
|
@@ -1424,6 +1589,14 @@ export const abi = [
|
|
|
1424
1589
|
},
|
|
1425
1590
|
],
|
|
1426
1591
|
},
|
|
1592
|
+
{
|
|
1593
|
+
name: 'lowestLtv',
|
|
1594
|
+
type: 'uint256',
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
name: 'highestLtv',
|
|
1598
|
+
type: 'uint256',
|
|
1599
|
+
},
|
|
1427
1600
|
],
|
|
1428
1601
|
},
|
|
1429
1602
|
],
|
|
@@ -1431,12 +1604,16 @@ export const abi = [
|
|
|
1431
1604
|
{
|
|
1432
1605
|
stateMutability: 'view',
|
|
1433
1606
|
type: 'function',
|
|
1434
|
-
name: '
|
|
1607
|
+
name: 'getUserBorrowTermsWithNumVaults',
|
|
1435
1608
|
inputs: [
|
|
1436
1609
|
{
|
|
1437
1610
|
name: '_user',
|
|
1438
1611
|
type: 'address',
|
|
1439
1612
|
},
|
|
1613
|
+
{
|
|
1614
|
+
name: '_numUserVaults',
|
|
1615
|
+
type: 'uint256',
|
|
1616
|
+
},
|
|
1440
1617
|
{
|
|
1441
1618
|
name: '_shouldRaise',
|
|
1442
1619
|
type: 'bool',
|
|
@@ -1571,10 +1748,73 @@ export const abi = [
|
|
|
1571
1748
|
},
|
|
1572
1749
|
],
|
|
1573
1750
|
},
|
|
1751
|
+
{
|
|
1752
|
+
name: 'lowestLtv',
|
|
1753
|
+
type: 'uint256',
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
name: 'highestLtv',
|
|
1757
|
+
type: 'uint256',
|
|
1758
|
+
},
|
|
1574
1759
|
],
|
|
1575
1760
|
},
|
|
1576
1761
|
],
|
|
1577
1762
|
},
|
|
1763
|
+
{
|
|
1764
|
+
stateMutability: 'view',
|
|
1765
|
+
type: 'function',
|
|
1766
|
+
name: 'getUserCollateralValueAndDebtAmount',
|
|
1767
|
+
inputs: [
|
|
1768
|
+
{
|
|
1769
|
+
name: '_user',
|
|
1770
|
+
type: 'address',
|
|
1771
|
+
},
|
|
1772
|
+
],
|
|
1773
|
+
outputs: [
|
|
1774
|
+
{
|
|
1775
|
+
name: '',
|
|
1776
|
+
type: 'uint256',
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
name: '',
|
|
1780
|
+
type: 'uint256',
|
|
1781
|
+
},
|
|
1782
|
+
],
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
stateMutability: 'view',
|
|
1786
|
+
type: 'function',
|
|
1787
|
+
name: 'getCollateralValue',
|
|
1788
|
+
inputs: [
|
|
1789
|
+
{
|
|
1790
|
+
name: '_user',
|
|
1791
|
+
type: 'address',
|
|
1792
|
+
},
|
|
1793
|
+
],
|
|
1794
|
+
outputs: [
|
|
1795
|
+
{
|
|
1796
|
+
name: '',
|
|
1797
|
+
type: 'uint256',
|
|
1798
|
+
},
|
|
1799
|
+
],
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
stateMutability: 'view',
|
|
1803
|
+
type: 'function',
|
|
1804
|
+
name: 'getUserDebtAmount',
|
|
1805
|
+
inputs: [
|
|
1806
|
+
{
|
|
1807
|
+
name: '_user',
|
|
1808
|
+
type: 'address',
|
|
1809
|
+
},
|
|
1810
|
+
],
|
|
1811
|
+
outputs: [
|
|
1812
|
+
{
|
|
1813
|
+
name: '',
|
|
1814
|
+
type: 'uint256',
|
|
1815
|
+
},
|
|
1816
|
+
],
|
|
1817
|
+
},
|
|
1578
1818
|
{
|
|
1579
1819
|
stateMutability: 'view',
|
|
1580
1820
|
type: 'function',
|
|
@@ -1684,6 +1924,14 @@ export const abi = [
|
|
|
1684
1924
|
},
|
|
1685
1925
|
],
|
|
1686
1926
|
},
|
|
1927
|
+
{
|
|
1928
|
+
name: 'lowestLtv',
|
|
1929
|
+
type: 'uint256',
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
name: 'highestLtv',
|
|
1933
|
+
type: 'uint256',
|
|
1934
|
+
},
|
|
1687
1935
|
],
|
|
1688
1936
|
},
|
|
1689
1937
|
{
|
|
@@ -1879,6 +2127,131 @@ export const abi = [
|
|
|
1879
2127
|
},
|
|
1880
2128
|
],
|
|
1881
2129
|
},
|
|
2130
|
+
{
|
|
2131
|
+
name: 'lowestLtv',
|
|
2132
|
+
type: 'uint256',
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
name: 'highestLtv',
|
|
2136
|
+
type: 'uint256',
|
|
2137
|
+
},
|
|
2138
|
+
],
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
name: '',
|
|
2142
|
+
type: 'uint256',
|
|
2143
|
+
},
|
|
2144
|
+
],
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
stateMutability: 'view',
|
|
2148
|
+
type: 'function',
|
|
2149
|
+
name: 'getLatestUserDebtWithInterest',
|
|
2150
|
+
inputs: [
|
|
2151
|
+
{
|
|
2152
|
+
name: '_userDebt',
|
|
2153
|
+
type: 'tuple',
|
|
2154
|
+
components: [
|
|
2155
|
+
{
|
|
2156
|
+
name: 'amount',
|
|
2157
|
+
type: 'uint256',
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
name: 'principal',
|
|
2161
|
+
type: 'uint256',
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
name: 'debtTerms',
|
|
2165
|
+
type: 'tuple',
|
|
2166
|
+
components: [
|
|
2167
|
+
{
|
|
2168
|
+
name: 'ltv',
|
|
2169
|
+
type: 'uint256',
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
name: 'redemptionThreshold',
|
|
2173
|
+
type: 'uint256',
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
name: 'liqThreshold',
|
|
2177
|
+
type: 'uint256',
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
name: 'liqFee',
|
|
2181
|
+
type: 'uint256',
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
name: 'borrowRate',
|
|
2185
|
+
type: 'uint256',
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
name: 'daowry',
|
|
2189
|
+
type: 'uint256',
|
|
2190
|
+
},
|
|
2191
|
+
],
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
name: 'lastTimestamp',
|
|
2195
|
+
type: 'uint256',
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
name: 'inLiquidation',
|
|
2199
|
+
type: 'bool',
|
|
2200
|
+
},
|
|
2201
|
+
],
|
|
2202
|
+
},
|
|
2203
|
+
],
|
|
2204
|
+
outputs: [
|
|
2205
|
+
{
|
|
2206
|
+
name: '',
|
|
2207
|
+
type: 'tuple',
|
|
2208
|
+
components: [
|
|
2209
|
+
{
|
|
2210
|
+
name: 'amount',
|
|
2211
|
+
type: 'uint256',
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
name: 'principal',
|
|
2215
|
+
type: 'uint256',
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
name: 'debtTerms',
|
|
2219
|
+
type: 'tuple',
|
|
2220
|
+
components: [
|
|
2221
|
+
{
|
|
2222
|
+
name: 'ltv',
|
|
2223
|
+
type: 'uint256',
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
name: 'redemptionThreshold',
|
|
2227
|
+
type: 'uint256',
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
name: 'liqThreshold',
|
|
2231
|
+
type: 'uint256',
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
name: 'liqFee',
|
|
2235
|
+
type: 'uint256',
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
name: 'borrowRate',
|
|
2239
|
+
type: 'uint256',
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
name: 'daowry',
|
|
2243
|
+
type: 'uint256',
|
|
2244
|
+
},
|
|
2245
|
+
],
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
name: 'lastTimestamp',
|
|
2249
|
+
type: 'uint256',
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
name: 'inLiquidation',
|
|
2253
|
+
type: 'bool',
|
|
2254
|
+
},
|
|
1882
2255
|
],
|
|
1883
2256
|
},
|
|
1884
2257
|
{
|
|
@@ -1890,24 +2263,7 @@ export const abi = [
|
|
|
1890
2263
|
{
|
|
1891
2264
|
stateMutability: 'view',
|
|
1892
2265
|
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',
|
|
2266
|
+
name: 'hasGoodDebtHealth',
|
|
1911
2267
|
inputs: [
|
|
1912
2268
|
{
|
|
1913
2269
|
name: '_user',
|
|
@@ -1922,9 +2278,9 @@ export const abi = [
|
|
|
1922
2278
|
],
|
|
1923
2279
|
},
|
|
1924
2280
|
{
|
|
1925
|
-
stateMutability: '
|
|
2281
|
+
stateMutability: 'view',
|
|
1926
2282
|
type: 'function',
|
|
1927
|
-
name: '
|
|
2283
|
+
name: 'hasGoodDebtHealth',
|
|
1928
2284
|
inputs: [
|
|
1929
2285
|
{
|
|
1930
2286
|
name: '_user',
|
|
@@ -2019,7 +2375,7 @@ export const abi = [
|
|
|
2019
2375
|
{
|
|
2020
2376
|
stateMutability: 'view',
|
|
2021
2377
|
type: 'function',
|
|
2022
|
-
name: '
|
|
2378
|
+
name: 'canLiquidateUser',
|
|
2023
2379
|
inputs: [
|
|
2024
2380
|
{
|
|
2025
2381
|
name: '_user',
|
|
@@ -2036,7 +2392,7 @@ export const abi = [
|
|
|
2036
2392
|
{
|
|
2037
2393
|
stateMutability: 'view',
|
|
2038
2394
|
type: 'function',
|
|
2039
|
-
name: '
|
|
2395
|
+
name: 'canLiquidateUser',
|
|
2040
2396
|
inputs: [
|
|
2041
2397
|
{
|
|
2042
2398
|
name: '_user',
|
|
@@ -2131,7 +2487,7 @@ export const abi = [
|
|
|
2131
2487
|
{
|
|
2132
2488
|
stateMutability: 'view',
|
|
2133
2489
|
type: 'function',
|
|
2134
|
-
name: '
|
|
2490
|
+
name: 'canRedeemUserCollateral',
|
|
2135
2491
|
inputs: [
|
|
2136
2492
|
{
|
|
2137
2493
|
name: '_user',
|
|
@@ -2148,7 +2504,7 @@ export const abi = [
|
|
|
2148
2504
|
{
|
|
2149
2505
|
stateMutability: 'view',
|
|
2150
2506
|
type: 'function',
|
|
2151
|
-
name: '
|
|
2507
|
+
name: 'canRedeemUserCollateral',
|
|
2152
2508
|
inputs: [
|
|
2153
2509
|
{
|
|
2154
2510
|
name: '_user',
|
|
@@ -2243,7 +2599,7 @@ export const abi = [
|
|
|
2243
2599
|
{
|
|
2244
2600
|
stateMutability: 'view',
|
|
2245
2601
|
type: 'function',
|
|
2246
|
-
name: '
|
|
2602
|
+
name: 'getLiquidationThreshold',
|
|
2247
2603
|
inputs: [
|
|
2248
2604
|
{
|
|
2249
2605
|
name: '_user',
|
|
@@ -2253,14 +2609,77 @@ export const abi = [
|
|
|
2253
2609
|
outputs: [
|
|
2254
2610
|
{
|
|
2255
2611
|
name: '',
|
|
2256
|
-
type: '
|
|
2612
|
+
type: 'uint256',
|
|
2257
2613
|
},
|
|
2258
2614
|
],
|
|
2259
2615
|
},
|
|
2260
2616
|
{
|
|
2261
2617
|
stateMutability: 'view',
|
|
2262
2618
|
type: 'function',
|
|
2263
|
-
name: '
|
|
2619
|
+
name: 'getRedemptionThreshold',
|
|
2620
|
+
inputs: [
|
|
2621
|
+
{
|
|
2622
|
+
name: '_user',
|
|
2623
|
+
type: 'address',
|
|
2624
|
+
},
|
|
2625
|
+
],
|
|
2626
|
+
outputs: [
|
|
2627
|
+
{
|
|
2628
|
+
name: '',
|
|
2629
|
+
type: 'uint256',
|
|
2630
|
+
},
|
|
2631
|
+
],
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
stateMutability: 'view',
|
|
2635
|
+
type: 'function',
|
|
2636
|
+
name: 'getDynamicBorrowRate',
|
|
2637
|
+
inputs: [
|
|
2638
|
+
{
|
|
2639
|
+
name: '_baseRate',
|
|
2640
|
+
type: 'uint256',
|
|
2641
|
+
},
|
|
2642
|
+
],
|
|
2643
|
+
outputs: [
|
|
2644
|
+
{
|
|
2645
|
+
name: '',
|
|
2646
|
+
type: 'uint256',
|
|
2647
|
+
},
|
|
2648
|
+
],
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
stateMutability: 'nonpayable',
|
|
2652
|
+
type: 'function',
|
|
2653
|
+
name: 'setUnderscoreVaultDiscount',
|
|
2654
|
+
inputs: [
|
|
2655
|
+
{
|
|
2656
|
+
name: '_discount',
|
|
2657
|
+
type: 'uint256',
|
|
2658
|
+
},
|
|
2659
|
+
],
|
|
2660
|
+
outputs: [],
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
stateMutability: 'nonpayable',
|
|
2664
|
+
type: 'function',
|
|
2665
|
+
name: 'updateDebtForUser',
|
|
2666
|
+
inputs: [
|
|
2667
|
+
{
|
|
2668
|
+
name: '_user',
|
|
2669
|
+
type: 'address',
|
|
2670
|
+
},
|
|
2671
|
+
],
|
|
2672
|
+
outputs: [
|
|
2673
|
+
{
|
|
2674
|
+
name: '',
|
|
2675
|
+
type: 'bool',
|
|
2676
|
+
},
|
|
2677
|
+
],
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
stateMutability: 'nonpayable',
|
|
2681
|
+
type: 'function',
|
|
2682
|
+
name: 'updateDebtForUser',
|
|
2264
2683
|
inputs: [
|
|
2265
2684
|
{
|
|
2266
2685
|
name: '_user',
|
|
@@ -2353,31 +2772,116 @@ export const abi = [
|
|
|
2353
2772
|
],
|
|
2354
2773
|
},
|
|
2355
2774
|
{
|
|
2356
|
-
stateMutability: '
|
|
2775
|
+
stateMutability: 'nonpayable',
|
|
2357
2776
|
type: 'function',
|
|
2358
|
-
name: '
|
|
2777
|
+
name: 'transferOrWithdrawViaRedemption',
|
|
2359
2778
|
inputs: [
|
|
2779
|
+
{
|
|
2780
|
+
name: '_shouldTransferBalance',
|
|
2781
|
+
type: 'bool',
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
name: '_asset',
|
|
2785
|
+
type: 'address',
|
|
2786
|
+
},
|
|
2360
2787
|
{
|
|
2361
2788
|
name: '_user',
|
|
2362
2789
|
type: 'address',
|
|
2363
2790
|
},
|
|
2364
|
-
],
|
|
2365
|
-
outputs: [
|
|
2366
2791
|
{
|
|
2367
|
-
name: '',
|
|
2792
|
+
name: '_recipient',
|
|
2793
|
+
type: 'address',
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
name: '_amount',
|
|
2368
2797
|
type: 'uint256',
|
|
2369
2798
|
},
|
|
2370
|
-
],
|
|
2371
|
-
},
|
|
2372
|
-
{
|
|
2373
|
-
stateMutability: 'view',
|
|
2374
|
-
type: 'function',
|
|
2375
|
-
name: 'getRedemptionThreshold',
|
|
2376
|
-
inputs: [
|
|
2377
2799
|
{
|
|
2378
|
-
name: '
|
|
2800
|
+
name: '_vaultId',
|
|
2801
|
+
type: 'uint256',
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
name: '_vaultAddr',
|
|
2379
2805
|
type: 'address',
|
|
2380
2806
|
},
|
|
2807
|
+
{
|
|
2808
|
+
name: '_a',
|
|
2809
|
+
type: 'tuple',
|
|
2810
|
+
components: [
|
|
2811
|
+
{
|
|
2812
|
+
name: 'hq',
|
|
2813
|
+
type: 'address',
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
name: 'greenToken',
|
|
2817
|
+
type: 'address',
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
name: 'savingsGreen',
|
|
2821
|
+
type: 'address',
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
name: 'ripeToken',
|
|
2825
|
+
type: 'address',
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
name: 'ledger',
|
|
2829
|
+
type: 'address',
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
name: 'missionControl',
|
|
2833
|
+
type: 'address',
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
name: 'switchboard',
|
|
2837
|
+
type: 'address',
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
name: 'priceDesk',
|
|
2841
|
+
type: 'address',
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
name: 'vaultBook',
|
|
2845
|
+
type: 'address',
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
name: 'auctionHouse',
|
|
2849
|
+
type: 'address',
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
name: 'auctionHouseNft',
|
|
2853
|
+
type: 'address',
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
name: 'boardroom',
|
|
2857
|
+
type: 'address',
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
name: 'bondRoom',
|
|
2861
|
+
type: 'address',
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
name: 'creditEngine',
|
|
2865
|
+
type: 'address',
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
name: 'endaoment',
|
|
2869
|
+
type: 'address',
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
name: 'humanResources',
|
|
2873
|
+
type: 'address',
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
name: 'lootbox',
|
|
2877
|
+
type: 'address',
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
name: 'teller',
|
|
2881
|
+
type: 'address',
|
|
2882
|
+
},
|
|
2883
|
+
],
|
|
2884
|
+
},
|
|
2381
2885
|
],
|
|
2382
2886
|
outputs: [
|
|
2383
2887
|
{
|
|
@@ -2547,6 +3051,42 @@ export const abi = [
|
|
|
2547
3051
|
},
|
|
2548
3052
|
],
|
|
2549
3053
|
},
|
|
3054
|
+
{
|
|
3055
|
+
stateMutability: 'nonpayable',
|
|
3056
|
+
type: 'function',
|
|
3057
|
+
name: 'setBuybackRatio',
|
|
3058
|
+
inputs: [
|
|
3059
|
+
{
|
|
3060
|
+
name: '_ratio',
|
|
3061
|
+
type: 'uint256',
|
|
3062
|
+
},
|
|
3063
|
+
],
|
|
3064
|
+
outputs: [],
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
stateMutability: 'view',
|
|
3068
|
+
type: 'function',
|
|
3069
|
+
name: 'undyVaulDiscount',
|
|
3070
|
+
inputs: [],
|
|
3071
|
+
outputs: [
|
|
3072
|
+
{
|
|
3073
|
+
name: '',
|
|
3074
|
+
type: 'uint256',
|
|
3075
|
+
},
|
|
3076
|
+
],
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
stateMutability: 'view',
|
|
3080
|
+
type: 'function',
|
|
3081
|
+
name: 'buybackRatio',
|
|
3082
|
+
inputs: [],
|
|
3083
|
+
outputs: [
|
|
3084
|
+
{
|
|
3085
|
+
name: '',
|
|
3086
|
+
type: 'uint256',
|
|
3087
|
+
},
|
|
3088
|
+
],
|
|
3089
|
+
},
|
|
2550
3090
|
{
|
|
2551
3091
|
stateMutability: 'nonpayable',
|
|
2552
3092
|
type: 'constructor',
|
|
@@ -2559,7 +3099,7 @@ export const abi = [
|
|
|
2559
3099
|
outputs: [],
|
|
2560
3100
|
},
|
|
2561
3101
|
];
|
|
2562
|
-
export const deployAddress = '
|
|
3102
|
+
export const deployAddress = '0x30aa8eB041AcB3B22228516297C331B313b81462';
|
|
2563
3103
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
2564
3104
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
2565
3105
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -2594,17 +3134,22 @@ export const call = {
|
|
|
2594
3134
|
canMintRipe: (...args) => getRequest('canMintRipe', args),
|
|
2595
3135
|
isPaused: (...args) => getRequest('isPaused', args),
|
|
2596
3136
|
getMaxBorrowAmount: (...args) => getRequest('getMaxBorrowAmount', args),
|
|
2597
|
-
getMaxRedeemValue: (...args) => getRequest('getMaxRedeemValue', args),
|
|
2598
|
-
getCollateralValue: (...args) => getRequest('getCollateralValue', args),
|
|
2599
3137
|
getUserBorrowTerms: (...args) => getRequest('getUserBorrowTerms', args),
|
|
3138
|
+
getUserBorrowTermsWithNumVaults: (...args) => getRequest('getUserBorrowTermsWithNumVaults', args),
|
|
3139
|
+
getUserCollateralValueAndDebtAmount: (...args) => getRequest('getUserCollateralValueAndDebtAmount', args),
|
|
3140
|
+
getCollateralValue: (...args) => getRequest('getCollateralValue', args),
|
|
3141
|
+
getUserDebtAmount: (...args) => getRequest('getUserDebtAmount', args),
|
|
2600
3142
|
getLatestUserDebtAndTerms: (...args) => getRequest('getLatestUserDebtAndTerms', args),
|
|
2601
|
-
|
|
3143
|
+
getLatestUserDebtWithInterest: (...args) => getRequest('getLatestUserDebtWithInterest', args),
|
|
2602
3144
|
hasGoodDebtHealth: (...args) => getRequest('hasGoodDebtHealth', args),
|
|
2603
3145
|
canLiquidateUser: (...args) => getRequest('canLiquidateUser', args),
|
|
2604
3146
|
canRedeemUserCollateral: (...args) => getRequest('canRedeemUserCollateral', args),
|
|
2605
3147
|
getLiquidationThreshold: (...args) => getRequest('getLiquidationThreshold', args),
|
|
2606
3148
|
getRedemptionThreshold: (...args) => getRequest('getRedemptionThreshold', args),
|
|
3149
|
+
getDynamicBorrowRate: (...args) => getRequest('getDynamicBorrowRate', args),
|
|
2607
3150
|
getMaxWithdrawableForAsset: (...args) => getRequest('getMaxWithdrawableForAsset', args),
|
|
3151
|
+
undyVaulDiscount: (...args) => getRequest('undyVaulDiscount', args),
|
|
3152
|
+
buybackRatio: (...args) => getRequest('buybackRatio', args),
|
|
2608
3153
|
};
|
|
2609
3154
|
function getMutation(functionName) {
|
|
2610
3155
|
return {
|
|
@@ -2621,10 +3166,12 @@ export const mutation = {
|
|
|
2621
3166
|
recoverFundsMany: getMutation('recoverFundsMany'),
|
|
2622
3167
|
borrowForUser: getMutation('borrowForUser'),
|
|
2623
3168
|
repayForUser: getMutation('repayForUser'),
|
|
2624
|
-
repayDuringLiquidation: getMutation('repayDuringLiquidation'),
|
|
2625
3169
|
repayDuringAuctionPurchase: getMutation('repayDuringAuctionPurchase'),
|
|
2626
|
-
|
|
3170
|
+
repayFromDept: getMutation('repayFromDept'),
|
|
3171
|
+
setUnderscoreVaultDiscount: getMutation('setUnderscoreVaultDiscount'),
|
|
2627
3172
|
updateDebtForUser: getMutation('updateDebtForUser'),
|
|
3173
|
+
transferOrWithdrawViaRedemption: getMutation('transferOrWithdrawViaRedemption'),
|
|
3174
|
+
setBuybackRatio: getMutation('setBuybackRatio'),
|
|
2628
3175
|
};
|
|
2629
3176
|
export function toSdk(publicClient, walletClient) {
|
|
2630
3177
|
return {
|
|
@@ -2637,26 +3184,33 @@ export function toSdk(publicClient, walletClient) {
|
|
|
2637
3184
|
canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
|
|
2638
3185
|
isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
|
|
2639
3186
|
getMaxBorrowAmount: (...args) => singleQuery(publicClient, call.getMaxBorrowAmount(...args)),
|
|
2640
|
-
getMaxRedeemValue: (...args) => singleQuery(publicClient, call.getMaxRedeemValue(...args)),
|
|
2641
|
-
getCollateralValue: (...args) => singleQuery(publicClient, call.getCollateralValue(...args)),
|
|
2642
3187
|
getUserBorrowTerms: (...args) => singleQuery(publicClient, call.getUserBorrowTerms(...args)),
|
|
3188
|
+
getUserBorrowTermsWithNumVaults: (...args) => singleQuery(publicClient, call.getUserBorrowTermsWithNumVaults(...args)),
|
|
3189
|
+
getUserCollateralValueAndDebtAmount: (...args) => singleQuery(publicClient, call.getUserCollateralValueAndDebtAmount(...args)),
|
|
3190
|
+
getCollateralValue: (...args) => singleQuery(publicClient, call.getCollateralValue(...args)),
|
|
3191
|
+
getUserDebtAmount: (...args) => singleQuery(publicClient, call.getUserDebtAmount(...args)),
|
|
2643
3192
|
getLatestUserDebtAndTerms: (...args) => singleQuery(publicClient, call.getLatestUserDebtAndTerms(...args)),
|
|
2644
|
-
|
|
3193
|
+
getLatestUserDebtWithInterest: (...args) => singleQuery(publicClient, call.getLatestUserDebtWithInterest(...args)),
|
|
2645
3194
|
hasGoodDebtHealth: (...args) => singleQuery(publicClient, call.hasGoodDebtHealth(...args)),
|
|
2646
3195
|
canLiquidateUser: (...args) => singleQuery(publicClient, call.canLiquidateUser(...args)),
|
|
2647
3196
|
canRedeemUserCollateral: (...args) => singleQuery(publicClient, call.canRedeemUserCollateral(...args)),
|
|
2648
3197
|
getLiquidationThreshold: (...args) => singleQuery(publicClient, call.getLiquidationThreshold(...args)),
|
|
2649
3198
|
getRedemptionThreshold: (...args) => singleQuery(publicClient, call.getRedemptionThreshold(...args)),
|
|
3199
|
+
getDynamicBorrowRate: (...args) => singleQuery(publicClient, call.getDynamicBorrowRate(...args)),
|
|
2650
3200
|
getMaxWithdrawableForAsset: (...args) => singleQuery(publicClient, call.getMaxWithdrawableForAsset(...args)),
|
|
3201
|
+
undyVaulDiscount: (...args) => singleQuery(publicClient, call.undyVaulDiscount(...args)),
|
|
3202
|
+
buybackRatio: (...args) => singleQuery(publicClient, call.buybackRatio(...args)),
|
|
2651
3203
|
// Mutations
|
|
2652
3204
|
pause: (...args) => mutate(walletClient, mutation.pause)(...args),
|
|
2653
3205
|
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
|
|
2654
3206
|
recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
|
|
2655
3207
|
borrowForUser: (...args) => mutate(walletClient, mutation.borrowForUser)(...args),
|
|
2656
3208
|
repayForUser: (...args) => mutate(walletClient, mutation.repayForUser)(...args),
|
|
2657
|
-
repayDuringLiquidation: (...args) => mutate(walletClient, mutation.repayDuringLiquidation)(...args),
|
|
2658
3209
|
repayDuringAuctionPurchase: (...args) => mutate(walletClient, mutation.repayDuringAuctionPurchase)(...args),
|
|
2659
|
-
|
|
3210
|
+
repayFromDept: (...args) => mutate(walletClient, mutation.repayFromDept)(...args),
|
|
3211
|
+
setUnderscoreVaultDiscount: (...args) => mutate(walletClient, mutation.setUnderscoreVaultDiscount)(...args),
|
|
2660
3212
|
updateDebtForUser: (...args) => mutate(walletClient, mutation.updateDebtForUser)(...args),
|
|
3213
|
+
transferOrWithdrawViaRedemption: (...args) => mutate(walletClient, mutation.transferOrWithdrawViaRedemption)(...args),
|
|
3214
|
+
setBuybackRatio: (...args) => mutate(walletClient, mutation.setBuybackRatio)(...args),
|
|
2661
3215
|
};
|
|
2662
3216
|
}
|