tx · 8jkkhBCT75QsZnPRLMSMcDDWfARckh2jrzZv4nqeQNsQ

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.02000000 Waves

2023.09.24 19:27 [2769721] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "8jkkhBCT75QsZnPRLMSMcDDWfARckh2jrzZv4nqeQNsQ", "fee": 2000000, "feeAssetId": null, "timestamp": 1695572831706, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "5WAa4QfbZmq89xLEKY7X7A8S2mzmJ5eTa1yS2JgqTmXbWHNidmxwvrK5XDEkXuMdz7JLFZKzwdW1yKVKtYBx7BSH" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgIAAdWZXJzaW9uAgUxLjAuMAAOZEFwcFNpbmNlU3RhcnQAwPf3jKoxAAtsaXN0aW5nX2ZlZQCAnMmbBQAJa2V5MW93bmVyCQCnCAEBIC/MI9BPmHcpgjiz5B78lMslen9dOa5R2YaEtWjFpqZ7AAlrZXkyb3duZXIJAKcIAQEgL8wj0E+YdymCOLPkHvyUyyV6f105rlHZhoS1aMWmpnsACFRyZWFzdXJ5CQCnCAEBIM5I33N6c2d5KKDAZ8tN4OBxB27+QPlqeRoX3O6huCQBAApYVE5Bc3NldElEASAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgYBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdD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IJAKwCAgILQmFsYW5jZV9vZl8JANgEAQUKWFROQXNzZXRJRAIBXwUMRW50ZXJBc3NldElEBRVOZXdBc3NldEhvbGRpbmdJblBhaXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ5Vc2VyTFBXb3J0aFhUTgUKWFROQXNzZXRJRAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEFVzZXJMUFdvcnRoQXNzZXQJANkEAQUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5DWFloA==", "height": 2769721, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BynHE4CpjQXsdtS7eJXDirZmSjWonjdQGNSbR3yD1JNq Next: CbmjuMw8BKcPfHdc75ZMVKoVfDDo1ucsrzVm8KeB6uP3 Diff:
OldNewDifferences
269269 let unit_token_price = fraction(CheckXTNBalance, get_asset_decimals, CheckAssetBalance)
270270 let user_XTN_deposit_amount = fraction(pmt1.amount, unit_token_price, 1)
271271 let divide_by_asset_decimals = fraction(user_XTN_deposit_amount, 1, get_asset_decimals)
272- let divide_by_XTN_decimals = fraction(divide_by_asset_decimals, 1, get_XTN_decimals)
273- let actual_XTN_deposit_amount = divide_by_XTN_decimals
272+ let actual_XTN_deposit_amount = divide_by_asset_decimals
274273 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
275274 case a: Int =>
276275 a
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 = 1400000000
99
1010 let key1owner = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
1111
1212 let key2owner = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
1313
1414 let Treasury = addressFromPublicKey(base58'EtFSDsn89XfmXQvuQXPQMbLDbaAZ1YWYZHksptpQH4gp')
1515
1616 let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
1717
1818 func countdays () = {
1919 let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
2020 let daynumber = fraction(1, TS_Diff, 86400000)
2121 daynumber
2222 }
2323
2424
2525 @Callable(i)
2626 func RegisterPair (EnterAssetID) = {
2727 let pmt1 = value(i.payments[0])
2828 let pmt2 = value(i.payments[1])
2929 let pmt3 = value(i.payments[2])
3030 let currentKey = toBase58String(i.caller.bytes)
3131 let WAVES = !(isDefined(pmt2.assetId))
3232 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
3333 let assetinfopmt2 = fromBase58String(EnterAssetID)
3434 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
3535 let name = info.name
3636 let decimals = info.decimals
3737 let LPdecimals = fraction((decimals + 6), 1, 2)
3838 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
3939 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
4040 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
4141 let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
4242 let LPid = calculateAssetId(LPissue)
4343 if ((fetchpair == EnterAssetID))
4444 then throw("Pair Already Exist in List.")
4545 else if ((size(i.payments) != 3))
4646 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."))
4747 else if ((pmt1.assetId != XTNAssetID))
4848 then throw("Incorrect asset attached as payment[1], please attach XTN only.")
4949 else if ((100000 > pmt1.amount))
5050 then throw("Attached payment[1] amount is less than 0.1 XTN, please attach 0.1 XTN Minimum.")
5151 else if ((pmt2.assetId != assetinfopmt2))
5252 then throw("Input String & Attached AssetID in payment2 is not matching.")
5353 else if ((pmt3.amount != listing_fee))
5454 then throw((("Attached payment[3] amount has to be exact [" + toString(listing_fee)) + "/10^8] WAVES."))
5555 else if ((WAVES == true))
5656 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
5757 else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.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), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), ScriptTransfer(key1owner, fraction(listing_fee, 1, 2), unit), ScriptTransfer(key2owner, fraction(listing_fee, 1, 2), unit), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
5858 }
5959
6060
6161
6262 @Callable(i)
6363 func oldAddLiquidity (EnterAssetID) = {
6464 let calleraddress = toBase58String(i.caller.bytes)
6565 let pmt1 = value(i.payments[0])
6666 let pmt2 = value(i.payments[1])
6767 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
6868 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
6969 let CheckUSDCBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
7070 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
7171 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
7272 let decimals = decimalsinfo.decimals
7373 let arg1 = CheckUSDCBalance
7474 let arg2 = CheckAssetBalance
7575 let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
7676 let bothassetsdecimals = (6 + decimals)
7777 let sharedecimals = (bothassetsdecimals / 2)
7878 let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
7979 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)
8080 let USDCHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
8181 case a: Int =>
8282 a
8383 case _ =>
8484 0
8585 }
8686 let NewUSDCHoldingInPair = (USDCHoldingInPair + pmt2.amount)
8787 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
8888 case a: Int =>
8989 a
9090 case _ =>
9191 0
9292 }
9393 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
9494 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
9595 case a: Int =>
9696 a
9797 case _ =>
9898 0
9999 }
100100 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
101101 if ((checkpairisavailableornot != EnterAssetID))
102102 then throw("Pair is not available in Whitelisted Asset.")
103103 else if ((EnterAssetID == toBase58String(XTNAssetID)))
104104 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].")
105105 else if ((size(i.payments) != 2))
106106 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.")
107107 else if ((pmt1.assetId == XTNAssetID))
108108 then throw("You Attached USDC asset in payment[1], please attach only whitelisted Token in payment[1] along with USDC in payment[2].")
109109 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
110110 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
111111 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
112112 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
113113 else if ((pmt2.assetId != XTNAssetID))
114114 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDC Token.")
115115 else if ((5000000 > pmt2.amount))
116116 then throw("please attach atleast 5 USDC in payment[2] & Equivalent worth of Token in payment[1]")
117117 else if ((pmt2.amount != quantityofEnterAssetID))
118118 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."))
119119 else if ((1 > quantityofLPToken1))
120120 then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 USDC Atleast."))
121121 else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewUSDCHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
122122 }
123123
124124
125125
126126 @Callable(i)
127127 func SwapAssetToXTNPairEntry (EnterAssetID) = {
128128 let calleraddress = toBase58String(i.caller.bytes)
129129 let pmt = if ((size(i.payments) == 1))
130130 then i.payments[0]
131131 else throw("Whitelisted Token is required as Attached payment[1].")
132132 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
133133 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
134134 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
135135 let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
136136 let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
137137 let SwapFee = 5
138138 let Currentday = countdays()
139139 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
140140 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
141141 let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
142142 case a: Int =>
143143 a
144144 case _ =>
145145 0
146146 }
147147 let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
148148 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
149149 case a: Int =>
150150 a
151151 case _ =>
152152 0
153153 }
154154 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
155155 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
156156 case a: Int =>
157157 a
158158 case _ =>
159159 0
160160 }
161161 let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive)
162162 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
163163 case a: Int =>
164164 a
165165 case _ =>
166166 0
167167 }
168168 let NewTPT = (TOPT + 1)
169169 if ((EnterAssetID == toBase58String(XTNAssetID)))
170170 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
171171 else if ((checkpairisavailableornot != EnterAssetID))
172172 then throw("Pair is not available in Whitelisted Asset.")
173173 else if ((pmt.assetId == XTNAssetID))
174174 then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
175175 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
176176 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
177177 else if ((CheckXTNBalance == 0))
178178 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
179179 else if ((CheckAssetBalance == 0))
180180 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
181181 else if ((100000 > quantityofpriceasset))
182182 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
183183 else if ((quantityofpriceasset > CheckXTNBalance))
184184 then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
185185 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(key1owner, fraction(SwapFeetoreceive, 1, 3), XTNAssetID), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), XTNAssetID), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), XTNAssetID)]
186186 }
187187
188188
189189
190190 @Callable(i)
191191 func SwapXTNToAssetPairEntry (EnterAssetID) = {
192192 let calleraddress = toBase58String(i.caller.bytes)
193193 let pmt = if ((size(i.payments) == 1))
194194 then i.payments[0]
195195 else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1]."))
196196 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
197197 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
198198 let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
199199 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
200200 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
201201 let SwapFee = 5
202202 let Currentday = countdays()
203203 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
204204 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
205205 let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
206206 case a: Int =>
207207 a
208208 case _ =>
209209 0
210210 }
211211 let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
212212 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
213213 case a: Int =>
214214 a
215215 case _ =>
216216 0
217217 }
218218 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
219219 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
220220 case a: Int =>
221221 a
222222 case _ =>
223223 0
224224 }
225225 let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount)
226226 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
227227 case a: Int =>
228228 a
229229 case _ =>
230230 0
231231 }
232232 let NewTPT = (TOPT + 1)
233233 if ((checkpairisavailableornot != EnterAssetID))
234234 then throw("Pair is not available in Whitelisted Asset.")
235235 else if ((EnterAssetID == toBase58String(XTNAssetID)))
236236 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
237237 else if ((pmt.assetId != XTNAssetID))
238238 then throw((("You can Attach " + toBase58String(XTNAssetID)) + " as an Attached Payment[1] to Swap XTN To Required Token. Any other asset else than XTN will be rejected."))
239239 else if ((100000 > pmt.amount))
240240 then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
241241 else if ((CheckXTNBalance == 0))
242242 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
243243 else if ((CheckAssetBalance == 0))
244244 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
245245 else if ((quantityofpriceasset > CheckAssetBalance))
246246 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
247247 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(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
248248 }
249249
250250
251251
252252 @Callable(i)
253253 func AddLiquidity (EnterAssetID) = {
254254 let calleraddress = toBase58String(i.caller.bytes)
255255 let pmt1 = value(i.payments[0])
256256 let pmt2 = value(i.payments[1])
257257 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
258258 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
259259 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
260260 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
261261 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
262262 let decimals = decimalsinfo.decimals
263263 let LPdecimals = fraction((decimals + 6), 1, 2)
264264 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
265265 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
266266 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
267267 let get_asset_decimals = pow(10, 0, decimals, 0, 0, CEILING)
268268 let get_XTN_decimals = pow(10, 0, 6, 0, 0, CEILING)
269269 let unit_token_price = fraction(CheckXTNBalance, get_asset_decimals, CheckAssetBalance)
270270 let user_XTN_deposit_amount = fraction(pmt1.amount, unit_token_price, 1)
271271 let divide_by_asset_decimals = fraction(user_XTN_deposit_amount, 1, get_asset_decimals)
272- let divide_by_XTN_decimals = fraction(divide_by_asset_decimals, 1, get_XTN_decimals)
273- let actual_XTN_deposit_amount = divide_by_XTN_decimals
272+ let actual_XTN_deposit_amount = divide_by_asset_decimals
274273 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
275274 case a: Int =>
276275 a
277276 case _ =>
278277 0
279278 }
280279 let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
281280 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
282281 case a: Int =>
283282 a
284283 case _ =>
285284 0
286285 }
287286 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
288287 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
289288 case a: Int =>
290289 a
291290 case _ =>
292291 0
293292 }
294293 let NewLPTokenIssued = (LPTokenIssued + getSqrt)
295294 if ((checkpairisavailableornot != EnterAssetID))
296295 then throw("Pair is not available in Whitelisted Asset.")
297296 else if ((EnterAssetID == toBase58String(XTNAssetID)))
298297 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].")
299298 else if ((size(i.payments) != 2))
300299 then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.")
301300 else if ((pmt1.assetId == XTNAssetID))
302301 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
303302 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
304303 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
305304 else if ((pmt2.assetId != XTNAssetID))
306305 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
307306 else if ((100000 > pmt2.amount))
308307 then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]")
309308 else if ((1 > getSqrt))
310309 then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
311310 else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry("Token_Price", unit_token_price), IntegerEntry("User_XTN_Deposit_Amount", actual_XTN_deposit_amount), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)]
312311 }
313312
314313
315314
316315 @Callable(i)
317316 func RemoveLiquidity (EnterAssetID) = {
318317 let calleraddress = toBase58String(i.caller.bytes)
319318 let pmt = if ((size(i.payments) == 1))
320319 then i.payments[0]
321320 else throw("No payment attached, Please Attach LP Token as payment[1].")
322321 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
323322 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
324323 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
325324 let decimals = decimalsinfo.decimals
326325 let bothassetsdecimals = (6 + decimals)
327326 let sharedecimals = (bothassetsdecimals / 2)
328327 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
329328 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
330329 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
331330 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
332331 let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
333332 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
334333 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
335334 case a: Int =>
336335 a
337336 case _ =>
338337 0
339338 }
340339 let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN)
341340 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
342341 case a: Int =>
343342 a
344343 case _ =>
345344 0
346345 }
347346 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
348347 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
349348 case a: Int =>
350349 a
351350 case _ =>
352351 0
353352 }
354353 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
355354 if ((checkpairisavailableornot != EnterAssetID))
356355 then throw("Pair is not available in Whitelist.")
357356 else if ((fromBase58String(EnterAssetID) == XTNAssetID))
358357 then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
359358 else if ((pmt.assetId != ReissueableassetId))
360359 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
361360 else if ((1 > UserLPPercentage))
362361 then throw("Your LP Token amount % is very low to convert.")
363362 else if ((1 > UserLPWorthXTN))
364363 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
365364 else if ((1 > UserLPWorthAsset))
366365 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
367366 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))]
368367 }
369368
370369
371370 @Verifier(tx)
372371 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
373372

github/deemru/w8io/026f985 
66.32 ms