tx · 4qS9PbyX73M1EGJFAZxKU2eeNcehNrw8wcjCzKFLdApV

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01700000 Waves

2023.09.19 17:32 [2762388] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "4qS9PbyX73M1EGJFAZxKU2eeNcehNrw8wcjCzKFLdApV", "fee": 1700000, "feeAssetId": null, "timestamp": 1695133948327, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "4H3GMdPVjjmSMiWhvH566qwUDfLmEGKt5NYkHCt8wN943bVhyiGg9edbuWumvBAu589KMCXF7j9Q4Tac8EYQRb9R" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgEAA5kQXBwU2luY2VTdGFydACAkYzCqjEAClhUTkFzc2V0SUQBIERHMcoh3/bynCbIVv74Z6l9nvez8AyJBUgJkDUU6U3/ABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgYBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0RlZmluZWQBCAUEcG10Mgdhc3N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Fzc2V0SUQCAV8JANgEAQUKWFROQXNzZXRJRAUTTmV3WFROSG9sZGluZ0luUGFpcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJAKwCAgILQmFsYW5jZV9vZl8JANgEAQUKWFROQXNzZXRJRAIBXwUMRW50ZXJBc3NldElEBRVOZXdBc3NldEhvbGRpbmdJblBhaXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ5Vc2VyTFBXb3J0aFhUTgUKWFROQXNzZXRJRAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEFVzZXJMUFdvcnRoQXNzZXQJANkEAQUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5y01aGA==", "height": 2762388, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 57ncCXwhqgcktkwvbhpwiSdjqbGovShFHd8rnwWYXzD Next: i7Nyvbq33FpALiVub1MFC1d8S4ZQ2VsoTqFoyNr8dY1 Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppSinceStart = 1695040080000
55
6-let USDCAssetID = base58'5bXgvADuVoFdhtF5uKZAEiVdAo7ZCWw151L4yyf1PiES'
6+let XTNAssetID = base58'5bXgvADuVoFdhtF5uKZAEiVdAo7ZCWw151L4yyf1PiES'
77
88 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
2727 let decimals = info.decimals
2828 let LPdecimals = fraction((decimals + 6), 1, 2)
2929 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
30- let LPissue = Issue((("LP-" + take(name, 8)) + "-USDC"), (((("LP-" + name) + "-USDC") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), FirstLPQty, LPdecimals, true)
30+ let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
31+ let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
32+ let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
3133 let LPid = calculateAssetId(LPissue)
3234 if ((fetchpair == EnterAssetID))
3335 then throw("Pair Already Exist in List.")
3436 else if ((size(i.payments) != 2))
3537 then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.")
36- else if (isDefined(pmt1.assetId))
37- then throw("Incorrect asset attached for Collateral, please attach WAVES only.")
38+ else if ((pmt1.assetId != XTNAssetID))
39+ then throw("Incorrect asset attached for Collateral, please attach XTN only.")
3840 else if ((pmt1.amount != 10000000))
3941 then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " WAVES for Listing in payment[1], please attach 10 WAVES."))
4042 else if ((pmt2.assetId != assetinfopmt2))
4143 then throw("Input String & Attached AssetID in payment2 is not matching.")
4244 else if ((WAVES == true))
4345 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
44- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry((toString(countdays()) + "_Day_Volume"), 0), LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), FirstLPQty)]
46+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry((toString(countdays()) + "_Day_Volume"), 0), LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
4547 }
4648
4749
5557 let name = info.name
5658 let decimals = info.decimals
5759 let FirstLPQty = (1 * pow(10, 0, fraction((decimals + 6), 1, 2), 0, 0, CEILING))
58- let LPissue = Issue((("LP-" + take(name, 8)) + "-USDC"), (((("LP-" + name) + "-USDC") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), FirstLPQty, fraction((decimals + 6), 1, 2), true)
60+ let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), FirstLPQty, fraction((decimals + 6), 1, 2), true)
5961 let LPid = calculateAssetId(LPissue)
6062 if ((adminrights != calleraddress))
6163 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
6769
6870
6971 @Callable(i)
70-func SwapAssetToUSDCPairEntry (EnterAssetID) = {
72+func SwapAssetToXTNPairEntry (EnterAssetID) = {
7173 let calleraddress = toBase58String(i.caller.bytes)
7274 let pmt = if ((size(i.payments) == 1))
7375 then i.payments[0]
7476 else throw("Whitelisted Token is required as Attached payment[1].")
7577 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
76- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
77- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
78- let newbalanceofUSDC = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
79- let quantityofpriceasset = (CheckUSDCBalance - newbalanceofUSDC)
78+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
79+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
80+ let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
81+ let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
8082 let SwapFee = 3
8183 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
8284 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
83- let SumupofAssetToUSDCSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
85+ let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
8486 case a: Int =>
8587 a
8688 case _ =>
8789 0
8890 }
89- let NewSumupofAssetToUSDCSwapFee = ((SumupofAssetToUSDCSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
90- let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
91+ let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
92+ let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
9193 case a: Int =>
9294 a
9395 case _ =>
9496 0
9597 }
9698 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
97- let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
99+ let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
98100 case a: Int =>
99101 a
100102 case _ =>
101103 0
102104 }
103- let NewSumupofUSDCBalance = ((CheckUSDCBalance - quantityofpriceasset) + SwapFeetoreceive)
105+ let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive)
104106 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
105107 case a: Int =>
106108 a
108110 0
109111 }
110112 let NewTPT = (TOPT + 1)
111- if ((EnterAssetID == toBase58String(USDCAssetID)))
112- then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
113+ if ((EnterAssetID == toBase58String(XTNAssetID)))
114+ then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
113115 else if ((checkpairisavailableornot != EnterAssetID))
114116 then throw("Pair is not available in Whitelisted Asset.")
115- else if ((pmt.assetId == USDCAssetID))
116- then throw("You can't Attach USDC as an Attached Payment. Only Whitelisted Tokens are accepted.")
117+ else if ((pmt.assetId == XTNAssetID))
118+ then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
117119 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
118120 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
119- else if ((CheckUSDCBalance == 0))
121+ else if ((CheckXTNBalance == 0))
120122 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
121123 else if ((CheckAssetBalance == 0))
122124 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
123125 else if ((100000 > quantityofpriceasset))
124126 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
125- else if ((quantityofpriceasset > CheckUSDCBalance))
126- then throw((("Pool Only has a Liquidity of " + toString((CheckUSDCBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " USDC. Add Liquidity into Pool."))
127- else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewSumupofAssetToUSDCSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewSumupofUSDCBalance), ScriptTransfer(i.caller, userbalancetoreceive, USDCAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, USDCAssetID)]
127+ else if ((quantityofpriceasset > CheckXTNBalance))
128+ then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
129+ else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, XTNAssetID)]
128130 }
129131
130132
131133
132134 @Callable(i)
133-func SwapUSDCToAssetPairEntry (EnterAssetID) = {
135+func SwapXTNToAssetPairEntry (EnterAssetID) = {
134136 let calleraddress = toBase58String(i.caller.bytes)
135137 let pmt = if ((size(i.payments) == 1))
136138 then i.payments[0]
137- else throw((("Only " + toBase58String(USDCAssetID)) + " USDC Token is required as an Attached payment[1]."))
138- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
139- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
140- let newbalanceofAsset = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckUSDCBalance + pmt.amount))
139+ else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1]."))
140+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
141+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
142+ let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
141143 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
142144 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
143145 let SwapFee = 3
144146 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
145147 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
146- let SumupofUSDCToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
148+ let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
147149 case a: Int =>
148150 a
149151 case _ =>
150152 0
151153 }
152- let NewSumupofUSDCToAssetSwapFee = ((SumupofUSDCToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
153- let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
154+ let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
155+ let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
154156 case a: Int =>
155157 a
156158 case _ =>
157159 0
158160 }
159161 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
160- let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
162+ let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
161163 case a: Int =>
162164 a
163165 case _ =>
164166 0
165167 }
166- let NewSumupofUSDCBalance = (CheckUSDCBalance + pmt.amount)
168+ let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount)
167169 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
168170 case a: Int =>
169171 a
173175 let NewTPT = (TOPT + 1)
174176 if ((checkpairisavailableornot != EnterAssetID))
175177 then throw("Pair is not available in Whitelisted Asset.")
176- else if ((EnterAssetID == toBase58String(USDCAssetID)))
177- then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach USDC as an attachment Token in payment[1].")
178- else if ((pmt.assetId != USDCAssetID))
179- then throw("You can Attach USDC as an Attached Payment[1] to Swap USDC To Required Token. Any other asset else than USDC will be rejected.")
178+ else if ((EnterAssetID == toBase58String(XTNAssetID)))
179+ then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
180+ else if ((pmt.assetId != XTNAssetID))
181+ then throw("You can Attach XTN as an Attached Payment[1] to Swap XTN To Required Token. Any other asset else than XTN will be rejected.")
180182 else if ((100000 > pmt.amount))
181- then throw("Your Attached USDC Amount is very low. Attach Atleast 0.1 USDC to Claim the minimum Tokens.")
182- else if ((CheckUSDCBalance == 0))
183+ then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
184+ else if ((CheckXTNBalance == 0))
183185 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
184186 else if ((CheckAssetBalance == 0))
185187 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
186188 else if ((quantityofpriceasset > CheckAssetBalance))
187189 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
188- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofUSDCToAssetSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewSumupofUSDCBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
190+ else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
189191 }
190192
191193
197199 let pmt2 = value(i.payments[1])
198200 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
199201 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
200- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
201- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
202+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
203+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
202204 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
203205 let decimals = decimalsinfo.decimals
204- let arg1 = CheckUSDCBalance
206+ let arg1 = CheckXTNBalance
205207 let arg2 = CheckAssetBalance
206208 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
207209 let bothassetsdecimals = (6 + decimals)
208210 let sharedecimals = (bothassetsdecimals / 2)
209211 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
210212 let quantityofLPToken1 = pow((fraction(pmt1.amount, 1, pow(10, 0, decimals, 0, 0, CEILING)) * fraction(pmt2.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, sharedecimals, DOWN)
211- let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
213+ let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
212214 case a: Int =>
213215 a
214216 case _ =>
215217 0
216218 }
217- let NewUSDCHoldingInPair = (USDCHoldingInPair + pmt2.amount)
218- let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
219+ let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
220+ let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
219221 case a: Int =>
220222 a
221223 case _ =>
231233 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
232234 if ((checkpairisavailableornot != EnterAssetID))
233235 then throw("Pair is not available in Whitelisted Asset.")
234- else if ((EnterAssetID == toBase58String(USDCAssetID)))
235- then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach USDC as an attachment Token in payment[2].")
236+ else if ((EnterAssetID == toBase58String(XTNAssetID)))
237+ then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach XTN as an attachment Token in payment[2].")
236238 else if ((size(i.payments) != 2))
237- then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of USDC Token.")
238- else if ((pmt1.assetId == USDCAssetID))
239- then throw("You Attached USDC asset in payment[1], please attach only whitelisted Token in payment[1] along with USDC in payment[2].")
239+ then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of XTN Token.")
240+ else if ((pmt1.assetId == XTNAssetID))
241+ then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
240242 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
241243 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
242244 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
243245 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
244- else if ((pmt2.assetId != USDCAssetID))
245- then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDC Token.")
246+ else if ((pmt2.assetId != XTNAssetID))
247+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
246248 else if ((5000000 > pmt2.amount))
247- then throw("please attach atleast 5 USDC in payment[2] & Equivalent worth of Token in payment[1]")
249+ then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
248250 else if ((pmt2.amount != quantityofEnterAssetID))
249- then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " USDC."))
251+ then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " XTN."))
250252 else if ((1 > quantityofLPToken1))
251- then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 USDC Atleast."))
252- else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewUSDCHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
253+ then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
254+ else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
253255 }
254256
255257
268270 let sharedecimals = (bothassetsdecimals / 2)
269271 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
270272 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
271- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
272- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
273- let UserLPWorthUSDC = fraction(CheckUSDCBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
273+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
274+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
275+ let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
274276 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
275- let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
277+ let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
276278 case a: Int =>
277279 a
278280 case _ =>
279281 0
280282 }
281- let NewUSDCHoldingInPair = (USDCHoldingInPair - UserLPWorthUSDC)
282- let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
283+ let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN)
284+ let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
283285 case a: Int =>
284286 a
285287 case _ =>
295297 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
296298 if ((checkpairisavailableornot != EnterAssetID))
297299 then throw("Pair is not available in Whitelist.")
298- else if ((fromBase58String(EnterAssetID) == USDCAssetID))
299- then throw("Don't choose USDC AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
300+ else if ((fromBase58String(EnterAssetID) == XTNAssetID))
301+ then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
300302 else if ((pmt.assetId != ReissueableassetId))
301303 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
302304 else if ((1 > UserLPPercentage))
303305 then throw("Your LP Token amount % is very low to convert.")
304- else if ((1 > UserLPWorthUSDC))
305- then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 USDC.")
306+ else if ((1 > UserLPWorthXTN))
307+ then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
306308 else if ((1 > UserLPWorthAsset))
307309 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
308- else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewUSDCHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthUSDC, USDCAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))]
310+ else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthXTN, XTNAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))]
309311 }
310-
311-
312-
313-@Callable(i)
314-func Del (Key) = [DeleteEntry(Key)]
315312
316313
317314 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppSinceStart = 1695040080000
55
6-let USDCAssetID = base58'5bXgvADuVoFdhtF5uKZAEiVdAo7ZCWw151L4yyf1PiES'
6+let XTNAssetID = base58'5bXgvADuVoFdhtF5uKZAEiVdAo7ZCWw151L4yyf1PiES'
77
88 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
1010 func countdays () = {
1111 let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
1212 let daynumber = fraction(1, TS_Diff, 86400000)
1313 daynumber
1414 }
1515
1616
1717 @Callable(i)
1818 func RegisterPair (EnterAssetID) = {
1919 let pmt1 = value(i.payments[0])
2020 let pmt2 = value(i.payments[1])
2121 let currentKey = toBase58String(i.caller.bytes)
2222 let WAVES = !(isDefined(pmt2.assetId))
2323 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
2424 let assetinfopmt2 = fromBase58String(EnterAssetID)
2525 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
2626 let name = info.name
2727 let decimals = info.decimals
2828 let LPdecimals = fraction((decimals + 6), 1, 2)
2929 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
30- let LPissue = Issue((("LP-" + take(name, 8)) + "-USDC"), (((("LP-" + name) + "-USDC") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), FirstLPQty, LPdecimals, true)
30+ let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
31+ let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
32+ let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
3133 let LPid = calculateAssetId(LPissue)
3234 if ((fetchpair == EnterAssetID))
3335 then throw("Pair Already Exist in List.")
3436 else if ((size(i.payments) != 2))
3537 then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.")
36- else if (isDefined(pmt1.assetId))
37- then throw("Incorrect asset attached for Collateral, please attach WAVES only.")
38+ else if ((pmt1.assetId != XTNAssetID))
39+ then throw("Incorrect asset attached for Collateral, please attach XTN only.")
3840 else if ((pmt1.amount != 10000000))
3941 then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " WAVES for Listing in payment[1], please attach 10 WAVES."))
4042 else if ((pmt2.assetId != assetinfopmt2))
4143 then throw("Input String & Attached AssetID in payment2 is not matching.")
4244 else if ((WAVES == true))
4345 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
44- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry((toString(countdays()) + "_Day_Volume"), 0), LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), FirstLPQty)]
46+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry((toString(countdays()) + "_Day_Volume"), 0), LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
4547 }
4648
4749
4850
4951 @Callable(i)
5052 func IssueLPToken (EnterAssetID) = {
5153 let adminrights = valueOrErrorMessage(getString(this, "LP_Admin_Rights"), "LP Admin Rights are Not Included into Smart Contract. Deploy Admin Rights First.")
5254 let calleraddress = toBase58String(i.caller.bytes)
5355 let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token")
5456 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
5557 let name = info.name
5658 let decimals = info.decimals
5759 let FirstLPQty = (1 * pow(10, 0, fraction((decimals + 6), 1, 2), 0, 0, CEILING))
58- let LPissue = Issue((("LP-" + take(name, 8)) + "-USDC"), (((("LP-" + name) + "-USDC") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), FirstLPQty, fraction((decimals + 6), 1, 2), true)
60+ let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), FirstLPQty, fraction((decimals + 6), 1, 2), true)
5961 let LPid = calculateAssetId(LPissue)
6062 if ((adminrights != calleraddress))
6163 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
6264 else if ((checkpairisavailableornot != EnterAssetID))
6365 then throw("Pair is not available in List.")
6466 else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), FirstLPQty)]
6567 }
6668
6769
6870
6971 @Callable(i)
70-func SwapAssetToUSDCPairEntry (EnterAssetID) = {
72+func SwapAssetToXTNPairEntry (EnterAssetID) = {
7173 let calleraddress = toBase58String(i.caller.bytes)
7274 let pmt = if ((size(i.payments) == 1))
7375 then i.payments[0]
7476 else throw("Whitelisted Token is required as Attached payment[1].")
7577 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
76- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
77- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
78- let newbalanceofUSDC = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
79- let quantityofpriceasset = (CheckUSDCBalance - newbalanceofUSDC)
78+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
79+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
80+ let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
81+ let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
8082 let SwapFee = 3
8183 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
8284 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
83- let SumupofAssetToUSDCSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
85+ let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
8486 case a: Int =>
8587 a
8688 case _ =>
8789 0
8890 }
89- let NewSumupofAssetToUSDCSwapFee = ((SumupofAssetToUSDCSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
90- let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
91+ let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
92+ let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
9193 case a: Int =>
9294 a
9395 case _ =>
9496 0
9597 }
9698 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
97- let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
99+ let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
98100 case a: Int =>
99101 a
100102 case _ =>
101103 0
102104 }
103- let NewSumupofUSDCBalance = ((CheckUSDCBalance - quantityofpriceasset) + SwapFeetoreceive)
105+ let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive)
104106 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
105107 case a: Int =>
106108 a
107109 case _ =>
108110 0
109111 }
110112 let NewTPT = (TOPT + 1)
111- if ((EnterAssetID == toBase58String(USDCAssetID)))
112- then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
113+ if ((EnterAssetID == toBase58String(XTNAssetID)))
114+ then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
113115 else if ((checkpairisavailableornot != EnterAssetID))
114116 then throw("Pair is not available in Whitelisted Asset.")
115- else if ((pmt.assetId == USDCAssetID))
116- then throw("You can't Attach USDC as an Attached Payment. Only Whitelisted Tokens are accepted.")
117+ else if ((pmt.assetId == XTNAssetID))
118+ then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
117119 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
118120 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
119- else if ((CheckUSDCBalance == 0))
121+ else if ((CheckXTNBalance == 0))
120122 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
121123 else if ((CheckAssetBalance == 0))
122124 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
123125 else if ((100000 > quantityofpriceasset))
124126 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
125- else if ((quantityofpriceasset > CheckUSDCBalance))
126- then throw((("Pool Only has a Liquidity of " + toString((CheckUSDCBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " USDC. Add Liquidity into Pool."))
127- else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewSumupofAssetToUSDCSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewSumupofUSDCBalance), ScriptTransfer(i.caller, userbalancetoreceive, USDCAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, USDCAssetID)]
127+ else if ((quantityofpriceasset > CheckXTNBalance))
128+ then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
129+ else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, XTNAssetID)]
128130 }
129131
130132
131133
132134 @Callable(i)
133-func SwapUSDCToAssetPairEntry (EnterAssetID) = {
135+func SwapXTNToAssetPairEntry (EnterAssetID) = {
134136 let calleraddress = toBase58String(i.caller.bytes)
135137 let pmt = if ((size(i.payments) == 1))
136138 then i.payments[0]
137- else throw((("Only " + toBase58String(USDCAssetID)) + " USDC Token is required as an Attached payment[1]."))
138- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
139- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
140- let newbalanceofAsset = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckUSDCBalance + pmt.amount))
139+ else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1]."))
140+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
141+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
142+ let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
141143 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
142144 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
143145 let SwapFee = 3
144146 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
145147 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
146- let SumupofUSDCToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
148+ let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
147149 case a: Int =>
148150 a
149151 case _ =>
150152 0
151153 }
152- let NewSumupofUSDCToAssetSwapFee = ((SumupofUSDCToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
153- let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
154+ let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
155+ let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
154156 case a: Int =>
155157 a
156158 case _ =>
157159 0
158160 }
159161 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
160- let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
162+ let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
161163 case a: Int =>
162164 a
163165 case _ =>
164166 0
165167 }
166- let NewSumupofUSDCBalance = (CheckUSDCBalance + pmt.amount)
168+ let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount)
167169 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
168170 case a: Int =>
169171 a
170172 case _ =>
171173 0
172174 }
173175 let NewTPT = (TOPT + 1)
174176 if ((checkpairisavailableornot != EnterAssetID))
175177 then throw("Pair is not available in Whitelisted Asset.")
176- else if ((EnterAssetID == toBase58String(USDCAssetID)))
177- then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach USDC as an attachment Token in payment[1].")
178- else if ((pmt.assetId != USDCAssetID))
179- then throw("You can Attach USDC as an Attached Payment[1] to Swap USDC To Required Token. Any other asset else than USDC will be rejected.")
178+ else if ((EnterAssetID == toBase58String(XTNAssetID)))
179+ then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
180+ else if ((pmt.assetId != XTNAssetID))
181+ then throw("You can Attach XTN as an Attached Payment[1] to Swap XTN To Required Token. Any other asset else than XTN will be rejected.")
180182 else if ((100000 > pmt.amount))
181- then throw("Your Attached USDC Amount is very low. Attach Atleast 0.1 USDC to Claim the minimum Tokens.")
182- else if ((CheckUSDCBalance == 0))
183+ then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
184+ else if ((CheckXTNBalance == 0))
183185 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
184186 else if ((CheckAssetBalance == 0))
185187 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
186188 else if ((quantityofpriceasset > CheckAssetBalance))
187189 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
188- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofUSDCToAssetSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewSumupofUSDCBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
190+ else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
189191 }
190192
191193
192194
193195 @Callable(i)
194196 func AddLiquidity (EnterAssetID) = {
195197 let calleraddress = toBase58String(i.caller.bytes)
196198 let pmt1 = value(i.payments[0])
197199 let pmt2 = value(i.payments[1])
198200 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
199201 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
200- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
201- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
202+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
203+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
202204 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
203205 let decimals = decimalsinfo.decimals
204- let arg1 = CheckUSDCBalance
206+ let arg1 = CheckXTNBalance
205207 let arg2 = CheckAssetBalance
206208 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
207209 let bothassetsdecimals = (6 + decimals)
208210 let sharedecimals = (bothassetsdecimals / 2)
209211 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
210212 let quantityofLPToken1 = pow((fraction(pmt1.amount, 1, pow(10, 0, decimals, 0, 0, CEILING)) * fraction(pmt2.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, sharedecimals, DOWN)
211- let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
213+ let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
212214 case a: Int =>
213215 a
214216 case _ =>
215217 0
216218 }
217- let NewUSDCHoldingInPair = (USDCHoldingInPair + pmt2.amount)
218- let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
219+ let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
220+ let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
219221 case a: Int =>
220222 a
221223 case _ =>
222224 0
223225 }
224226 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
225227 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
226228 case a: Int =>
227229 a
228230 case _ =>
229231 0
230232 }
231233 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
232234 if ((checkpairisavailableornot != EnterAssetID))
233235 then throw("Pair is not available in Whitelisted Asset.")
234- else if ((EnterAssetID == toBase58String(USDCAssetID)))
235- then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach USDC as an attachment Token in payment[2].")
236+ else if ((EnterAssetID == toBase58String(XTNAssetID)))
237+ then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach XTN as an attachment Token in payment[2].")
236238 else if ((size(i.payments) != 2))
237- then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of USDC Token.")
238- else if ((pmt1.assetId == USDCAssetID))
239- then throw("You Attached USDC asset in payment[1], please attach only whitelisted Token in payment[1] along with USDC in payment[2].")
239+ then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of XTN Token.")
240+ else if ((pmt1.assetId == XTNAssetID))
241+ then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
240242 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
241243 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
242244 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
243245 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
244- else if ((pmt2.assetId != USDCAssetID))
245- then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDC Token.")
246+ else if ((pmt2.assetId != XTNAssetID))
247+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
246248 else if ((5000000 > pmt2.amount))
247- then throw("please attach atleast 5 USDC in payment[2] & Equivalent worth of Token in payment[1]")
249+ then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
248250 else if ((pmt2.amount != quantityofEnterAssetID))
249- then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " USDC."))
251+ then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " XTN."))
250252 else if ((1 > quantityofLPToken1))
251- then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 USDC Atleast."))
252- else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewUSDCHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
253+ then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
254+ else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
253255 }
254256
255257
256258
257259 @Callable(i)
258260 func RemoveLiquidity (EnterAssetID) = {
259261 let calleraddress = toBase58String(i.caller.bytes)
260262 let pmt = if ((size(i.payments) == 1))
261263 then i.payments[0]
262264 else throw("No payment attached, Please Attach LP Token as payment[1].")
263265 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
264266 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
265267 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
266268 let decimals = decimalsinfo.decimals
267269 let bothassetsdecimals = (6 + decimals)
268270 let sharedecimals = (bothassetsdecimals / 2)
269271 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
270272 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
271- let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
272- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
273- let UserLPWorthUSDC = fraction(CheckUSDCBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
273+ let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
274+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
275+ let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
274276 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
275- let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
277+ let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
276278 case a: Int =>
277279 a
278280 case _ =>
279281 0
280282 }
281- let NewUSDCHoldingInPair = (USDCHoldingInPair - UserLPWorthUSDC)
282- let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
283+ let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN)
284+ let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
283285 case a: Int =>
284286 a
285287 case _ =>
286288 0
287289 }
288290 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
289291 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
290292 case a: Int =>
291293 a
292294 case _ =>
293295 0
294296 }
295297 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
296298 if ((checkpairisavailableornot != EnterAssetID))
297299 then throw("Pair is not available in Whitelist.")
298- else if ((fromBase58String(EnterAssetID) == USDCAssetID))
299- then throw("Don't choose USDC AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
300+ else if ((fromBase58String(EnterAssetID) == XTNAssetID))
301+ then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
300302 else if ((pmt.assetId != ReissueableassetId))
301303 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
302304 else if ((1 > UserLPPercentage))
303305 then throw("Your LP Token amount % is very low to convert.")
304- else if ((1 > UserLPWorthUSDC))
305- then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 USDC.")
306+ else if ((1 > UserLPWorthXTN))
307+ then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
306308 else if ((1 > UserLPWorthAsset))
307309 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
308- else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), NewUSDCHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthUSDC, USDCAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))]
310+ else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthXTN, XTNAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))]
309311 }
310-
311-
312-
313-@Callable(i)
314-func Del (Key) = [DeleteEntry(Key)]
315312
316313
317314 @Verifier(tx)
318315 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
319316

github/deemru/w8io/169f3d6 
114.58 ms