tx · DaS5wKrZR5RsUG4m6DSG5qD28BV9iBqpVtwcX4aZK9BH

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01700000 Waves

2023.09.19 16:33 [2762327] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "DaS5wKrZR5RsUG4m6DSG5qD28BV9iBqpVtwcX4aZK9BH", "fee": 1700000, "feeAssetId": null, "timestamp": 1695130336617, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "NNCH4EFAceGjZFRuEiA7ZqiwLYsxK5X4SrTTjJ5kEYEcmYYePwWQgEYYqVHxdbk1cQpMFKGGN8Dwm8HeHG2Ddmt" ], "script": "base64:BgIlCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCAQADmRBcHBTaW5jZVN0YXJ0AICRjMKqMQALVVNEQ0Fzc2V0SUQBIERHMcoh3/bynCbIVv74Z6l9nvez8AyJBUgJkDUU6U3/ABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgcBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0R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aXIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICCQCsAgICC0JhbGFuY2Vfb2ZfCQDYBAEFC1VTRENBc3NldElEAgFfBQxFbnRlckFzc2V0SUQFFU5ld0Fzc2V0SG9sZGluZ0luUGFpcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFD1VzZXJMUFdvcnRoVVNEQwULVVNEQ0Fzc2V0SUQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBRBVc2VyTFBXb3J0aEFzc2V0CQDZBAEFDEVudGVyQXNzZXRJRAUDbmlsAWkBA0RlbAEDS2V5CQDMCAIJAQtEZWxldGVFbnRyeQEFA0tleQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlefMy8NI=", "height": 2762327, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ETGmhZaVx9bNGNa5yqv5EpQTaNnr6m22YkMGJc8V9rC9 Next: 57ncCXwhqgcktkwvbhpwiSdjqbGovShFHd8rnwWYXzD Diff:
OldNewDifferences
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"))
26+ let name = info.name
27+ let decimals = info.decimals
28+ let LPdecimals = fraction((decimals + 6), 1, 2)
29+ 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)
31+ let LPid = calculateAssetId(LPissue)
2632 if ((fetchpair == EnterAssetID))
2733 then throw("Pair Already Exist in List.")
2834 else if ((size(i.payments) != 2))
3541 then throw("Input String & Attached AssetID in payment2 is not matching.")
3642 else if ((WAVES == true))
3743 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
38- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), 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)]
44+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), 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)]
3945 }
4046
4147
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppSinceStart = 1695040080000
55
66 let USDCAssetID = 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"))
26+ let name = info.name
27+ let decimals = info.decimals
28+ let LPdecimals = fraction((decimals + 6), 1, 2)
29+ 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)
31+ let LPid = calculateAssetId(LPissue)
2632 if ((fetchpair == EnterAssetID))
2733 then throw("Pair Already Exist in List.")
2834 else if ((size(i.payments) != 2))
2935 then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.")
3036 else if (isDefined(pmt1.assetId))
3137 then throw("Incorrect asset attached for Collateral, please attach WAVES only.")
3238 else if ((pmt1.amount != 10000000))
3339 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."))
3440 else if ((pmt2.assetId != assetinfopmt2))
3541 then throw("Input String & Attached AssetID in payment2 is not matching.")
3642 else if ((WAVES == true))
3743 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
38- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), 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)]
44+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), ScriptTransfer(CollectFeeAddress, pmt1.amount, unit), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), 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)]
3945 }
4046
4147
4248
4349 @Callable(i)
4450 func IssueLPToken (EnterAssetID) = {
4551 let adminrights = valueOrErrorMessage(getString(this, "LP_Admin_Rights"), "LP Admin Rights are Not Included into Smart Contract. Deploy Admin Rights First.")
4652 let calleraddress = toBase58String(i.caller.bytes)
4753 let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token")
4854 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
4955 let name = info.name
5056 let decimals = info.decimals
5157 let FirstLPQty = (1 * pow(10, 0, fraction((decimals + 6), 1, 2), 0, 0, CEILING))
5258 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)
5359 let LPid = calculateAssetId(LPissue)
5460 if ((adminrights != calleraddress))
5561 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
5662 else if ((checkpairisavailableornot != EnterAssetID))
5763 then throw("Pair is not available in List.")
5864 else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), FirstLPQty)]
5965 }
6066
6167
6268
6369 @Callable(i)
6470 func SwapAssetToUSDCPairEntry (EnterAssetID) = {
6571 let calleraddress = toBase58String(i.caller.bytes)
6672 let pmt = if ((size(i.payments) == 1))
6773 then i.payments[0]
6874 else throw("Whitelisted Token is required as Attached payment[1].")
6975 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
7076 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
7177 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
7278 let newbalanceofUSDC = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
7379 let quantityofpriceasset = (CheckUSDCBalance - newbalanceofUSDC)
7480 let SwapFee = 3
7581 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
7682 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
7783 let SumupofAssetToUSDCSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
7884 case a: Int =>
7985 a
8086 case _ =>
8187 0
8288 }
8389 let NewSumupofAssetToUSDCSwapFee = ((SumupofAssetToUSDCSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
8490 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
8591 case a: Int =>
8692 a
8793 case _ =>
8894 0
8995 }
9096 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
9197 let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
9298 case a: Int =>
9399 a
94100 case _ =>
95101 0
96102 }
97103 let NewSumupofUSDCBalance = ((CheckUSDCBalance - quantityofpriceasset) + SwapFeetoreceive)
98104 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
99105 case a: Int =>
100106 a
101107 case _ =>
102108 0
103109 }
104110 let NewTPT = (TOPT + 1)
105111 if ((EnterAssetID == toBase58String(USDCAssetID)))
106112 then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
107113 else if ((checkpairisavailableornot != EnterAssetID))
108114 then throw("Pair is not available in Whitelisted Asset.")
109115 else if ((pmt.assetId == USDCAssetID))
110116 then throw("You can't Attach USDC as an Attached Payment. Only Whitelisted Tokens are accepted.")
111117 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
112118 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
113119 else if ((CheckUSDCBalance == 0))
114120 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
115121 else if ((CheckAssetBalance == 0))
116122 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
117123 else if ((100000 > quantityofpriceasset))
118124 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
119125 else if ((quantityofpriceasset > CheckUSDCBalance))
120126 then throw((("Pool Only has a Liquidity of " + toString((CheckUSDCBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " USDC. Add Liquidity into Pool."))
121127 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)]
122128 }
123129
124130
125131
126132 @Callable(i)
127133 func SwapUSDCToAssetPairEntry (EnterAssetID) = {
128134 let calleraddress = toBase58String(i.caller.bytes)
129135 let pmt = if ((size(i.payments) == 1))
130136 then i.payments[0]
131137 else throw((("Only " + toBase58String(USDCAssetID)) + " USDC Token is required as an Attached payment[1]."))
132138 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
133139 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
134140 let newbalanceofAsset = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckUSDCBalance + pmt.amount))
135141 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
136142 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
137143 let SwapFee = 3
138144 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
139145 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
140146 let SumupofUSDCToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
141147 case a: Int =>
142148 a
143149 case _ =>
144150 0
145151 }
146152 let NewSumupofUSDCToAssetSwapFee = ((SumupofUSDCToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
147153 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
148154 case a: Int =>
149155 a
150156 case _ =>
151157 0
152158 }
153159 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
154160 let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
155161 case a: Int =>
156162 a
157163 case _ =>
158164 0
159165 }
160166 let NewSumupofUSDCBalance = (CheckUSDCBalance + pmt.amount)
161167 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
162168 case a: Int =>
163169 a
164170 case _ =>
165171 0
166172 }
167173 let NewTPT = (TOPT + 1)
168174 if ((checkpairisavailableornot != EnterAssetID))
169175 then throw("Pair is not available in Whitelisted Asset.")
170176 else if ((EnterAssetID == toBase58String(USDCAssetID)))
171177 then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach USDC as an attachment Token in payment[1].")
172178 else if ((pmt.assetId != USDCAssetID))
173179 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.")
174180 else if ((100000 > pmt.amount))
175181 then throw("Your Attached USDC Amount is very low. Attach Atleast 0.1 USDC to Claim the minimum Tokens.")
176182 else if ((CheckUSDCBalance == 0))
177183 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
178184 else if ((CheckAssetBalance == 0))
179185 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
180186 else if ((quantityofpriceasset > CheckAssetBalance))
181187 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
182188 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))]
183189 }
184190
185191
186192
187193 @Callable(i)
188194 func AddLiquidity (EnterAssetID) = {
189195 let calleraddress = toBase58String(i.caller.bytes)
190196 let pmt1 = value(i.payments[0])
191197 let pmt2 = value(i.payments[1])
192198 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
193199 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
194200 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
195201 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
196202 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
197203 let decimals = decimalsinfo.decimals
198204 let arg1 = CheckUSDCBalance
199205 let arg2 = CheckAssetBalance
200206 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
201207 let bothassetsdecimals = (6 + decimals)
202208 let sharedecimals = (bothassetsdecimals / 2)
203209 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
204210 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)
205211 let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
206212 case a: Int =>
207213 a
208214 case _ =>
209215 0
210216 }
211217 let NewUSDCHoldingInPair = (USDCHoldingInPair + pmt2.amount)
212218 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
213219 case a: Int =>
214220 a
215221 case _ =>
216222 0
217223 }
218224 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
219225 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
220226 case a: Int =>
221227 a
222228 case _ =>
223229 0
224230 }
225231 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
226232 if ((checkpairisavailableornot != EnterAssetID))
227233 then throw("Pair is not available in Whitelisted Asset.")
228234 else if ((EnterAssetID == toBase58String(USDCAssetID)))
229235 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].")
230236 else if ((size(i.payments) != 2))
231237 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.")
232238 else if ((pmt1.assetId == USDCAssetID))
233239 then throw("You Attached USDC asset in payment[1], please attach only whitelisted Token in payment[1] along with USDC in payment[2].")
234240 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
235241 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
236242 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
237243 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
238244 else if ((pmt2.assetId != USDCAssetID))
239245 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDC Token.")
240246 else if ((5000000 > pmt2.amount))
241247 then throw("please attach atleast 5 USDC in payment[2] & Equivalent worth of Token in payment[1]")
242248 else if ((pmt2.amount != quantityofEnterAssetID))
243249 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."))
244250 else if ((1 > quantityofLPToken1))
245251 then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 USDC Atleast."))
246252 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)]
247253 }
248254
249255
250256
251257 @Callable(i)
252258 func RemoveLiquidity (EnterAssetID) = {
253259 let calleraddress = toBase58String(i.caller.bytes)
254260 let pmt = if ((size(i.payments) == 1))
255261 then i.payments[0]
256262 else throw("No payment attached, Please Attach LP Token as payment[1].")
257263 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
258264 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
259265 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
260266 let decimals = decimalsinfo.decimals
261267 let bothassetsdecimals = (6 + decimals)
262268 let sharedecimals = (bothassetsdecimals / 2)
263269 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
264270 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
265271 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
266272 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
267273 let UserLPWorthUSDC = fraction(CheckUSDCBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
268274 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
269275 let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
270276 case a: Int =>
271277 a
272278 case _ =>
273279 0
274280 }
275281 let NewUSDCHoldingInPair = (USDCHoldingInPair - UserLPWorthUSDC)
276282 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
277283 case a: Int =>
278284 a
279285 case _ =>
280286 0
281287 }
282288 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
283289 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
284290 case a: Int =>
285291 a
286292 case _ =>
287293 0
288294 }
289295 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
290296 if ((checkpairisavailableornot != EnterAssetID))
291297 then throw("Pair is not available in Whitelist.")
292298 else if ((fromBase58String(EnterAssetID) == USDCAssetID))
293299 then throw("Don't choose USDC AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
294300 else if ((pmt.assetId != ReissueableassetId))
295301 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
296302 else if ((1 > UserLPPercentage))
297303 then throw("Your LP Token amount % is very low to convert.")
298304 else if ((1 > UserLPWorthUSDC))
299305 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 USDC.")
300306 else if ((1 > UserLPWorthAsset))
301307 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
302308 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))]
303309 }
304310
305311
306312
307313 @Callable(i)
308314 func Del (Key) = [DeleteEntry(Key)]
309315
310316
311317 @Verifier(tx)
312318 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
313319

github/deemru/w8io/169f3d6 
105.22 ms