tx · 4mYQxoFyheCNfnmWQSS6MgTrn7Hw4e2WtnGiQHbfDm6U

3N543hU44PUZ7WRHcfMkAw5LqFswAAaVHgM:  -0.02000000 Waves

2023.09.30 16:40 [2778226] smart account 3N543hU44PUZ7WRHcfMkAw5LqFswAAaVHgM > SELF 0.00000000 Waves

{ "type": 13, "id": "4mYQxoFyheCNfnmWQSS6MgTrn7Hw4e2WtnGiQHbfDm6U", "fee": 2000000, "feeAssetId": null, "timestamp": 1696081287861, "version": 2, "chainId": 84, "sender": "3N543hU44PUZ7WRHcfMkAw5LqFswAAaVHgM", "senderPublicKey": "77iKzLEpg6rZvwvKZsPi7h1LBp9vgnDVRm44GdvNaVLQ", "proofs": [ "AaiEyJsxQ4xR6MC3vQUYgN44G1dWoAN59HjZfCrkdGFwKbwcpj3DuLQ2phoecgmqZ3Mosbwf5vH8vMXhMrNSp1Q" ], "script": "base64:BgIbCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEICQAHVmVyc2lvbgIFMS4wLjAADmRBcHBTaW5jZVN0YXJ0AMD394yqMQALbGlzdGluZ19mZWUAgL/WBgAJa2V5MW93bmVyCQCnCAEBIC/MI9BPmHcpgjiz5B78lMslen9dOa5R2YaEtWjFpqZ7AAlrZXkyb3duZXIJAKcIAQEgg5XQHCRf0R38aPOY+n+4hhhB0YUiROU26xolJsRPOToACFRyZWFzdXJ5CQCnCAEBIM5I33N6c2d5KKDAZ8tN4OBxB27+QPlqeRoX3O6huCQBAAxXQVZFU0Fzc2V0SUQFBHVuaXQADldBVkVTQXNzZXROQU1FAgVXQVZFUwEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgUBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcG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U2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEFVzZXJMUFdvcnRoQXNzZXQJANkEAQUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CtE99A==", "height": 2778226, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7jvSbJ95dLADXPhnCFNureUdrgQpHZTAG1Po5ULHXDP Next: HcoCtNQCjDJMa2GPCHa5UQZzKRgbBbHpwt3kF2xXPtjv Diff:
OldNewDifferences
191191 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
192192 else if ((quantityofpriceasset > CheckAssetBalance))
193193 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
194- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
194+ else if ((0 > SwapFeetoreceive))
195+ then throw("Pool Swap Fee is going into Negative State due to Price/Less Liquidity Please Add Some liquidity into Pool.")
196+ else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
195197 }
196198
197199
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let Version = "1.0.0"
55
66 let dAppSinceStart = 1694928600000
77
88 let listing_fee = 14000000
99
1010 let key1owner = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
1111
1212 let key2owner = addressFromPublicKey(base58'9reuR7oatpieAycZqM1CMtmp15c9r3WPhF5ENMNepNcH')
1313
1414 let Treasury = addressFromPublicKey(base58'EtFSDsn89XfmXQvuQXPQMbLDbaAZ1YWYZHksptpQH4gp')
1515
1616 let WAVESAssetID = unit
1717
1818 let WAVESAssetNAME = "WAVES"
1919
2020 func countdays () = {
2121 let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
2222 let daynumber = fraction(1, TS_Diff, 86400000)
2323 daynumber
2424 }
2525
2626
2727 @Callable(i)
2828 func RegisterPair (EnterAssetID) = {
2929 let pmt1 = value(i.payments[0])
3030 let pmt2 = value(i.payments[1])
3131 let pmt3 = value(i.payments[2])
3232 let currentKey = toBase58String(i.caller.bytes)
3333 let WAVES = !(isDefined(pmt2.assetId))
3434 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
3535 let assetinfopmt2 = fromBase58String(EnterAssetID)
3636 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
3737 let name = info.name
3838 let decimals = info.decimals
3939 let get_asset_decimals = pow(10, 0, decimals, 0, 0, CEILING)
4040 let get_WAVES_decimals = pow(10, 0, 8, 0, 0, CEILING)
4141 let unit_token_price = fraction(pmt1.amount, get_asset_decimals, pmt2.amount)
4242 let LPdecimals = fraction((decimals + 8), 1, 2)
4343 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
4444 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
4545 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
4646 let LPissue = Issue((("LP-" + take(name, 7)) + "-WAVES"), (((("LP-" + name) + "-WAVES") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
4747 let LPid = calculateAssetId(LPissue)
4848 if ((fetchpair == EnterAssetID))
4949 then throw("Pair Already Exist in List.")
5050 else if ((size(i.payments) != 3))
5151 then throw((("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token Amount & payment2 = Token you want to List & payment3 = [" + toString(listing_fee)) + "/10^8] Waves as Listing Fee."))
5252 else if (isDefined(pmt1.assetId))
5353 then throw("Incorrect asset attached as payment[1], please attach WAVES only.")
5454 else if ((10000000 > pmt1.amount))
5555 then throw("Attached payment[1] amount is less than 0.1 WAVES, please attach 0.1 WAVES Minimum.")
5656 else if ((pmt2.assetId != assetinfopmt2))
5757 then throw("Input String & Attached AssetID in payment2 is not matching.")
5858 else if ((pmt3.amount != listing_fee))
5959 then throw((("Attached payment[3] amount has to be exact [" + toString(listing_fee)) + "/10^8] WAVES."))
6060 else if ((WAVES == true))
6161 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
6262 else if ((100 > unit_token_price))
6363 then throw("LP Token Outcome is going below 100 in Fractional. Please Attach more tokens amount in payment[1] and payment[2].")
6464 else if ((1 > getSqrt))
6565 then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount in payment[1] and payment[2].")
6666 else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.amount), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), pmt1.amount), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + WAVESAssetNAME), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), ScriptTransfer(key1owner, fraction(listing_fee, 1, 2), WAVESAssetID), ScriptTransfer(key2owner, fraction(listing_fee, 1, 2), WAVESAssetID), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
6767 }
6868
6969
7070
7171 @Callable(i)
7272 func SwapAssetToWAVESPairEntry (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 CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME))
7979 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID))
8080 let newbalanceofWAVES = fraction(CheckWAVESBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
8181 let quantityofpriceasset = (CheckWAVESBalance - newbalanceofWAVES)
8282 let SwapFee = 5
8383 let Currentday = countdays()
8484 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
8585 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
8686 let SumupofAssetToWAVESSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + WAVESAssetNAME)) {
8787 case a: Int =>
8888 a
8989 case _ =>
9090 0
9191 }
9292 let NewSumupofAssetToWAVESSwapFee = ((SumupofAssetToWAVESSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
9393 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) {
9494 case a: Int =>
9595 a
9696 case _ =>
9797 0
9898 }
9999 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
100100 let SumupWAVESBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) {
101101 case a: Int =>
102102 a
103103 case _ =>
104104 0
105105 }
106106 let NewSumupofWAVESBalance = ((CheckWAVESBalance - 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 if ((EnterAssetID == WAVESAssetNAME))
115115 then throw("Input can Never be a WAVES AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
116116 else if ((checkpairisavailableornot != EnterAssetID))
117117 then throw("Pair is not available in Whitelisted Asset.")
118118 else if ((pmt.assetId == WAVESAssetID))
119119 then throw("You can't Attach WAVES as an Attached Payment. Only Whitelisted Tokens are accepted.")
120120 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
121121 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
122122 else if ((CheckWAVESBalance == 0))
123123 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
124124 else if ((CheckAssetBalance == 0))
125125 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
126126 else if ((10000000 > quantityofpriceasset))
127127 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
128128 else if ((quantityofpriceasset > CheckWAVESBalance))
129129 then throw((("Pool Only has a Liquidity of " + toString((CheckWAVESBalance / pow(10, 0, 8, 0, 0, CEILING)))) + " WAVES. Add Liquidity into Pool."))
130130 else if ((0 > SwapFeetoreceive))
131131 then throw("Pool Swap Fee is going into Negative State due to Price/Less Liquidity Please Add Some liquidity into Pool.")
132132 else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofAssetToWAVESSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, WAVESAssetID), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), WAVESAssetID), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), WAVESAssetID), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), WAVESAssetID)]
133133 }
134134
135135
136136
137137 @Callable(i)
138138 func SwapWAVESToAssetPairEntry (EnterAssetID) = {
139139 let calleraddress = toBase58String(i.caller.bytes)
140140 let pmt = if ((size(i.payments) == 1))
141141 then i.payments[0]
142142 else throw((("Only " + WAVESAssetNAME) + " Token is required as an Attached payment[1]."))
143143 let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME))
144144 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID))
145145 let newbalanceofAsset = fraction(CheckWAVESBalance, CheckAssetBalance, (CheckWAVESBalance + pmt.amount))
146146 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
147147 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
148148 let SwapFee = 5
149149 let Currentday = countdays()
150150 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
151151 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
152152 let SumupofWAVESToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
153153 case a: Int =>
154154 a
155155 case _ =>
156156 0
157157 }
158158 let NewSumupofWAVESToAssetSwapFee = ((SumupofWAVESToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
159159 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) {
160160 case a: Int =>
161161 a
162162 case _ =>
163163 0
164164 }
165165 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
166166 let SumupWAVESBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) {
167167 case a: Int =>
168168 a
169169 case _ =>
170170 0
171171 }
172172 let NewSumupofWAVESBalance = (CheckWAVESBalance + pmt.amount)
173173 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
174174 case a: Int =>
175175 a
176176 case _ =>
177177 0
178178 }
179179 let NewTPT = (TOPT + 1)
180180 if ((checkpairisavailableornot != EnterAssetID))
181181 then throw("Pair is not available in Whitelisted Asset.")
182182 else if ((EnterAssetID == WAVESAssetNAME))
183183 then throw("Input can Never be a WAVES AssetID. Enter Whitelisted AssetID in input & Attach WAVES as an attachment Token in payment[1].")
184184 else if ((pmt.assetId != WAVESAssetID))
185185 then throw((("You can Attach " + WAVESAssetNAME) + " as an Attached Payment[1] to Swap WAVES To Required Token. Any other asset else than WAVES will be rejected."))
186186 else if ((10000000 > pmt.amount))
187187 then throw("Your Attached WAVES Amount is very low. Attach Atleast 0.1 WAVES to Claim the minimum Tokens.")
188188 else if ((CheckWAVESBalance == 0))
189189 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
190190 else if ((CheckAssetBalance == 0))
191191 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
192192 else if ((quantityofpriceasset > CheckAssetBalance))
193193 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
194- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
194+ else if ((0 > SwapFeetoreceive))
195+ then throw("Pool Swap Fee is going into Negative State due to Price/Less Liquidity Please Add Some liquidity into Pool.")
196+ else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofWAVESToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewSumupofWAVESBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
195197 }
196198
197199
198200
199201 @Callable(i)
200202 func AddLiquidity (EnterAssetID) = {
201203 let calleraddress = toBase58String(i.caller.bytes)
202204 let pmt1 = value(i.payments[0])
203205 let pmt2 = value(i.payments[1])
204206 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
205207 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
206208 let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME))
207209 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID))
208210 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
209211 let decimals = decimalsinfo.decimals
210212 let LPdecimals = fraction((decimals + 8), 1, 2)
211213 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
212214 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
213215 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
214216 let get_asset_decimals = pow(10, 0, decimals, 0, 0, CEILING)
215217 let get_WAVES_decimals = pow(10, 0, 8, 0, 0, CEILING)
216218 let unit_token_price = fraction(CheckWAVESBalance, get_asset_decimals, CheckAssetBalance)
217219 let user_WAVES_deposit_amount = fraction(pmt1.amount, unit_token_price, 1)
218220 let divide_by_asset_decimals = fraction(user_WAVES_deposit_amount, 1, get_asset_decimals)
219221 let actual_WAVES_deposit_amount = divide_by_asset_decimals
220222 let WAVESHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) {
221223 case a: Int =>
222224 a
223225 case _ =>
224226 0
225227 }
226228 let NewWAVESHoldingInPair = (WAVESHoldingInPair + pmt2.amount)
227229 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) {
228230 case a: Int =>
229231 a
230232 case _ =>
231233 0
232234 }
233235 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
234236 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
235237 case a: Int =>
236238 a
237239 case _ =>
238240 0
239241 }
240242 let NewLPTokenIssued = (LPTokenIssued + getSqrt)
241243 if ((checkpairisavailableornot != EnterAssetID))
242244 then throw("Pair is not available in Whitelisted Asset.")
243245 else if ((EnterAssetID == WAVESAssetNAME))
244246 then throw("Input can Never be a WAVES AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach WAVES as an attachment Token in payment[2].")
245247 else if ((size(i.payments) != 2))
246248 then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of WAVES Token.")
247249 else if ((pmt1.assetId == WAVESAssetID))
248250 then throw("You Attached WAVES asset in payment[1], please attach only whitelisted Token in payment[1] along with WAVES in payment[2].")
249251 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
250252 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
251253 else if ((pmt2.assetId != WAVESAssetID))
252254 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = WAVES Token.")
253255 else if ((10000000 > pmt2.amount))
254256 then throw("please attach atleast 0.1 WAVES in payment[2] & Equivalent worth of Token in payment[1]")
255257 else if ((pmt2.amount != actual_WAVES_deposit_amount))
256258 then throw((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(actual_WAVES_deposit_amount)) + "]/10^8 WAVES."))
257259 else if ((1 > unit_token_price))
258260 then throw("Token Price Outcome is going below 1 in Fractional.")
259261 else if ((1 > getSqrt))
260262 then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
261263 else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewWAVESHoldingInPair), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry("Token_Price", unit_token_price), IntegerEntry("User_WAVES_Deposit_Amount", actual_WAVES_deposit_amount), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)]
262264 }
263265
264266
265267
266268 @Callable(i)
267269 func RemoveLiquidity (EnterAssetID) = {
268270 let calleraddress = toBase58String(i.caller.bytes)
269271 let pmt = if ((size(i.payments) == 1))
270272 then i.payments[0]
271273 else throw("No payment attached, Please Attach LP Token as payment[1].")
272274 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
273275 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
274276 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
275277 let decimals = decimalsinfo.decimals
276278 let bothassetsdecimals = (8 + decimals)
277279 let sharedecimals = (bothassetsdecimals / 2)
278280 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
279281 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
280282 let CheckWAVESBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME))
281283 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID))
282284 let UserLPWorthWAVES = fraction(CheckWAVESBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
283285 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
284286 let WAVESHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME)) {
285287 case a: Int =>
286288 a
287289 case _ =>
288290 0
289291 }
290292 let NewWAVESHoldingInPair = (WAVESHoldingInPair - UserLPWorthWAVES)
291293 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID)) {
292294 case a: Int =>
293295 a
294296 case _ =>
295297 0
296298 }
297299 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
298300 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
299301 case a: Int =>
300302 a
301303 case _ =>
302304 0
303305 }
304306 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
305307 if ((checkpairisavailableornot != EnterAssetID))
306308 then throw("Pair is not available in Whitelist.")
307309 else if ((EnterAssetID == WAVESAssetNAME))
308310 then throw("Don't choose WAVES AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
309311 else if ((pmt.assetId != ReissueableassetId))
310312 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
311313 else if ((1 > UserLPPercentage))
312314 then throw("Your LP Token amount % is very low to convert.")
313315 else if ((1 > UserLPWorthWAVES))
314316 then throw("Your LP Token conversion amount is very low to convert or less than 0.00000001 WAVES.")
315317 else if ((1 > UserLPWorthAsset))
316318 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
317319 else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + WAVESAssetNAME), NewWAVESHoldingInPair), IntegerEntry(((("Balance_of_" + WAVESAssetNAME) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthWAVES, WAVESAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))]
318320 }
319321
320322
321323 @Verifier(tx)
322324 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
323325

github/deemru/w8io/169f3d6 
49.80 ms