@gvnrdao/dh-lit-actions 0.0.22 → 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
|
|
@@ -1830,7 +1830,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
console.log(" Fetching protocol mint limits...");
|
|
1832
1832
|
const minLoanValueResult = await Lit.Actions.call({
|
|
1833
|
-
ipfsId: "",
|
|
1834
1833
|
chain,
|
|
1835
1834
|
contractAddress: LOAN_OPS_MANAGER_ADDRESS,
|
|
1836
1835
|
abi: ABI_MINIMUM_LOAN_VALUE_WEI,
|
|
@@ -1839,7 +1838,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1839
1838
|
});
|
|
1840
1839
|
const MIN_MINT_AMOUNT = BigInt(minLoanValueResult.toString());
|
|
1841
1840
|
const maxLoanValueUcdResult = await Lit.Actions.call({
|
|
1842
|
-
ipfsId: "",
|
|
1843
1841
|
chain,
|
|
1844
1842
|
contractAddress: LOAN_OPS_MANAGER_ADDRESS,
|
|
1845
1843
|
abi: ABI_MAXIMUM_LOAN_VALUE_UCD,
|
|
@@ -1961,7 +1959,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1961
1959
|
console.log("[Step 4a] Validating daily mint limit...");
|
|
1962
1960
|
const totalMintAmount = amount + mintFee;
|
|
1963
1961
|
const remainingCapacity = await Lit.Actions.call({
|
|
1964
|
-
ipfsId: "",
|
|
1965
1962
|
chain,
|
|
1966
1963
|
contractAddress: UCD_CONTROLLER_ADDRESS,
|
|
1967
1964
|
abi: ABI_REMAINING_MINT_CAPACITY,
|
|
@@ -1984,7 +1981,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1984
1981
|
currentStep = "4b";
|
|
1985
1982
|
console.log("[Step 4b] Validating max supply limit...");
|
|
1986
1983
|
const maxSupplyResult = await Lit.Actions.call({
|
|
1987
|
-
ipfsId: "",
|
|
1988
1984
|
chain,
|
|
1989
1985
|
contractAddress: UCD_CONTROLLER_ADDRESS,
|
|
1990
1986
|
abi: ABI_MAX_SUPPLY,
|
|
@@ -1994,7 +1990,6 @@ var _LIT_ACTION_ = (() => {
|
|
|
1994
1990
|
const maxSupply = BigInt(maxSupplyResult.toString());
|
|
1995
1991
|
if (maxSupply > 0n) {
|
|
1996
1992
|
const currentSupplyResult = await Lit.Actions.call({
|
|
1997
|
-
ipfsId: "",
|
|
1998
1993
|
chain,
|
|
1999
1994
|
contractAddress: UCD_CONTROLLER_ADDRESS,
|
|
2000
1995
|
abi: ABI_CURRENT_SUPPLY,
|