@gvnrdao/dh-lit-actions 0.0.21 → 0.0.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
487c310167d785851cb9174b523c2463359e04cfa8e24d2a6afe12a7a7925b6b
|
|
@@ -1250,7 +1250,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1250
1250
|
];
|
|
1251
1251
|
try {
|
|
1252
1252
|
const result = await Lit.Actions.call({
|
|
1253
|
-
ipfsId: "",
|
|
1254
1253
|
chain: this.chain,
|
|
1255
1254
|
contractAddress: this.loanOpsManagerAddress,
|
|
1256
1255
|
abi,
|
|
@@ -1291,7 +1290,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1291
1290
|
];
|
|
1292
1291
|
try {
|
|
1293
1292
|
const result = await Lit.Actions.call({
|
|
1294
|
-
ipfsId: "",
|
|
1295
1293
|
chain: this.chain,
|
|
1296
1294
|
contractAddress: this.termManagerAddress,
|
|
1297
1295
|
abi,
|
|
@@ -1566,7 +1564,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1566
1564
|
}];
|
|
1567
1565
|
try {
|
|
1568
1566
|
const result = await Lit.Actions.call({
|
|
1569
|
-
ipfsId: "",
|
|
1570
1567
|
chain,
|
|
1571
1568
|
contractAddress,
|
|
1572
1569
|
abi: pausedAbi,
|
|
@@ -1595,7 +1592,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1595
1592
|
}];
|
|
1596
1593
|
try {
|
|
1597
1594
|
const result = await Lit.Actions.call({
|
|
1598
|
-
ipfsId: "",
|
|
1599
1595
|
chain,
|
|
1600
1596
|
contractAddress,
|
|
1601
1597
|
abi: emergencyModeAbi,
|
|
@@ -1624,7 +1620,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1624
1620
|
}];
|
|
1625
1621
|
try {
|
|
1626
1622
|
const result = await Lit.Actions.call({
|
|
1627
|
-
ipfsId: "",
|
|
1628
1623
|
chain,
|
|
1629
1624
|
contractAddress,
|
|
1630
1625
|
abi: circuitBreakerAbi,
|
|
@@ -1653,7 +1648,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1653
1648
|
}];
|
|
1654
1649
|
try {
|
|
1655
1650
|
const result = await Lit.Actions.call({
|
|
1656
|
-
ipfsId: "",
|
|
1657
1651
|
chain,
|
|
1658
1652
|
contractAddress,
|
|
1659
1653
|
abi: transfersPausedAbi,
|
|
@@ -1836,7 +1830,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1836
1830
|
}
|
|
1837
1831
|
console.log(" Fetching protocol mint limits...");
|
|
1838
1832
|
const minLoanValueResult = await Lit.Actions.call({
|
|
1839
|
-
ipfsId: "",
|
|
1840
1833
|
chain,
|
|
1841
1834
|
contractAddress: LOAN_OPS_MANAGER_ADDRESS,
|
|
1842
1835
|
abi: ABI_MINIMUM_LOAN_VALUE_WEI,
|
|
@@ -1845,7 +1838,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1845
1838
|
});
|
|
1846
1839
|
const MIN_MINT_AMOUNT = BigInt(minLoanValueResult.toString());
|
|
1847
1840
|
const maxLoanValueUcdResult = await Lit.Actions.call({
|
|
1848
|
-
ipfsId: "",
|
|
1849
1841
|
chain,
|
|
1850
1842
|
contractAddress: LOAN_OPS_MANAGER_ADDRESS,
|
|
1851
1843
|
abi: ABI_MAXIMUM_LOAN_VALUE_UCD,
|
|
@@ -1967,7 +1959,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1967
1959
|
console.log("[Step 4a] Validating daily mint limit...");
|
|
1968
1960
|
const totalMintAmount = amount + mintFee;
|
|
1969
1961
|
const remainingCapacity = await Lit.Actions.call({
|
|
1970
|
-
ipfsId: "",
|
|
1971
1962
|
chain,
|
|
1972
1963
|
contractAddress: UCD_CONTROLLER_ADDRESS,
|
|
1973
1964
|
abi: ABI_REMAINING_MINT_CAPACITY,
|
|
@@ -1990,7 +1981,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1990
1981
|
currentStep = "4b";
|
|
1991
1982
|
console.log("[Step 4b] Validating max supply limit...");
|
|
1992
1983
|
const maxSupplyResult = await Lit.Actions.call({
|
|
1993
|
-
ipfsId: "",
|
|
1994
1984
|
chain,
|
|
1995
1985
|
contractAddress: UCD_CONTROLLER_ADDRESS,
|
|
1996
1986
|
abi: ABI_MAX_SUPPLY,
|
|
@@ -2000,7 +1990,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
2000
1990
|
const maxSupply = BigInt(maxSupplyResult.toString());
|
|
2001
1991
|
if (maxSupply > 0n) {
|
|
2002
1992
|
const currentSupplyResult = await Lit.Actions.call({
|
|
2003
|
-
ipfsId: "",
|
|
2004
1993
|
chain,
|
|
2005
1994
|
contractAddress: UCD_CONTROLLER_ADDRESS,
|
|
2006
1995
|
abi: ABI_CURRENT_SUPPLY,
|