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