tx · 9yHg7mVrAhuHGePxNYczqCJqC2z3fRGSQs7tcm28s6w3

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01600000 Waves

2023.09.19 15:28 [2762263] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "9yHg7mVrAhuHGePxNYczqCJqC2z3fRGSQs7tcm28s6w3", "fee": 1600000, "feeAssetId": null, "timestamp": 1695126587776, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "Kquw9XUo2WE149KJWj41dUHxa1EzgbYkJbwSybTw8xYQrfyWSgNjpzECyVgzWaCHRsgsJXSFbbCdPFZ7e17YV3s" ], "script": "base64:BgIlCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCAQADmRBcHBTaW5jZVN0YXJ0AICRjMKqMQALVVNEQ0Fzc2V0SUQBIERHMcoh3/bynCbIVv74Z6l9nvez8AyJBUgJkDUU6U3/ABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgcBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0RlZmluZWQBCA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GmhZaVx9bNGNa5yqv5EpQTaNnr6m22YkMGJc8V9rC9 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let dAppSinceStart = 1695040080000
5+
46 let USDCAssetID = base58'5bXgvADuVoFdhtF5uKZAEiVdAo7ZCWw151L4yyf1PiES'
57
68 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
9+
10+func countdays () = {
11+ let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
12+ let daynumber = fraction(1, TS_Diff, 86400000)
13+ daynumber
14+ }
15+
716
817 @Callable(i)
918 func RegisterPair (EnterAssetID) = {
2635 then throw("Input String & Attached AssetID in payment2 is not matching.")
2736 else if ((WAVES == true))
2837 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
29- 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), 0), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0)]
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), 0), 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)]
3039 }
3140
3241
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let dAppSinceStart = 1695040080000
5+
46 let USDCAssetID = base58'5bXgvADuVoFdhtF5uKZAEiVdAo7ZCWw151L4yyf1PiES'
57
68 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
9+
10+func countdays () = {
11+ let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
12+ let daynumber = fraction(1, TS_Diff, 86400000)
13+ daynumber
14+ }
15+
716
817 @Callable(i)
918 func RegisterPair (EnterAssetID) = {
1019 let pmt1 = value(i.payments[0])
1120 let pmt2 = value(i.payments[1])
1221 let currentKey = toBase58String(i.caller.bytes)
1322 let WAVES = !(isDefined(pmt2.assetId))
1423 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
1524 let assetinfopmt2 = fromBase58String(EnterAssetID)
1625 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
1726 if ((fetchpair == EnterAssetID))
1827 then throw("Pair Already Exist in List.")
1928 else if ((size(i.payments) != 2))
2029 then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.")
2130 else if (isDefined(pmt1.assetId))
2231 then throw("Incorrect asset attached for Collateral, please attach WAVES only.")
2332 else if ((pmt1.amount != 10000000))
2433 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."))
2534 else if ((pmt2.assetId != assetinfopmt2))
2635 then throw("Input String & Attached AssetID in payment2 is not matching.")
2736 else if ((WAVES == true))
2837 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
29- 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), 0), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0)]
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), 0), 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)]
3039 }
3140
3241
3342
3443 @Callable(i)
3544 func IssueLPToken (EnterAssetID) = {
3645 let adminrights = valueOrErrorMessage(getString(this, "LP_Admin_Rights"), "LP Admin Rights are Not Included into Smart Contract. Deploy Admin Rights First.")
3746 let calleraddress = toBase58String(i.caller.bytes)
3847 let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token")
3948 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
4049 let name = info.name
4150 let decimals = info.decimals
4251 let FirstLPQty = (1 * pow(10, 0, fraction((decimals + 6), 1, 2), 0, 0, CEILING))
4352 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)
4453 let LPid = calculateAssetId(LPissue)
4554 if ((adminrights != calleraddress))
4655 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
4756 else if ((checkpairisavailableornot != EnterAssetID))
4857 then throw("Pair is not available in List.")
4958 else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), FirstLPQty)]
5059 }
5160
5261
5362
5463 @Callable(i)
5564 func SwapAssetToUSDCPairEntry (EnterAssetID) = {
5665 let calleraddress = toBase58String(i.caller.bytes)
5766 let pmt = if ((size(i.payments) == 1))
5867 then i.payments[0]
5968 else throw("Whitelisted Token is required as Attached payment[1].")
6069 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
6170 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
6271 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
6372 let newbalanceofUSDC = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
6473 let quantityofpriceasset = (CheckUSDCBalance - newbalanceofUSDC)
6574 let SwapFee = 3
6675 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
6776 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
6877 let SumupofAssetToUSDCSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
6978 case a: Int =>
7079 a
7180 case _ =>
7281 0
7382 }
7483 let NewSumupofAssetToUSDCSwapFee = ((SumupofAssetToUSDCSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
7584 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
7685 case a: Int =>
7786 a
7887 case _ =>
7988 0
8089 }
8190 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
8291 let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
8392 case a: Int =>
8493 a
8594 case _ =>
8695 0
8796 }
8897 let NewSumupofUSDCBalance = ((CheckUSDCBalance - quantityofpriceasset) + SwapFeetoreceive)
8998 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
9099 case a: Int =>
91100 a
92101 case _ =>
93102 0
94103 }
95104 let NewTPT = (TOPT + 1)
96105 if ((EnterAssetID == toBase58String(USDCAssetID)))
97106 then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
98107 else if ((checkpairisavailableornot != EnterAssetID))
99108 then throw("Pair is not available in Whitelisted Asset.")
100109 else if ((pmt.assetId == USDCAssetID))
101110 then throw("You can't Attach USDC as an Attached Payment. Only Whitelisted Tokens are accepted.")
102111 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
103112 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
104113 else if ((CheckUSDCBalance == 0))
105114 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
106115 else if ((CheckAssetBalance == 0))
107116 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
108117 else if ((100000 > quantityofpriceasset))
109118 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
110119 else if ((quantityofpriceasset > CheckUSDCBalance))
111120 then throw((("Pool Only has a Liquidity of " + toString((CheckUSDCBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " USDC. Add Liquidity into Pool."))
112121 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)]
113122 }
114123
115124
116125
117126 @Callable(i)
118127 func SwapUSDCToAssetPairEntry (EnterAssetID) = {
119128 let calleraddress = toBase58String(i.caller.bytes)
120129 let pmt = if ((size(i.payments) == 1))
121130 then i.payments[0]
122131 else throw((("Only " + toBase58String(USDCAssetID)) + " USDC Token is required as an Attached payment[1]."))
123132 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
124133 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
125134 let newbalanceofAsset = fraction(CheckUSDCBalance, CheckAssetBalance, (CheckUSDCBalance + pmt.amount))
126135 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
127136 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
128137 let SwapFee = 3
129138 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
130139 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
131140 let SumupofUSDCToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
132141 case a: Int =>
133142 a
134143 case _ =>
135144 0
136145 }
137146 let NewSumupofUSDCToAssetSwapFee = ((SumupofUSDCToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
138147 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
139148 case a: Int =>
140149 a
141150 case _ =>
142151 0
143152 }
144153 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
145154 let SumupUSDCBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
146155 case a: Int =>
147156 a
148157 case _ =>
149158 0
150159 }
151160 let NewSumupofUSDCBalance = (CheckUSDCBalance + pmt.amount)
152161 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
153162 case a: Int =>
154163 a
155164 case _ =>
156165 0
157166 }
158167 let NewTPT = (TOPT + 1)
159168 if ((checkpairisavailableornot != EnterAssetID))
160169 then throw("Pair is not available in Whitelisted Asset.")
161170 else if ((EnterAssetID == toBase58String(USDCAssetID)))
162171 then throw("Input can Never be a USDC AssetID. Enter Whitelisted AssetID in input & Attach USDC as an attachment Token in payment[1].")
163172 else if ((pmt.assetId != USDCAssetID))
164173 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.")
165174 else if ((100000 > pmt.amount))
166175 then throw("Your Attached USDC Amount is very low. Attach Atleast 0.1 USDC to Claim the minimum Tokens.")
167176 else if ((CheckUSDCBalance == 0))
168177 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
169178 else if ((CheckAssetBalance == 0))
170179 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
171180 else if ((quantityofpriceasset > CheckAssetBalance))
172181 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
173182 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))]
174183 }
175184
176185
177186
178187 @Callable(i)
179188 func AddLiquidity (EnterAssetID) = {
180189 let calleraddress = toBase58String(i.caller.bytes)
181190 let pmt1 = value(i.payments[0])
182191 let pmt2 = value(i.payments[1])
183192 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
184193 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
185194 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
186195 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
187196 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
188197 let decimals = decimalsinfo.decimals
189198 let arg1 = CheckUSDCBalance
190199 let arg2 = CheckAssetBalance
191200 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
192201 let bothassetsdecimals = (6 + decimals)
193202 let sharedecimals = (bothassetsdecimals / 2)
194203 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
195204 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)
196205 let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
197206 case a: Int =>
198207 a
199208 case _ =>
200209 0
201210 }
202211 let NewUSDCHoldingInPair = (USDCHoldingInPair + pmt2.amount)
203212 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
204213 case a: Int =>
205214 a
206215 case _ =>
207216 0
208217 }
209218 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
210219 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
211220 case a: Int =>
212221 a
213222 case _ =>
214223 0
215224 }
216225 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
217226 if ((checkpairisavailableornot != EnterAssetID))
218227 then throw("Pair is not available in Whitelisted Asset.")
219228 else if ((EnterAssetID == toBase58String(USDCAssetID)))
220229 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].")
221230 else if ((size(i.payments) != 2))
222231 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.")
223232 else if ((pmt1.assetId == USDCAssetID))
224233 then throw("You Attached USDC asset in payment[1], please attach only whitelisted Token in payment[1] along with USDC in payment[2].")
225234 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
226235 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
227236 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
228237 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
229238 else if ((pmt2.assetId != USDCAssetID))
230239 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDC Token.")
231240 else if ((5000000 > pmt2.amount))
232241 then throw("please attach atleast 5 USDC in payment[2] & Equivalent worth of Token in payment[1]")
233242 else if ((pmt2.amount != quantityofEnterAssetID))
234243 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."))
235244 else if ((1 > quantityofLPToken1))
236245 then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 USDC Atleast."))
237246 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)]
238247 }
239248
240249
241250
242251 @Callable(i)
243252 func RemoveLiquidity (EnterAssetID) = {
244253 let calleraddress = toBase58String(i.caller.bytes)
245254 let pmt = if ((size(i.payments) == 1))
246255 then i.payments[0]
247256 else throw("No payment attached, Please Attach LP Token as payment[1].")
248257 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
249258 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
250259 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
251260 let decimals = decimalsinfo.decimals
252261 let bothassetsdecimals = (6 + decimals)
253262 let sharedecimals = (bothassetsdecimals / 2)
254263 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
255264 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
256265 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID)))
257266 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID))
258267 let UserLPWorthUSDC = fraction(CheckUSDCBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
259268 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
260269 let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDCAssetID))) {
261270 case a: Int =>
262271 a
263272 case _ =>
264273 0
265274 }
266275 let NewUSDCHoldingInPair = (USDCHoldingInPair - UserLPWorthUSDC)
267276 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDCAssetID)) + "_") + EnterAssetID)) {
268277 case a: Int =>
269278 a
270279 case _ =>
271280 0
272281 }
273282 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
274283 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
275284 case a: Int =>
276285 a
277286 case _ =>
278287 0
279288 }
280289 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
281290 if ((checkpairisavailableornot != EnterAssetID))
282291 then throw("Pair is not available in Whitelist.")
283292 else if ((fromBase58String(EnterAssetID) == USDCAssetID))
284293 then throw("Don't choose USDC AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
285294 else if ((pmt.assetId != ReissueableassetId))
286295 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
287296 else if ((1 > UserLPPercentage))
288297 then throw("Your LP Token amount % is very low to convert.")
289298 else if ((1 > UserLPWorthUSDC))
290299 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 USDC.")
291300 else if ((1 > UserLPWorthAsset))
292301 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
293302 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))]
294303 }
295304
296305
297306
298307 @Callable(i)
299308 func Del (Key) = [DeleteEntry(Key)]
300309
301310
302311 @Verifier(tx)
303312 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
304313

github/deemru/w8io/169f3d6 
51.42 ms