tx · 46K1AkkPDqbzfm13R5x7PVNvAULx6Gd1HFi7cFLgK9gm

3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU:  -0.03300000 Waves

2022.07.18 09:22 [2144824] smart account 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU > SELF 0.00000000 Waves

{ "type": 13, "id": "46K1AkkPDqbzfm13R5x7PVNvAULx6Gd1HFi7cFLgK9gm", "fee": 3300000, "feeAssetId": null, "timestamp": 1658125386064, "version": 2, "chainId": 84, "sender": "3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU", "senderPublicKey": "GDio3pYFUMSWQ3yen7TJP79nTPaGuPbxjKixvKLuYS8E", "proofs": [ "4GpEBrCymfhpswsoWyVp7LtkjE5bhHGRky8kGQTveZVAyhGQECdxrD711SdQU3oBNV9mnVpgjaY4ETQhKdGTY4Ax" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAA0QxMAAAAAACVAvkAAEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJAAQlAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEF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lzIHJlcXVpcmVkIGZvciB0aGUgc3dhcCBmZWUuCQAAAgAAAAECAAAAEkludmFsaWQgcmF0ZSBhc3NldAkAAAIAAAABAgAAABFJbnZhbGlkIFN3YXAgS2V5LgkAAAIAAAABAgAAABlJbnZhbGlkIEFzc2V0MSBvciBBc3NldDIhCQAAAgAAAAECAAAAIEFzc2V0MSBjYW5ub3QgYmUgZXF1YWwgdG8gQXNzZXQyCQAAAgAAAAECAAAAJFN3YXAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgkAAAIAAAABAgAAACRkQXBwIGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJ0dAAAAAlyZWNpcGllbnQJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVhZG1pbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkYdh1X", "height": 2144824, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5bE1e6pyCcV6qwajQQFVHDqbxS6JoeJfTijoJXN6QqD3 Next: F69zHJ8A6ZS8k537SCHkntXRCbhCfEEReF4eiwN68qp6 Diff:
OldNewDifferences
109109
110110
111111 func pkey (Asset1,Asset2,address) = (((deposit_height + kp(Asset1, Asset2)) + "_") + address)
112-
113-
114-func worid (asset) = match asset {
115- case t: ByteVector =>
116- value(assetInfo(t)).decimals
117- case _ =>
118- 8
119-}
120112
121113
122114 func lpBlocked (address,key) = match getInteger(this, ((("STAKE_LP_" + address) + "_") + key)) {
476468 let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2)
477469 let asset1pool = assetP(kp(Asset1, Asset2), Asset1)
478470 let asset2pool = assetP(kp(Asset1, Asset2), Asset2)
479- let detailsa2 = worid(i.payments[1].assetId)
480- let df = if ((detailsa2 == 8))
481- then 0
482- else 2
483471 let receiveLp = if ((totalAsset1Pool == i.payments[0].amount))
484472 then (1 * D8)
485- else ((i.payments[0].amount + i.payments[1].amount) / ((totalAsset1Pool + totalAsset2Pool) / (totalLp - df)))
486- let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount)
487- let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount)
488- let newcurrentAmount = (currentAmount + receiveLp)
489- let newasset1pool = (asset1pool + i.payments[0].amount)
490- let newasset2pool = (asset2pool + i.payments[1].amount)
491-[Reissue(fromBase58String(lpAssetId), receiveLp, true), ScriptTransfer(Address(i.caller.bytes), receiveLp, fromBase58String(lpAssetId)), IntegerEntry(pkey(Asset1, Asset2, currentKey), height), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset1), newcurrentAmountAsset1), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset2), newcurrentAmountAsset2), IntegerEntry(((kp(Asset1, Asset2) + "_") + currentKey), newcurrentAmount), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset1), newasset1pool), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), newasset2pool), IntegerEntry(Asset1, (getAmountBlockAsset(Asset1) + i.payments[0].amount)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) + i.payments[1].amount)), IntegerEntry(lpAssetId, (getAmountBlockAsset(lpAssetId) + receiveLp))]
473+ else toInt(((((toBigInt(i.payments[0].amount) * toBigInt(D8)) + (toBigInt(i.payments[1].amount) * toBigInt(D8))) / (((toBigInt(totalAsset1Pool) * toBigInt(D8)) + (toBigInt(totalAsset2Pool) * toBigInt(D8))) / (toBigInt(totalLp) * toBigInt(D8)))) / toBigInt(D8)))
474+[throw(("details lp" + toString(receiveLp)))]
492475 }
493476 else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((i.payments[0].amount * (totalAsset2Pool / totalAsset1Pool)))) + "} Received: ") + toString(i.payments[1].amount)) + " Validate: ") + toString(Validate)))
494477 else throw("Invalid Pool Key.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let main = "main_asset"
55
66 let l = "lp_asset_"
77
88 let aa1 = "pool__"
99
1010 let sa = "STAKING_AMOUNT_"
1111
1212 let la = "LEASE_AMOUNT_"
1313
1414 let ix = "ID_"
1515
1616 let rateFee = "percentage_rate_fee"
1717
1818 let deposit_height = "Deposit_Height_Of_"
1919
2020 let D8 = 100000000
2121
2222 let D6 = 1000000
2323
2424 let D10 = 10000000000
2525
2626 func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse " + address) + " as address")))
2727
2828
2929 func getAssetIfValid (assetId) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(assetId))).id, (("Asset Id: " + assetId) + " is invalid.")))
3030
3131
3232 func getAmountBlockAsset (assetId) = match getInteger(this, assetId) {
3333 case i: Int =>
3434 i
3535 case _ =>
3636 0
3737 }
3838
3939
4040 func getAssetName (assetId) = match assetInfo(assetId) {
4141 case asset: Asset =>
4242 asset.name
4343 case _ =>
4444 throw("Can't find asset")
4545 }
4646
4747
4848 let ac = "activate"
4949
5050 let poolAc = "activate_pools"
5151
5252 let swapAc = "activate_swap"
5353
5454 let liquidityAc = "activate_liquidity"
5555
5656 let bcD = "block_distribuition"
5757
5858 let total_locked = "Total_Tokens_Locked_"
5959
6060 let usdn = "usdn_asset"
6161
6262 let usdt = "usdt_asset"
6363
6464 let usdc = "usdc_asset"
6565
6666 let ngnn = "ngnn_asset"
6767
6868 let eurn = "eurn_asset"
6969
7070 let waves = "WAVES"
7171
7272 let aWaves = "accept_waves"
7373
7474 let WAVES = unit
7575
7676 func kp (asset1,asset2) = (((aa1 + asset1) + "_") + asset2)
7777
7878
7979 func validPoolK (key) = match getInteger(this, key) {
8080 case i: Int =>
8181 i
8282 case _ =>
8383 false
8484 }
8585
8686
8787 func kpAddress (address,key) = match getInteger(this, ((key + "_") + address)) {
8888 case t: Int =>
8989 t
9090 case _ =>
9191 0
9292 }
9393
9494
9595 func poolAA (address,key,asset) = match getInteger(this, ((((address + "_") + key) + "_") + asset)) {
9696 case a: Int =>
9797 a
9898 case _ =>
9999 0
100100 }
101101
102102
103103 func assetP (key,asset) = match getInteger(this, ((key + "_") + asset)) {
104104 case a: Int =>
105105 a
106106 case _ =>
107107 1
108108 }
109109
110110
111111 func pkey (Asset1,Asset2,address) = (((deposit_height + kp(Asset1, Asset2)) + "_") + address)
112-
113-
114-func worid (asset) = match asset {
115- case t: ByteVector =>
116- value(assetInfo(t)).decimals
117- case _ =>
118- 8
119-}
120112
121113
122114 func lpBlocked (address,key) = match getInteger(this, ((("STAKE_LP_" + address) + "_") + key)) {
123115 case a: Int =>
124116 a
125117 case _ =>
126118 0
127119 }
128120
129121
130122 func adminVerification () = match getString(this, "admin") {
131123 case t: String =>
132124 Address(fromBase58String(t))
133125 case _ =>
134126 this
135127 }
136128
137129
138130 func validateAsset (assetS,stringAsset,acWaves) = if (if ((assetS == WAVES))
139131 then (stringAsset == "WAVES")
140132 else false)
141133 then if (acWaves)
142134 then true
143135 else throw("The smart contract does not currently support Waves.")
144136 else if ((assetS == fromBase58String(stringAsset)))
145137 then true
146138 else false
147139
148140
149141 func totalAssetPool (key,assetLp) = match getInteger(this, key) {
150142 case a: Int =>
151143 a
152144 case _ =>
153145 if (assetLp)
154146 then (1 * D8)
155147 else 1
156148 }
157149
158150
159151 @Callable(i)
160152 func constructor (MainAssetId,UsdnAssetId,UsdtAssetId,UsdcAssetId,NgnnAssetId,EurnAssetId,percentageRateSwap,blockDistribution,acceptWaves) = {
161153 let keyPoolUsdtWaves = kp(UsdtAssetId, waves)
162154 if (if ((i.caller == this))
163155 then true
164156 else (i.caller == adminVerification()))
165157 then if ((valueOrElse(getInteger(this, keyPoolUsdtWaves), 0) == 0))
166158 then {
167159 let keyPoolUsdnUsdt = kp(UsdnAssetId, UsdtAssetId)
168160 let keyPoolUsdnUsdc = kp(UsdnAssetId, UsdcAssetId)
169161 let keyPoolUsdnNgnn = kp(UsdnAssetId, NgnnAssetId)
170162 let keyPoolUsdnWaves = kp(UsdnAssetId, waves)
171163 let keyPoolUsdnMainAsset = kp(UsdnAssetId, MainAssetId)
172164 let keyPoolUsdnEurn = kp(UsdnAssetId, EurnAssetId)
173165 let keyPoolUsdcUsdt = kp(UsdcAssetId, UsdtAssetId)
174166 let keyPoolUsdcNgnn = kp(UsdcAssetId, NgnnAssetId)
175167 let keyPoolUsdcWaves = kp(UsdcAssetId, waves)
176168 let keyPoolUsdcMainAsset = kp(UsdcAssetId, MainAssetId)
177169 let keyPoolUsdcEurn = kp(UsdcAssetId, EurnAssetId)
178170 let keyPoolUsdtNgnn = kp(UsdtAssetId, NgnnAssetId)
179171 let keyPoolUsdtMainAsset = kp(UsdtAssetId, MainAssetId)
180172 let keyPoolUsdtEurn = kp(UsdtAssetId, EurnAssetId)
181173 let keyPoolNgnnWaves = kp(NgnnAssetId, waves)
182174 let keyPoolNgnnMainAsset = kp(NgnnAssetId, MainAssetId)
183175 let keyPoolNgnnEurn = kp(NgnnAssetId, EurnAssetId)
184176 let keyPoolMainWaves = kp(MainAssetId, waves)
185177 let keyPoolMainEurn = kp(MainAssetId, EurnAssetId)
186178 let keyPoolEurnWaves = kp(EurnAssetId, waves)
187179 [StringEntry(main, MainAssetId), StringEntry(usdn, UsdnAssetId), StringEntry(usdc, UsdcAssetId), StringEntry(usdt, UsdtAssetId), StringEntry(ngnn, NgnnAssetId), BooleanEntry(aWaves, acceptWaves), IntegerEntry(rateFee, percentageRateSwap), BooleanEntry(ac, true), BooleanEntry(swapAc, false), BooleanEntry(poolAc, false), BooleanEntry(liquidityAc, false), IntegerEntry(bcD, blockDistribution), IntegerEntry(keyPoolUsdnUsdt, 1), IntegerEntry(keyPoolUsdnWaves, 1), IntegerEntry(keyPoolUsdnUsdc, 1), IntegerEntry(keyPoolUsdnNgnn, 1), IntegerEntry(keyPoolUsdnMainAsset, 1), IntegerEntry(keyPoolUsdcUsdt, 1), IntegerEntry(keyPoolUsdcNgnn, 1), IntegerEntry(keyPoolUsdcWaves, 1), IntegerEntry(keyPoolUsdtMainAsset, 1), IntegerEntry(keyPoolUsdtNgnn, 1), IntegerEntry(keyPoolUsdtWaves, 1), IntegerEntry(keyPoolNgnnWaves, 1), IntegerEntry(keyPoolNgnnMainAsset, 1), IntegerEntry(keyPoolMainWaves, 1), IntegerEntry(keyPoolEurnWaves, 1), IntegerEntry(keyPoolMainEurn, 1), IntegerEntry(keyPoolNgnnEurn, 1), IntegerEntry(keyPoolUsdcEurn, 1), IntegerEntry(keyPoolUsdnEurn, 1), IntegerEntry(keyPoolUsdtEurn, 1), IntegerEntry(keyPoolUsdcMainAsset, 1), StringEntry(eurn, EurnAssetId)]
188180 }
189181 else throw("Smart Contract has been started")
190182 else throw("Only the Admin itself can invoke this function")
191183 }
192184
193185
194186
195187 @Callable(i)
196188 func activate (v) = if (if ((i.caller == this))
197189 then true
198190 else (i.caller == adminVerification()))
199191 then [BooleanEntry(ac, v)]
200192 else throw("Only the Admin itself can invoke this function")
201193
202194
203195
204196 @Callable(i)
205197 func maintenance (pools,swap,stake) = if (if ((i.caller == this))
206198 then true
207199 else (i.caller == adminVerification()))
208200 then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake)]
209201 else throw("Only the Admin itself can invoke this function")
210202
211203
212204
213205 @Callable(i)
214206 func percentualRateFeeSwapEdit (rate) = if (if ((i.caller == this))
215207 then true
216208 else (i.caller == adminVerification()))
217209 then [IntegerEntry(rateFee, rate)]
218210 else throw("Only the Admin itself can invoke this function")
219211
220212
221213
222214 @Callable(i)
223215 func acceptWaves (activate) = if (if ((i.caller == this))
224216 then true
225217 else (i.caller == adminVerification()))
226218 then [BooleanEntry(aWaves, activate)]
227219 else throw("Only the Admin itself can invoke this function")
228220
229221
230222
231223 @Callable(i)
232224 func blockDistribution (newValue) = if (if ((i.caller == this))
233225 then true
234226 else (i.caller == adminVerification()))
235227 then [IntegerEntry(bcD, newValue)]
236228 else throw("Only the Admin itself can invoke this function")
237229
238230
239231
240232 @Callable(i)
241233 func addAdmin (address) = if (if ((i.caller == this))
242234 then true
243235 else (i.caller == adminVerification()))
244236 then [StringEntry("admin", address)]
245237 else throw("Only the Admin itself can invoke this function")
246238
247239
248240
249241 @Callable(i)
250242 func lpAssetCreateForPairPool (asset1,asset2,Name,customName) = {
251243 let nameAsset1 = if ((asset1 == waves))
252244 then waves
253245 else getAssetName(fromBase58String(asset1))
254246 let nameAsset2 = if ((asset2 == waves))
255247 then waves
256248 else getAssetName(fromBase58String(asset2))
257249 let name = if (customName)
258250 then Name
259251 else ((nameAsset1 + "_") + nameAsset2)
260252 let key = validPoolK(kp(asset1, asset2))
261253 if (if ((i.caller == this))
262254 then true
263255 else (i.caller == adminVerification()))
264256 then if ((key != false))
265257 then {
266258 let assetLpCreate = Issue(name, ((("LP asset for pool liquidity in AxAi Swap pair " + asset1) + "_") + asset2), (1 * D8), 8, true)
267259 let idAssetLp = calculateAssetId(assetLpCreate)
268260 [StringEntry((l + kp(asset1, asset2)), toBase58String(idAssetLp)), assetLpCreate]
269261 }
270262 else throw("Invalid Pool Key. Try inverting the assets")
271263 else throw("Only the Admin itself can invoke this function")
272264 }
273265
274266
275267
276268 @Callable(i)
277269 func deposit (pool,Asset1,Asset2) = {
278270 let power = getBooleanValue(this, ac)
279271 let liquidityPower = getBooleanValue(this, liquidityAc)
280272 let MainAsset = getStringValue(this, main)
281273 let lpAssetId = if (pool)
282274 then getStringValue(this, (l + kp(Asset1, Asset2)))
283275 else MainAsset
284276 if (power)
285277 then if (!(liquidityPower))
286278 then if ((i.payments[0].assetId != fromBase58String(lpAssetId)))
287279 then throw((("Invalid asset! Kindly Deposit Only " + MainAsset) + " or valid asset lp"))
288280 else if (!(pool))
289281 then {
290282 let currentKey = toBase58String(i.caller.bytes)
291283 let currentAmount = match getInteger(this, currentKey) {
292284 case a: Int =>
293285 a
294286 case _ =>
295287 0
296288 }
297289 let h = if ((currentAmount == 0))
298290 then height
299291 else valueOrElse(getIntegerValue(this, (deposit_height + currentKey)), height)
300292 let newAmount = (currentAmount + i.payments[0].amount)
301293 let useramount = IntegerEntry(currentKey, newAmount)
302294 let userdepositheight = IntegerEntry((deposit_height + currentKey), h)
303295 let previouslockbalance = match getInteger(this, "Total_Tokens_Locked:") {
304296 case a: Int =>
305297 a
306298 case _ =>
307299 0
308300 }
309301 let totaltoken = (previouslockbalance + i.payments[0].amount)
310302 let TLV = IntegerEntry("Total_Tokens_Locked:", totaltoken)
311303 [useramount, userdepositheight, TLV]
312304 }
313305 else {
314306 let poolKey = kp(Asset1, Asset2)
315307 let key = validPoolK(poolKey)
316308 if ((key != false))
317309 then {
318310 let currentKey = toBase58String(i.caller.bytes)
319311 let currentAmount = match getInteger(this, ((("STAKE_LP_" + currentKey) + "_") + poolKey)) {
320312 case a: Int =>
321313 a
322314 case _ =>
323315 0
324316 }
325317 let h = if ((currentAmount == 0))
326318 then height
327319 else valueOrElse(getIntegerValue(this, ((((deposit_height + "_") + currentKey) + "_") + poolKey)), height)
328320 let newAmount = (currentAmount + i.payments[0].amount)
329321 let useramount = IntegerEntry(((("STAKE_LP_" + currentKey) + "_") + poolKey), newAmount)
330322 let userdepositheight = IntegerEntry(((((deposit_height + "_") + currentKey) + "_") + poolKey), height)
331323 let previouslockbalance = match getInteger(this, ("Total_Tokens_LP_Locked_" + poolKey)) {
332324 case a: Int =>
333325 a
334326 case _ =>
335327 0
336328 }
337329 let totaltoken = (previouslockbalance + i.payments[0].amount)
338330 let TLV = IntegerEntry(("Total_Tokens_LP_Locked_" + poolKey), totaltoken)
339331 [useramount, userdepositheight, TLV]
340332 }
341333 else throw("Invalid Pool key.")
342334 }
343335 else throw("liquidity is currently under maintenance.")
344336 else throw("dApp is currently under maintenance.")
345337 }
346338
347339
348340
349341 @Callable(i)
350342 func remove (pool,Asset1,Asset2,amount) = {
351343 let power = getBooleanValue(this, ac)
352344 let liquidityPower = getBooleanValue(this, liquidityAc)
353345 let pmt = i.payments[0]
354346 let MainAsset = fromBase58String(getStringValue(this, main))
355347 if (power)
356348 then if (!(liquidityPower))
357349 then {
358350 let currentKey = toBase58String(i.caller.bytes)
359351 let currentAmount = match if (pool)
360352 then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2)))
361353 else getIntegerValue(this, currentKey) {
362354 case a: Int =>
363355 a
364356 case _ =>
365357 0
366358 }
367359 let swapheightkeyname = if (pool)
368360 then ((((deposit_height + "_") + currentKey) + "_") + kp(Asset1, Asset2))
369361 else (deposit_height + currentKey)
370362 let previouslockbalance = if (pool)
371363 then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2)))
372364 else getIntegerValue(this, "Total_Tokens_Locked:")
373365 let totaltoken = (previouslockbalance - amount)
374366 let diff = (height - getIntegerValue(this, swapheightkeyname))
375367 let bcd = getIntegerValue(this, bcD)
376368 let reward = ((diff * bcd) * D8)
377369 let feeCalc = (reward / (previouslockbalance / amount))
378370 if ((0 > amount))
379371 then throw(if (pool)
380372 then (((("Can't withdraw negative " + Asset1) + "/") + Asset2) + " amount")
381373 else "Can't withdraw negative AxAi amount")
382374 else {
383375 let newAmount = (currentAmount - amount)
384376 if ((0 > newAmount))
385377 then throw(if (pool)
386378 then (((("Not enough Asset Lp " + Asset1) + "/") + Asset2) + " balance")
387379 else "Not enough AxAi balance")
388380 else [IntegerEntry(if (pool)
389381 then ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))
390382 else currentKey, newAmount), IntegerEntry(if (pool)
391383 then ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2))
392384 else "Total_Tokens_Locked:", totaltoken), ScriptTransfer(i.caller, amount, if (pool)
393385 then fromBase58String(getStringValue(this, (l + kp(Asset1, Asset2))))
394386 else MainAsset), ScriptTransfer(i.caller, feeCalc, MainAsset)]
395387 }
396388 }
397389 else throw("liquidity is currently under maintenance.")
398390 else throw("dApp is currently under maintenance.")
399391 }
400392
401393
402394
403395 @Callable(i)
404396 func addLiquidity (Asset1,Asset2) = {
405397 let power = getBooleanValue(this, ac)
406398 let poolActivate = getBooleanValue(this, poolAc)
407399 let acWaves = getBooleanValue(this, aWaves)
408400 let key = validPoolK(kp(Asset1, Asset2))
409401 let asset1 = i.payments[0].assetId
410402 let asset2 = i.payments[1].assetId
411403 let USDN = fromBase58String(getStringValue(this, usdn))
412404 let USDC = fromBase58String(getStringValue(this, usdc))
413405 let USDT = fromBase58String(getStringValue(this, usdt))
414406 let NGNN = fromBase58String(getStringValue(this, ngnn))
415407 let EURN = fromBase58String(getStringValue(this, eurn))
416408 let MainAsset = fromBase58String(getStringValue(this, main))
417409 let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2)))
418410 let totalAsset1Pool = if ((2 > totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)))
419411 then i.payments[0].amount
420412 else totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)
421413 let totalAsset2Pool = if ((2 > totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)))
422414 then i.payments[1].amount
423415 else totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false)
424416 let totalLp = totalAssetPool(lpAssetId, true)
425417 let priceLpAsset = ((totalAsset1Pool + totalAsset2Pool) / totalLp)
426418 let quantityAsset2 = (i.payments[0].amount * (totalAsset2Pool / totalAsset1Pool))
427419 let rateTop = (i.payments[1].amount + ((i.payments[1].amount * 2) / 100))
428420 let rateBottom = (i.payments[1].amount - ((i.payments[1].amount * 2) / 100))
429421 let Validate = if (if (if ((i.payments[1].amount == quantityAsset2))
430422 then true
431423 else (rateTop > i.payments[1].amount))
432424 then true
433425 else (i.payments[1].amount > rateBottom))
434426 then true
435427 else false
436428 if (power)
437429 then if (!(poolActivate))
438430 then if (if (if (!((asset1 == asset2)))
439431 then validateAsset(asset1, Asset1, acWaves)
440432 else false)
441433 then validateAsset(asset2, Asset2, acWaves)
442434 else false)
443435 then if (if (if (if (if (if (if (if ((asset1 == USDN))
444436 then true
445437 else (asset1 == USDC))
446438 then true
447439 else (asset1 == USDT))
448440 then true
449441 else (asset1 == NGNN))
450442 then true
451443 else (asset1 == MainAsset))
452444 then true
453445 else (asset1 == WAVES))
454446 then true
455447 else (asset1 == EURN))
456448 then if (if (if (if (if (if ((asset2 == USDN))
457449 then true
458450 else (asset2 == USDC))
459451 then true
460452 else (asset2 == USDT))
461453 then true
462454 else (asset2 == NGNN))
463455 then true
464456 else (asset2 == MainAsset))
465457 then true
466458 else (asset2 == WAVES))
467459 then true
468460 else (asset2 == EURN)
469461 else false)
470462 then if ((key != false))
471463 then if (Validate)
472464 then {
473465 let currentKey = toBase58String(i.caller.bytes)
474466 let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2))
475467 let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1)
476468 let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2)
477469 let asset1pool = assetP(kp(Asset1, Asset2), Asset1)
478470 let asset2pool = assetP(kp(Asset1, Asset2), Asset2)
479- let detailsa2 = worid(i.payments[1].assetId)
480- let df = if ((detailsa2 == 8))
481- then 0
482- else 2
483471 let receiveLp = if ((totalAsset1Pool == i.payments[0].amount))
484472 then (1 * D8)
485- else ((i.payments[0].amount + i.payments[1].amount) / ((totalAsset1Pool + totalAsset2Pool) / (totalLp - df)))
486- let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount)
487- let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount)
488- let newcurrentAmount = (currentAmount + receiveLp)
489- let newasset1pool = (asset1pool + i.payments[0].amount)
490- let newasset2pool = (asset2pool + i.payments[1].amount)
491-[Reissue(fromBase58String(lpAssetId), receiveLp, true), ScriptTransfer(Address(i.caller.bytes), receiveLp, fromBase58String(lpAssetId)), IntegerEntry(pkey(Asset1, Asset2, currentKey), height), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset1), newcurrentAmountAsset1), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset2), newcurrentAmountAsset2), IntegerEntry(((kp(Asset1, Asset2) + "_") + currentKey), newcurrentAmount), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset1), newasset1pool), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), newasset2pool), IntegerEntry(Asset1, (getAmountBlockAsset(Asset1) + i.payments[0].amount)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) + i.payments[1].amount)), IntegerEntry(lpAssetId, (getAmountBlockAsset(lpAssetId) + receiveLp))]
473+ else toInt(((((toBigInt(i.payments[0].amount) * toBigInt(D8)) + (toBigInt(i.payments[1].amount) * toBigInt(D8))) / (((toBigInt(totalAsset1Pool) * toBigInt(D8)) + (toBigInt(totalAsset2Pool) * toBigInt(D8))) / (toBigInt(totalLp) * toBigInt(D8)))) / toBigInt(D8)))
474+[throw(("details lp" + toString(receiveLp)))]
492475 }
493476 else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((i.payments[0].amount * (totalAsset2Pool / totalAsset1Pool)))) + "} Received: ") + toString(i.payments[1].amount)) + " Validate: ") + toString(Validate)))
494477 else throw("Invalid Pool Key.")
495478 else throw("Invalid Asset1 or Asset2!")
496479 else throw("Asset1 cannot be equal to Asset2")
497480 else throw("liquidity is currently under maintenance.")
498481 else throw("dApp is currently under maintenance.")
499482 }
500483
501484
502485
503486 @Callable(i)
504487 func removeLiquidity (Asset1,Asset2,Amount) = {
505488 let currentKey = toBase58String(i.caller.bytes)
506489 let power = getBooleanValue(this, ac)
507490 let poolActivate = getBooleanValue(this, poolAc)
508491 let acWaves = getBooleanValue(this, aWaves)
509492 let poolKey = kp(Asset1, Asset2)
510493 let key = validPoolK(poolKey)
511494 let asset1 = if ((Asset1 == waves))
512495 then if (acWaves)
513496 then WAVES
514497 else throw("The smart contract does not currently support Waves.")
515498 else fromBase58String(Asset1)
516499 let asset2 = if ((Asset2 == waves))
517500 then if (acWaves)
518501 then WAVES
519502 else throw("The smart contract does not currently support Waves.")
520503 else fromBase58String(Asset2)
521504 let USDN = fromBase58String(getStringValue(this, usdn))
522505 let USDC = fromBase58String(getStringValue(this, usdc))
523506 let USDT = fromBase58String(getStringValue(this, usdt))
524507 let NGNN = fromBase58String(getStringValue(this, ngnn))
525508 let MainAsset = fromBase58String(getStringValue(this, main))
526509 let EURN = fromBase58String(getStringValue(this, eurn))
527510 let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2)))
528511 let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2))
529512 let amountLpBlocked = lpBlocked(currentKey, poolKey)
530513 let totalLP = totalAssetPool(lpAssetId, true)
531514 let totalAsset1Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)
532515 let totalAsset2Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false)
533516 if (power)
534517 then if (!(poolActivate))
535518 then if (!((Asset1 == Asset2)))
536519 then if (if (if (if (if (if (if (if ((asset1 == USDN))
537520 then true
538521 else (asset1 == USDC))
539522 then true
540523 else (asset1 == USDT))
541524 then true
542525 else (asset1 == NGNN))
543526 then true
544527 else (asset1 == MainAsset))
545528 then true
546529 else (asset1 == WAVES))
547530 then true
548531 else (asset1 == EURN))
549532 then if (if (if (if (if (if ((asset2 == USDN))
550533 then true
551534 else (asset2 == USDC))
552535 then true
553536 else (asset2 == USDT))
554537 then true
555538 else (asset2 == NGNN))
556539 then true
557540 else (asset2 == MainAsset))
558541 then true
559542 else (asset2 == WAVES))
560543 then true
561544 else (asset2 == EURN)
562545 else false)
563546 then if ((key != false))
564547 then if (!((currentAmount == 0)))
565548 then if (((currentAmount - amountLpBlocked) >= Amount))
566549 then if (if ((totalAsset1Pool > 2))
567550 then true
568551 else (totalAsset2Pool > 2))
569552 then {
570553 let receiveAsset1 = (toInt(((fraction(toBigInt(i.payments[0].amount), toBigInt(D8), toBigInt(totalLP)) * toBigInt(totalAsset1Pool)) / toBigInt(D8))) - 1)
571554 let receiveAsset2 = (toInt(((fraction(toBigInt(i.payments[0].amount), toBigInt(D8), toBigInt(totalLP)) * toBigInt(totalAsset2Pool)) / toBigInt(D8))) - 1)
572555 let asset1pool = assetP(kp(Asset1, Asset2), Asset1)
573556 let asset2pool = assetP(kp(Asset1, Asset2), Asset2)
574557 let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1)
575558 let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2)
576559 let newcurrentAmountAsset1 = (currentAmountAsset1 - receiveAsset1)
577560 let newcurrentAmountAsset2 = (currentAmountAsset2 - receiveAsset2)
578561 let newcurrentAmount = (currentAmount - Amount)
579562 let newasset1pool = (asset1pool - receiveAsset1)
580563 let newasset2pool = (asset2pool - receiveAsset2)
581564 if ((i.payments[0].assetId == fromBase58String(lpAssetId)))
582565 then if ((Amount == i.payments[0].amount))
583566 then [Burn(fromBase58String(lpAssetId), Amount), ScriptTransfer(Address(i.caller.bytes), receiveAsset1, asset1), ScriptTransfer(Address(i.caller.bytes), receiveAsset2, asset2), IntegerEntry(pkey(Asset1, Asset2, currentKey), height), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset1), newcurrentAmountAsset1), IntegerEntry(((((currentKey + "_") + kp(Asset1, Asset2)) + "_") + Asset2), newcurrentAmountAsset2), IntegerEntry(((kp(Asset1, Asset2) + "_") + currentKey), newcurrentAmount), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset1), newasset1pool), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), newasset2pool), IntegerEntry(Asset1, (getAmountBlockAsset(Asset1) - receiveAsset1)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) - receiveAsset2)), IntegerEntry(lpAssetId, (getAmountBlockAsset(lpAssetId) - Amount))]
584567 else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(Amount)))
585568 else throw("Requires an lp asset as payment to remove locked amounts.")
586569 }
587570 else throw("Pool has no liquidity.")
588571 else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(Amount)))
589572 else throw("You have no locked values ​​in the pool")
590573 else throw("Invalid Pool Key.")
591574 else throw("Invalid Asset1 or Asset2!")
592575 else throw("Asset1 cannot be equal to Asset2")
593576 else throw("liquidity is currently under maintenance.")
594577 else throw("dApp is currently under maintenance.")
595578 }
596579
597580
598581
599582 @Callable(i)
600583 func swap (Asset1,Asset2) = {
601584 let currentKey = toBase58String(i.caller.bytes)
602585 let acWaves = getBooleanValue(this, aWaves)
603586 let power = getBooleanValue(this, ac)
604587 let swapActivate = getBooleanValue(this, swapAc)
605588 let poolKey = kp(Asset1, Asset2)
606589 let key = validPoolK(poolKey)
607590 let asset1 = i.payments[0].assetId
608591 let USDN = fromBase58String(getStringValue(this, usdn))
609592 let USDC = fromBase58String(getStringValue(this, usdc))
610593 let USDT = fromBase58String(getStringValue(this, usdt))
611594 let NGNN = fromBase58String(getStringValue(this, ngnn))
612595 let MainAsset = fromBase58String(getStringValue(this, main))
613596 let EURN = fromBase58String(getStringValue(this, eurn))
614597 let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2)))
615598 let totalAsset1 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)
616599 let totalAsset2 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false)
617600 let feeRatePercentual = getIntegerValue(this, rateFee)
618601 let prAsset1 = (toBigInt(i.payments[0].amount) * fraction(toBigInt(D8), toBigInt(totalAsset2), toBigInt(totalAsset1)))
619602 let priceAsset1 = toInt(((prAsset1 - ((prAsset1 / toBigInt(feeRatePercentual)) * toBigInt(100))) / toBigInt(D8)))
620603 let prAsset2 = (toBigInt(i.payments[0].amount) * fraction(toBigInt(D8), toBigInt(totalAsset1), toBigInt(totalAsset2)))
621604 let priceAsset2 = toInt(((prAsset2 - ((prAsset2 / toBigInt(feeRatePercentual)) * toBigInt(100))) / toBigInt(D8)))
622605 let sendValue = if (if ((asset1 == unit))
623606 then (Asset1 == waves)
624607 else false)
625608 then priceAsset1
626609 else if ((asset1 == fromBase58String(Asset1)))
627610 then priceAsset1
628611 else priceAsset2
629612 let assetUpdatePay = if ((asset1 == unit))
630613 then waves
631614 else if ((asset1 == fromBase58String(Asset1)))
632615 then Asset1
633616 else Asset2
634617 let assetUpdateSwap = if ((asset1 == unit))
635618 then waves
636619 else if ((asset1 == fromBase58String(Asset1)))
637620 then Asset2
638621 else Asset1
639622 let assetSendSwap = if ((asset1 == unit))
640623 then WAVES
641624 else if ((asset1 == fromBase58String(Asset1)))
642625 then fromBase58String(Asset2)
643626 else fromBase58String(Asset1)
644627 if (power)
645628 then if (!(swapActivate))
646629 then if (if (!((Asset1 == Asset2)))
647630 then if (validateAsset(asset1, Asset1, acWaves))
648631 then true
649632 else validateAsset(asset1, Asset2, acWaves)
650633 else false)
651634 then if (if (if (if (if (if (if ((asset1 == USDN))
652635 then true
653636 else (asset1 == USDC))
654637 then true
655638 else (asset1 == USDT))
656639 then true
657640 else (asset1 == NGNN))
658641 then true
659642 else (asset1 == MainAsset))
660643 then true
661644 else (asset1 == EURN))
662645 then true
663646 else (asset1 == WAVES))
664647 then if ((key != false))
665648 then if ((i.payments[1].assetId == MainAsset))
666649 then if ((i.payments[1].amount == 300000))
667650 then if (if ((totalAsset1 > 2))
668651 then true
669652 else (totalAsset2 > 2))
670653 then [ScriptTransfer(Address(i.caller.bytes), sendValue, assetSendSwap), IntegerEntry(assetUpdateSwap, (getAmountBlockAsset(assetUpdateSwap) - sendValue)), IntegerEntry(((kp(Asset1, Asset2) + "_") + assetUpdateSwap), (assetP(kp(Asset1, Asset2), assetUpdateSwap) - sendValue)), IntegerEntry(((kp(Asset1, Asset2) + "_") + assetUpdatePay), (assetP(kp(Asset1, Asset2), assetUpdatePay) + i.payments[0].amount)), IntegerEntry(assetUpdatePay, (getAmountBlockAsset(assetUpdatePay) + i.payments[0].amount)), IntegerEntry(toBase58String(MainAsset), (getAmountBlockAsset(toBase58String(MainAsset)) + i.payments[1].amount))]
671654 else throw("Pool has no liquidity.")
672655 else throw("Swap denied! 0.003 AxAi is required for the swap fee.")
673656 else throw("Invalid rate asset")
674657 else throw("Invalid Swap Key.")
675658 else throw("Invalid Asset1 or Asset2!")
676659 else throw("Asset1 cannot be equal to Asset2")
677660 else throw("Swap is currently under maintenance.")
678661 else throw("dApp is currently under maintenance.")
679662 }
680663
681664
682665 @Verifier(tx)
683666 func verify () = match tx {
684667 case order: Order =>
685668 true
686669 case e: ExchangeTransaction =>
687670 true
688671 case tt: TransferTransaction =>
689672 (tt.recipient == Address(fromBase58String(getStringValue(this, "admin"))))
690673 case _ =>
691674 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
692675 }
693676

github/deemru/w8io/169f3d6 
70.65 ms