tx · 3z8sdR9ciaTmCUsfmhEMJMjGpGctNEmPGtRittZ7UN7D

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01800000 Waves

2023.09.20 11:05 [2763434] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "3z8sdR9ciaTmCUsfmhEMJMjGpGctNEmPGtRittZ7UN7D", "fee": 1800000, "feeAssetId": null, "timestamp": 1695197143605, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "4Gk1DZyWT52XDsp6BgSez2XAHzQ18DXDvKoksvr5vJCnHhGYivBeS6iZd8h4uMEwrJDF7uyMnJyfawSoUdQ5pwgc" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgEAA5kQXBwU2luY2VTdGFydADA9/eMqjEAClhUTkFzc2V0SUQBIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgYBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0RlZmluZWQBCAUEcG10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RAIBXwUMRW50ZXJBc3NldElEBRVOZXdBc3NldEhvbGRpbmdJblBhaXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ5Vc2VyTFBXb3J0aFhUTgUKWFROQXNzZXRJRAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEFVzZXJMUFdvcnRoQXNzZXQJANkEAQUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5pYZqGQ==", "height": 2763434, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3XHBoMsryPB4XqoSBmRCwemQaYrZJVxh7GPM5GTDUU92 Next: FNb9ZMFuQRJN2a2rE9DWVyyrPiiepT5BhXoX9x81o7fs Diff:
OldNewDifferences
134134 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
135135 else if ((quantityofpriceasset > CheckXTNBalance))
136136 then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
137- else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewTPV), 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)]
137+ else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), 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)]
138138 }
139139
140140
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppSinceStart = 1694928600000
55
66 let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
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))
3030 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
3131 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
3232 let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
3333 let LPid = calculateAssetId(LPissue)
3434 if ((fetchpair == EnterAssetID))
3535 then throw("Pair Already Exist in List.")
3636 else if ((size(i.payments) != 2))
3737 then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.")
3838 else if ((pmt1.assetId != XTNAssetID))
3939 then throw("Incorrect asset attached as payment[1], please attach XTN only.")
4040 else if ((100000 > pmt1.amount))
4141 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."))
4242 else if ((pmt2.assetId != assetinfopmt2))
4343 then throw("Input String & Attached AssetID in payment2 is not matching.")
4444 else if ((WAVES == true))
4545 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
4646 else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(i.caller, getSqrt, XTNAssetID), 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_") + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(((((toString(countdays()) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), 0), LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
4747 }
4848
4949
5050
5151 @Callable(i)
5252 func IssueLPToken (EnterAssetID) = {
5353 let adminrights = valueOrErrorMessage(getString(this, "LP_Admin_Rights"), "LP Admin Rights are Not Included into Smart Contract. Deploy Admin Rights First.")
5454 let calleraddress = toBase58String(i.caller.bytes)
5555 let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token")
5656 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
5757 let name = info.name
5858 let decimals = info.decimals
5959 let FirstLPQty = (1 * pow(10, 0, fraction((decimals + 6), 1, 2), 0, 0, CEILING))
6060 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)
6161 let LPid = calculateAssetId(LPissue)
6262 if ((adminrights != calleraddress))
6363 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
6464 else if ((checkpairisavailableornot != EnterAssetID))
6565 then throw("Pair is not available in List.")
6666 else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), FirstLPQty)]
6767 }
6868
6969
7070
7171 @Callable(i)
7272 func SwapAssetToXTNPairEntry (EnterAssetID) = {
7373 let calleraddress = toBase58String(i.caller.bytes)
7474 let pmt = if ((size(i.payments) == 1))
7575 then i.payments[0]
7676 else throw("Whitelisted Token is required as Attached payment[1].")
7777 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
7878 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
7979 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
8080 let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
8181 let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
8282 let SwapFee = 3
8383 let Currentday = countdays()
8484 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
8585 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
8686 let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
8787 case a: Int =>
8888 a
8989 case _ =>
9090 0
9191 }
9292 let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
9393 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
9494 case a: Int =>
9595 a
9696 case _ =>
9797 0
9898 }
9999 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
100100 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
101101 case a: Int =>
102102 a
103103 case _ =>
104104 0
105105 }
106106 let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive)
107107 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
108108 case a: Int =>
109109 a
110110 case _ =>
111111 0
112112 }
113113 let NewTPT = (TOPT + 1)
114114 let TOPV = match getIntegerValue(this, ((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
115115 case a: Int =>
116116 a
117117 case _ =>
118118 0
119119 }
120120 let NewTPV = (TOPV + pmt.amount)
121121 if ((EnterAssetID == toBase58String(XTNAssetID)))
122122 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
123123 else if ((checkpairisavailableornot != EnterAssetID))
124124 then throw("Pair is not available in Whitelisted Asset.")
125125 else if ((pmt.assetId == XTNAssetID))
126126 then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
127127 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
128128 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
129129 else if ((CheckXTNBalance == 0))
130130 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
131131 else if ((CheckAssetBalance == 0))
132132 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
133133 else if ((100000 > quantityofpriceasset))
134134 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
135135 else if ((quantityofpriceasset > CheckXTNBalance))
136136 then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
137- else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewTPV), 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)]
137+ else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), 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)]
138138 }
139139
140140
141141
142142 @Callable(i)
143143 func SwapXTNToAssetPairEntry (EnterAssetID) = {
144144 let calleraddress = toBase58String(i.caller.bytes)
145145 let pmt = if ((size(i.payments) == 1))
146146 then i.payments[0]
147147 else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1]."))
148148 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
149149 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
150150 let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
151151 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
152152 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
153153 let SwapFee = 3
154154 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
155155 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
156156 let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
157157 case a: Int =>
158158 a
159159 case _ =>
160160 0
161161 }
162162 let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
163163 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
164164 case a: Int =>
165165 a
166166 case _ =>
167167 0
168168 }
169169 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
170170 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
171171 case a: Int =>
172172 a
173173 case _ =>
174174 0
175175 }
176176 let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount)
177177 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
178178 case a: Int =>
179179 a
180180 case _ =>
181181 0
182182 }
183183 let NewTPT = (TOPT + 1)
184184 let TOPV = match getIntegerValue(this, ((((toString(countdays()) + "_Day_Volume_") + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
185185 case a: Int =>
186186 a
187187 case _ =>
188188 0
189189 }
190190 let NewTPV = (TOPV + pmt.amount)
191191 if ((checkpairisavailableornot != EnterAssetID))
192192 then throw("Pair is not available in Whitelisted Asset.")
193193 else if ((EnterAssetID == toBase58String(XTNAssetID)))
194194 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
195195 else if ((pmt.assetId != XTNAssetID))
196196 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.")
197197 else if ((100000 > pmt.amount))
198198 then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
199199 else if ((CheckXTNBalance == 0))
200200 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
201201 else if ((CheckAssetBalance == 0))
202202 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
203203 else if ((quantityofpriceasset > CheckAssetBalance))
204204 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
205205 else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry(((((toString(countdays()) + "_Day_Volume_") + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewTPV), 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))]
206206 }
207207
208208
209209
210210 @Callable(i)
211211 func AddLiquidity (EnterAssetID) = {
212212 let calleraddress = toBase58String(i.caller.bytes)
213213 let pmt1 = value(i.payments[0])
214214 let pmt2 = value(i.payments[1])
215215 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
216216 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
217217 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
218218 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
219219 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
220220 let decimals = decimalsinfo.decimals
221221 let arg1 = CheckXTNBalance
222222 let arg2 = CheckAssetBalance
223223 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
224224 let bothassetsdecimals = (6 + decimals)
225225 let sharedecimals = (bothassetsdecimals / 2)
226226 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
227227 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)
228228 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
229229 case a: Int =>
230230 a
231231 case _ =>
232232 0
233233 }
234234 let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
235235 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
236236 case a: Int =>
237237 a
238238 case _ =>
239239 0
240240 }
241241 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
242242 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
243243 case a: Int =>
244244 a
245245 case _ =>
246246 0
247247 }
248248 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
249249 if ((checkpairisavailableornot != EnterAssetID))
250250 then throw("Pair is not available in Whitelisted Asset.")
251251 else if ((EnterAssetID == toBase58String(XTNAssetID)))
252252 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].")
253253 else if ((size(i.payments) != 2))
254254 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.")
255255 else if ((pmt1.assetId == XTNAssetID))
256256 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
257257 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
258258 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
259259 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
260260 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
261261 else if ((pmt2.assetId != XTNAssetID))
262262 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
263263 else if ((5000000 > pmt2.amount))
264264 then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
265265 else if ((pmt2.amount != quantityofEnterAssetID))
266266 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."))
267267 else if ((1 > quantityofLPToken1))
268268 then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
269269 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)]
270270 }
271271
272272
273273
274274 @Callable(i)
275275 func RemoveLiquidity (EnterAssetID) = {
276276 let calleraddress = toBase58String(i.caller.bytes)
277277 let pmt = if ((size(i.payments) == 1))
278278 then i.payments[0]
279279 else throw("No payment attached, Please Attach LP Token as payment[1].")
280280 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
281281 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
282282 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
283283 let decimals = decimalsinfo.decimals
284284 let bothassetsdecimals = (6 + decimals)
285285 let sharedecimals = (bothassetsdecimals / 2)
286286 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
287287 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
288288 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
289289 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
290290 let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
291291 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
292292 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
293293 case a: Int =>
294294 a
295295 case _ =>
296296 0
297297 }
298298 let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN)
299299 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
300300 case a: Int =>
301301 a
302302 case _ =>
303303 0
304304 }
305305 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
306306 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
307307 case a: Int =>
308308 a
309309 case _ =>
310310 0
311311 }
312312 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
313313 if ((checkpairisavailableornot != EnterAssetID))
314314 then throw("Pair is not available in Whitelist.")
315315 else if ((fromBase58String(EnterAssetID) == XTNAssetID))
316316 then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
317317 else if ((pmt.assetId != ReissueableassetId))
318318 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
319319 else if ((1 > UserLPPercentage))
320320 then throw("Your LP Token amount % is very low to convert.")
321321 else if ((1 > UserLPWorthXTN))
322322 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
323323 else if ((1 > UserLPWorthAsset))
324324 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
325325 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))]
326326 }
327327
328328
329329 @Verifier(tx)
330330 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
331331

github/deemru/w8io/169f3d6 
57.34 ms