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