tx · 9RMqGaS7htDjdg9JHWteCNNSDJMnui3ALmSDPesFCyND

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01900000 Waves

2023.09.24 09:15 [2769109] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "9RMqGaS7htDjdg9JHWteCNNSDJMnui3ALmSDPesFCyND", "fee": 1900000, "feeAssetId": null, "timestamp": 1695536150130, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "3XbSJ8qNRe9ujTFt8yam7Q7esGrSN9rMGVWS1zbTEaEk5XVH14UqNnuTdxKEfDki2PoRYg6bxnDzs5f6dkWoqQCC" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgFAA5kQXBwU2luY2VTdGFydADA9/eMqjEAC2xpc3RpbmdfZmVlAIDO5M0CAApYVE5Bc3NldElEASAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAARQ29sbGVjdEZlZUFkZHJlc3MJAKcIAQEgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iABCWNvdW50ZGF5cwAEB1RTX0RpZmYJAGUCCAUJbGFzdEJsb2NrCXRpbWVzdGFtcAUOZEFwcFNpbmNlU3RhcnQECWRheW51bWJlcgkAawMAAQUHVFNfRGlmZgCAuJkpBQlkYXludW1iZXIGAWkBDFJlZ2lzdGVyUGFpcgEMRW50ZXJBc3NldElEBARwbXQxCQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAEBHBtdDIJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAQQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAVXQVZFUwkBASEBCQEJ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| compacted Prev: EM67v1Yd5kDKBxs4gRj8dJ2tSu6Z7Stb372YYKwS9arn Next: H1keRYgn5mT4JkTmph1Buy1mnNepLbqFqS9d5wo58h18 Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppSinceStart = 1694928600000
5+
6+let listing_fee = 700000000
57
68 let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
79
3436 let LPid = calculateAssetId(LPissue)
3537 if ((fetchpair == EnterAssetID))
3638 then throw("Pair Already Exist in List.")
37- else if ((size(i.payments) != 2))
38- then throw("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List.")
39+ else if ((size(i.payments) != 3))
40+ then throw((("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List & payment3 = [" + toString(listing_fee)) + "/10^8] Waves."))
3941 else if ((pmt1.assetId != XTNAssetID))
4042 then throw("Incorrect asset attached as payment[1], please attach XTN only.")
4143 else if ((100000 > pmt1.amount))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppSinceStart = 1694928600000
5+
6+let listing_fee = 700000000
57
68 let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
79
810 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
911
1012 func countdays () = {
1113 let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
1214 let daynumber = fraction(1, TS_Diff, 86400000)
1315 daynumber
1416 }
1517
1618
1719 @Callable(i)
1820 func RegisterPair (EnterAssetID) = {
1921 let pmt1 = value(i.payments[0])
2022 let pmt2 = value(i.payments[1])
2123 let currentKey = toBase58String(i.caller.bytes)
2224 let WAVES = !(isDefined(pmt2.assetId))
2325 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
2426 let assetinfopmt2 = fromBase58String(EnterAssetID)
2527 let Currentday = countdays()
2628 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
2729 let name = info.name
2830 let decimals = info.decimals
2931 let LPdecimals = fraction((decimals + 6), 1, 2)
3032 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
3133 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
3234 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
3335 let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
3436 let LPid = calculateAssetId(LPissue)
3537 if ((fetchpair == EnterAssetID))
3638 then throw("Pair Already Exist in List.")
37- else if ((size(i.payments) != 2))
38- then throw("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List.")
39+ else if ((size(i.payments) != 3))
40+ then throw((("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List & payment3 = [" + toString(listing_fee)) + "/10^8] Waves."))
3941 else if ((pmt1.assetId != XTNAssetID))
4042 then throw("Incorrect asset attached as payment[1], please attach XTN only.")
4143 else if ((100000 > pmt1.amount))
4244 then throw("Attached payment[1] amount is less than 0.1 XTN, please attach 0.1 XTN Minimum.")
4345 else if ((pmt2.assetId != assetinfopmt2))
4446 then throw("Input String & Attached AssetID in payment2 is not matching.")
4547 else if ((WAVES == true))
4648 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
4749 else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), 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(Currentday) + "_Day_Volume_") + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
4850 }
4951
5052
5153
5254 @Callable(i)
5355 func SwapAssetToXTNPairEntry (EnterAssetID) = {
5456 let calleraddress = toBase58String(i.caller.bytes)
5557 let pmt = if ((size(i.payments) == 1))
5658 then i.payments[0]
5759 else throw("Whitelisted Token is required as Attached payment[1].")
5860 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
5961 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
6062 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
6163 let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
6264 let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
6365 let SwapFee = 3
6466 let Currentday = countdays()
6567 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
6668 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
6769 let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
6870 case a: Int =>
6971 a
7072 case _ =>
7173 0
7274 }
7375 let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
7476 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
7577 case a: Int =>
7678 a
7779 case _ =>
7880 0
7981 }
8082 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
8183 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
8284 case a: Int =>
8385 a
8486 case _ =>
8587 0
8688 }
8789 let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive)
8890 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
8991 case a: Int =>
9092 a
9193 case _ =>
9294 0
9395 }
9496 let NewTPT = (TOPT + 1)
9597 if ((EnterAssetID == toBase58String(XTNAssetID)))
9698 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
9799 else if ((checkpairisavailableornot != EnterAssetID))
98100 then throw("Pair is not available in Whitelisted Asset.")
99101 else if ((pmt.assetId == XTNAssetID))
100102 then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
101103 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
102104 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
103105 else if ((CheckXTNBalance == 0))
104106 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
105107 else if ((CheckAssetBalance == 0))
106108 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
107109 else if ((100000 > quantityofpriceasset))
108110 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
109111 else if ((quantityofpriceasset > CheckXTNBalance))
110112 then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
111113 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)]
112114 }
113115
114116
115117
116118 @Callable(i)
117119 func SwapXTNToAssetPairEntry (EnterAssetID) = {
118120 let calleraddress = toBase58String(i.caller.bytes)
119121 let pmt = if ((size(i.payments) == 1))
120122 then i.payments[0]
121123 else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1]."))
122124 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
123125 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
124126 let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
125127 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
126128 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
127129 let SwapFee = 3
128130 let Currentday = countdays()
129131 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
130132 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
131133 let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
132134 case a: Int =>
133135 a
134136 case _ =>
135137 0
136138 }
137139 let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
138140 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
139141 case a: Int =>
140142 a
141143 case _ =>
142144 0
143145 }
144146 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
145147 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
146148 case a: Int =>
147149 a
148150 case _ =>
149151 0
150152 }
151153 let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount)
152154 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
153155 case a: Int =>
154156 a
155157 case _ =>
156158 0
157159 }
158160 let NewTPT = (TOPT + 1)
159161 if ((checkpairisavailableornot != EnterAssetID))
160162 then throw("Pair is not available in Whitelisted Asset.")
161163 else if ((EnterAssetID == toBase58String(XTNAssetID)))
162164 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
163165 else if ((pmt.assetId != XTNAssetID))
164166 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.")
165167 else if ((100000 > pmt.amount))
166168 then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
167169 else if ((CheckXTNBalance == 0))
168170 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
169171 else if ((CheckAssetBalance == 0))
170172 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
171173 else if ((quantityofpriceasset > CheckAssetBalance))
172174 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
173175 else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), 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, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
174176 }
175177
176178
177179
178180 @Callable(i)
179181 func LatestAddLiquidity (EnterAssetID) = {
180182 let calleraddress = toBase58String(i.caller.bytes)
181183 let pmt1 = value(i.payments[0])
182184 let pmt2 = value(i.payments[1])
183185 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
184186 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
185187 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
186188 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
187189 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
188190 let decimals = decimalsinfo.decimals
189191 let LPdecimals = fraction((decimals + 6), 1, 2)
190192 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
191193 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
192194 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
193195 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
194196 case a: Int =>
195197 a
196198 case _ =>
197199 0
198200 }
199201 let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
200202 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
201203 case a: Int =>
202204 a
203205 case _ =>
204206 0
205207 }
206208 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
207209 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
208210 case a: Int =>
209211 a
210212 case _ =>
211213 0
212214 }
213215 let NewLPTokenIssued = (LPTokenIssued + getSqrt)
214216 if ((checkpairisavailableornot != EnterAssetID))
215217 then throw("Pair is not available in Whitelisted Asset.")
216218 else if ((EnterAssetID == toBase58String(XTNAssetID)))
217219 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].")
218220 else if ((size(i.payments) != 2))
219221 then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.")
220222 else if ((pmt1.assetId == XTNAssetID))
221223 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
222224 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
223225 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
224226 else if ((pmt2.assetId != XTNAssetID))
225227 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
226228 else if ((100000 > pmt2.amount))
227229 then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]")
228230 else if ((1 > getSqrt))
229231 then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
230232 else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)]
231233 }
232234
233235
234236
235237 @Callable(i)
236238 func AddLiquidity (EnterAssetID) = {
237239 let calleraddress = toBase58String(i.caller.bytes)
238240 let pmt1 = value(i.payments[0])
239241 let pmt2 = value(i.payments[1])
240242 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
241243 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
242244 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
243245 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
244246 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
245247 let decimals = decimalsinfo.decimals
246248 let arg1 = CheckXTNBalance
247249 let arg2 = CheckAssetBalance
248250 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
249251 let bothassetsdecimals = (6 + decimals)
250252 let sharedecimals = (bothassetsdecimals / 2)
251253 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
252254 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)
253255 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
254256 case a: Int =>
255257 a
256258 case _ =>
257259 0
258260 }
259261 let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
260262 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
261263 case a: Int =>
262264 a
263265 case _ =>
264266 0
265267 }
266268 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
267269 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
268270 case a: Int =>
269271 a
270272 case _ =>
271273 0
272274 }
273275 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
274276 if ((checkpairisavailableornot != EnterAssetID))
275277 then throw("Pair is not available in Whitelisted Asset.")
276278 else if ((EnterAssetID == toBase58String(XTNAssetID)))
277279 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].")
278280 else if ((size(i.payments) != 2))
279281 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.")
280282 else if ((pmt1.assetId == XTNAssetID))
281283 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
282284 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
283285 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
284286 else if ((pmt2.assetId != XTNAssetID))
285287 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
286288 else if ((5000000 > pmt2.amount))
287289 then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
288290 else if ((pmt2.amount != quantityofEnterAssetID))
289291 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."))
290292 else if ((1 > quantityofLPToken1))
291293 then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
292294 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)]
293295 }
294296
295297
296298
297299 @Callable(i)
298300 func RemoveLiquidity (EnterAssetID) = {
299301 let calleraddress = toBase58String(i.caller.bytes)
300302 let pmt = if ((size(i.payments) == 1))
301303 then i.payments[0]
302304 else throw("No payment attached, Please Attach LP Token as payment[1].")
303305 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
304306 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
305307 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
306308 let decimals = decimalsinfo.decimals
307309 let bothassetsdecimals = (6 + decimals)
308310 let sharedecimals = (bothassetsdecimals / 2)
309311 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
310312 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
311313 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
312314 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
313315 let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
314316 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
315317 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
316318 case a: Int =>
317319 a
318320 case _ =>
319321 0
320322 }
321323 let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN)
322324 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
323325 case a: Int =>
324326 a
325327 case _ =>
326328 0
327329 }
328330 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
329331 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
330332 case a: Int =>
331333 a
332334 case _ =>
333335 0
334336 }
335337 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
336338 if ((checkpairisavailableornot != EnterAssetID))
337339 then throw("Pair is not available in Whitelist.")
338340 else if ((fromBase58String(EnterAssetID) == XTNAssetID))
339341 then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
340342 else if ((pmt.assetId != ReissueableassetId))
341343 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
342344 else if ((1 > UserLPPercentage))
343345 then throw("Your LP Token amount % is very low to convert.")
344346 else if ((1 > UserLPWorthXTN))
345347 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
346348 else if ((1 > UserLPWorthAsset))
347349 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
348350 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))]
349351 }
350352
351353
352354 @Verifier(tx)
353355 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
354356

github/deemru/w8io/169f3d6 
57.74 ms