tx · 7sEvbTWZYk7afKycEijTJ229SRXEX4ug8UynPHxrvgmd

3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU:  -0.03400000 Waves

2022.07.17 01:26 [2142910] smart account 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU > SELF 0.00000000 Waves

{ "type": 13, "id": "7sEvbTWZYk7afKycEijTJ229SRXEX4ug8UynPHxrvgmd", "fee": 3400000, "feeAssetId": null, "timestamp": 1658010401603, "version": 2, "chainId": 84, "sender": "3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU", "senderPublicKey": "GDio3pYFUMSWQ3yen7TJP79nTPaGuPbxjKixvKLuYS8E", "proofs": [ "4KAEypUBh5oZ4pmx9N3Lc2j62VUrCoVnQqvKWaFRBhHEMUdGdLFDp5k11m8V6RH9A1g9P825ML7DYePNMqUqVGvg" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAA0QxMAAAAAACVAvkAAEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJAAQlAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEFAAAA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AEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABWFkbWluCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledfVkes=", "height": 2142910, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2PNTrv8gexsb7pHFGQpK7hRobWppdmPSj8w3RNRsgoX4 Next: 6REZtpv6ks3u8XXQeZWLSWjsEVhNT3sSLQCXCsXNK6NK Diff:
OldNewDifferences
154154 if (if ((i.caller == this))
155155 then true
156156 else (i.caller == adminVerification()))
157- then if ((valueOrElse(getInteger(this, keyPoolUsdtWaves), 0) == 0))
157+ then if (!((valueOrElse(getInteger(this, keyPoolUsdtWaves), 0) == 0)))
158158 then {
159159 let keyPoolUsdnUsdt = kp(UsdnAssetId, UsdtAssetId)
160160 let keyPoolUsdnUsdc = kp(UsdnAssetId, UsdcAssetId)
465465 let receiveLp = if ((totalAsset1Pool == i.payments[0].amount))
466466 then (1 * D8)
467467 else ((i.payments[0].amount + i.payments[1].amount) / ((totalAsset1Pool + totalAsset2Pool) / totalLp))
468- let newcurrentAmountAsset1 = ((currentAmountAsset1 + i.payments[0].amount) + 2)
469- let newcurrentAmountAsset2 = ((currentAmountAsset2 + i.payments[1].amount) + 2)
468+ let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount)
469+ let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount)
470470 let newcurrentAmount = (currentAmount + receiveLp)
471- let newasset1pool = ((asset1pool + i.payments[0].amount) + 2)
472- let newasset2pool = ((asset2pool + i.payments[1].amount) + 2)
471+ let newasset1pool = (asset1pool + i.payments[0].amount)
472+ let newasset2pool = (asset2pool + i.payments[1].amount)
473473 [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))]
474474 }
475475 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)))
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)
112112
113113
114114 func lpBlocked (address,key) = match getInteger(this, ((("STAKE_LP_" + address) + "_") + key)) {
115115 case a: Int =>
116116 a
117117 case _ =>
118118 0
119119 }
120120
121121
122122 func adminVerification () = match getString(this, "admin") {
123123 case t: String =>
124124 Address(fromBase58String(t))
125125 case _ =>
126126 this
127127 }
128128
129129
130130 func validateAsset (assetS,stringAsset,acWaves) = if (if ((assetS == WAVES))
131131 then (stringAsset == "WAVES")
132132 else false)
133133 then if (acWaves)
134134 then true
135135 else throw("The smart contract does not currently support Waves.")
136136 else if ((assetS == fromBase58String(stringAsset)))
137137 then true
138138 else false
139139
140140
141141 func totalAssetPool (key,assetLp) = match getInteger(this, key) {
142142 case a: Int =>
143143 a
144144 case _ =>
145145 if (assetLp)
146146 then (1 * D8)
147147 else 1
148148 }
149149
150150
151151 @Callable(i)
152152 func constructor (MainAssetId,UsdnAssetId,UsdtAssetId,UsdcAssetId,NgnnAssetId,EurnAssetId,percentageRateSwap,blockDistribution,acceptWaves) = {
153153 let keyPoolUsdtWaves = kp(UsdtAssetId, waves)
154154 if (if ((i.caller == this))
155155 then true
156156 else (i.caller == adminVerification()))
157- then if ((valueOrElse(getInteger(this, keyPoolUsdtWaves), 0) == 0))
157+ then if (!((valueOrElse(getInteger(this, keyPoolUsdtWaves), 0) == 0)))
158158 then {
159159 let keyPoolUsdnUsdt = kp(UsdnAssetId, UsdtAssetId)
160160 let keyPoolUsdnUsdc = kp(UsdnAssetId, UsdcAssetId)
161161 let keyPoolUsdnNgnn = kp(UsdnAssetId, NgnnAssetId)
162162 let keyPoolUsdnWaves = kp(UsdnAssetId, waves)
163163 let keyPoolUsdnMainAsset = kp(UsdnAssetId, MainAssetId)
164164 let keyPoolUsdnEurn = kp(UsdnAssetId, EurnAssetId)
165165 let keyPoolUsdcUsdt = kp(UsdcAssetId, UsdtAssetId)
166166 let keyPoolUsdcNgnn = kp(UsdcAssetId, NgnnAssetId)
167167 let keyPoolUsdcWaves = kp(UsdcAssetId, waves)
168168 let keyPoolUsdcMainAsset = kp(UsdcAssetId, MainAssetId)
169169 let keyPoolUsdcEurn = kp(UsdcAssetId, EurnAssetId)
170170 let keyPoolUsdtNgnn = kp(UsdtAssetId, NgnnAssetId)
171171 let keyPoolUsdtMainAsset = kp(UsdtAssetId, MainAssetId)
172172 let keyPoolUsdtEurn = kp(UsdtAssetId, EurnAssetId)
173173 let keyPoolNgnnWaves = kp(NgnnAssetId, waves)
174174 let keyPoolNgnnMainAsset = kp(NgnnAssetId, MainAssetId)
175175 let keyPoolNgnnEurn = kp(NgnnAssetId, EurnAssetId)
176176 let keyPoolMainWaves = kp(MainAssetId, waves)
177177 let keyPoolMainEurn = kp(MainAssetId, EurnAssetId)
178178 let keyPoolEurnWaves = kp(EurnAssetId, waves)
179179 [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)]
180180 }
181181 else throw("Smart Contract has been started")
182182 else throw("Only the Admin itself can invoke this function")
183183 }
184184
185185
186186
187187 @Callable(i)
188188 func activate (v) = if (if ((i.caller == this))
189189 then true
190190 else (i.caller == adminVerification()))
191191 then [BooleanEntry(ac, v)]
192192 else throw("Only the Admin itself can invoke this function")
193193
194194
195195
196196 @Callable(i)
197197 func maintenance (pools,swap,stake) = if (if ((i.caller == this))
198198 then true
199199 else (i.caller == adminVerification()))
200200 then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake)]
201201 else throw("Only the Admin itself can invoke this function")
202202
203203
204204
205205 @Callable(i)
206206 func percentualRateFeeSwapEdit (rate) = if (if ((i.caller == this))
207207 then true
208208 else (i.caller == adminVerification()))
209209 then [IntegerEntry(rateFee, rate)]
210210 else throw("Only the Admin itself can invoke this function")
211211
212212
213213
214214 @Callable(i)
215215 func acceptWaves (activate) = if (if ((i.caller == this))
216216 then true
217217 else (i.caller == adminVerification()))
218218 then [BooleanEntry(aWaves, activate)]
219219 else throw("Only the Admin itself can invoke this function")
220220
221221
222222
223223 @Callable(i)
224224 func blockDistribution (newValue) = if (if ((i.caller == this))
225225 then true
226226 else (i.caller == adminVerification()))
227227 then [IntegerEntry(bcD, newValue)]
228228 else throw("Only the Admin itself can invoke this function")
229229
230230
231231
232232 @Callable(i)
233233 func addAdmin (address) = if (if ((i.caller == this))
234234 then true
235235 else (i.caller == adminVerification()))
236236 then [StringEntry("admin", address)]
237237 else throw("Only the Admin itself can invoke this function")
238238
239239
240240
241241 @Callable(i)
242242 func lpAssetCreateForPairPool (asset1,asset2,Name,customName) = {
243243 let nameAsset1 = if ((asset1 == waves))
244244 then waves
245245 else getAssetName(fromBase58String(asset1))
246246 let nameAsset2 = if ((asset2 == waves))
247247 then waves
248248 else getAssetName(fromBase58String(asset2))
249249 let name = if (customName)
250250 then Name
251251 else ((nameAsset1 + "_") + nameAsset2)
252252 let key = validPoolK(kp(asset1, asset2))
253253 if (if ((i.caller == this))
254254 then true
255255 else (i.caller == adminVerification()))
256256 then if ((key != false))
257257 then {
258258 let assetLpCreate = Issue(name, ((("LP asset for pool liquidity in AxAi Swap pair " + asset1) + "_") + asset2), (1 * D8), 8, true)
259259 let idAssetLp = calculateAssetId(assetLpCreate)
260260 [StringEntry((l + kp(asset1, asset2)), toBase58String(idAssetLp)), assetLpCreate]
261261 }
262262 else throw("Invalid Pool Key. Try inverting the assets")
263263 else throw("Only the Admin itself can invoke this function")
264264 }
265265
266266
267267
268268 @Callable(i)
269269 func deposit (pool,Asset1,Asset2) = {
270270 let power = getBooleanValue(this, ac)
271271 let liquidityPower = getBooleanValue(this, liquidityAc)
272272 let MainAsset = getStringValue(this, main)
273273 let lpAssetId = if (pool)
274274 then getStringValue(this, (l + kp(Asset1, Asset2)))
275275 else MainAsset
276276 if (power)
277277 then if (!(liquidityPower))
278278 then if ((i.payments[0].assetId != fromBase58String(lpAssetId)))
279279 then throw((("Invalid asset! Kindly Deposit Only " + MainAsset) + " or valid asset lp"))
280280 else if (!(pool))
281281 then {
282282 let currentKey = toBase58String(i.caller.bytes)
283283 let currentAmount = match getInteger(this, currentKey) {
284284 case a: Int =>
285285 a
286286 case _ =>
287287 0
288288 }
289289 let h = if ((currentAmount == 0))
290290 then height
291291 else valueOrElse(getIntegerValue(this, (deposit_height + currentKey)), height)
292292 let newAmount = (currentAmount + i.payments[0].amount)
293293 let useramount = IntegerEntry(currentKey, newAmount)
294294 let userdepositheight = IntegerEntry((deposit_height + currentKey), h)
295295 let previouslockbalance = match getInteger(this, "Total_Tokens_Locked:") {
296296 case a: Int =>
297297 a
298298 case _ =>
299299 0
300300 }
301301 let totaltoken = (previouslockbalance + i.payments[0].amount)
302302 let TLV = IntegerEntry("Total_Tokens_Locked:", totaltoken)
303303 [useramount, userdepositheight, TLV]
304304 }
305305 else {
306306 let poolKey = kp(Asset1, Asset2)
307307 let key = validPoolK(poolKey)
308308 if ((key != false))
309309 then {
310310 let currentKey = toBase58String(i.caller.bytes)
311311 let currentAmount = match getInteger(this, ((("STAKE_LP_" + currentKey) + "_") + poolKey)) {
312312 case a: Int =>
313313 a
314314 case _ =>
315315 0
316316 }
317317 let h = if ((currentAmount == 0))
318318 then height
319319 else valueOrElse(getIntegerValue(this, ((((deposit_height + "_") + currentKey) + "_") + poolKey)), height)
320320 let newAmount = (currentAmount + i.payments[0].amount)
321321 let useramount = IntegerEntry(((("STAKE_LP_" + currentKey) + "_") + poolKey), newAmount)
322322 let userdepositheight = IntegerEntry(((((deposit_height + "_") + currentKey) + "_") + poolKey), height)
323323 let previouslockbalance = match getInteger(this, ("Total_Tokens_LP_Locked_" + poolKey)) {
324324 case a: Int =>
325325 a
326326 case _ =>
327327 0
328328 }
329329 let totaltoken = (previouslockbalance + i.payments[0].amount)
330330 let TLV = IntegerEntry(("Total_Tokens_LP_Locked_" + poolKey), totaltoken)
331331 [useramount, userdepositheight, TLV]
332332 }
333333 else throw("Invalid Pool key.")
334334 }
335335 else throw("liquidity is currently under maintenance.")
336336 else throw("dApp is currently under maintenance.")
337337 }
338338
339339
340340
341341 @Callable(i)
342342 func remove (pool,Asset1,Asset2,amount) = {
343343 let power = getBooleanValue(this, ac)
344344 let liquidityPower = getBooleanValue(this, liquidityAc)
345345 let pmt = i.payments[0]
346346 let MainAsset = fromBase58String(getStringValue(this, main))
347347 if (power)
348348 then if (!(liquidityPower))
349349 then {
350350 let currentKey = toBase58String(i.caller.bytes)
351351 let currentAmount = match if (pool)
352352 then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2)))
353353 else getIntegerValue(this, currentKey) {
354354 case a: Int =>
355355 a
356356 case _ =>
357357 0
358358 }
359359 let swapheightkeyname = if (pool)
360360 then ((((deposit_height + "_") + currentKey) + "_") + kp(Asset1, Asset2))
361361 else (deposit_height + currentKey)
362362 let previouslockbalance = if (pool)
363363 then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2)))
364364 else getIntegerValue(this, "Total_Tokens_Locked:")
365365 let totaltoken = (previouslockbalance - amount)
366366 let diff = (height - getIntegerValue(this, swapheightkeyname))
367367 let bcd = getIntegerValue(this, bcD)
368368 let reward = ((diff * bcd) * D8)
369369 let feeCalc = (reward / (previouslockbalance / amount))
370370 if ((0 > amount))
371371 then throw(if (pool)
372372 then (((("Can't withdraw negative " + Asset1) + "/") + Asset2) + " amount")
373373 else "Can't withdraw negative AxAi amount")
374374 else {
375375 let newAmount = (currentAmount - amount)
376376 if ((0 > newAmount))
377377 then throw(if (pool)
378378 then (((("Not enough Asset Lp " + Asset1) + "/") + Asset2) + " balance")
379379 else "Not enough AxAi balance")
380380 else [IntegerEntry(if (pool)
381381 then ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))
382382 else currentKey, newAmount), IntegerEntry(if (pool)
383383 then ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2))
384384 else "Total_Tokens_Locked:", totaltoken), ScriptTransfer(i.caller, amount, if (pool)
385385 then fromBase58String(getStringValue(this, (l + kp(Asset1, Asset2))))
386386 else MainAsset), ScriptTransfer(i.caller, feeCalc, MainAsset)]
387387 }
388388 }
389389 else throw("liquidity is currently under maintenance.")
390390 else throw("dApp is currently under maintenance.")
391391 }
392392
393393
394394
395395 @Callable(i)
396396 func addLiquidity (Asset1,Asset2) = {
397397 let power = getBooleanValue(this, ac)
398398 let poolActivate = getBooleanValue(this, poolAc)
399399 let acWaves = getBooleanValue(this, aWaves)
400400 let key = validPoolK(kp(Asset1, Asset2))
401401 let asset1 = i.payments[0].assetId
402402 let asset2 = i.payments[1].assetId
403403 let USDN = fromBase58String(getStringValue(this, usdn))
404404 let USDC = fromBase58String(getStringValue(this, usdc))
405405 let USDT = fromBase58String(getStringValue(this, usdt))
406406 let NGNN = fromBase58String(getStringValue(this, ngnn))
407407 let EURN = fromBase58String(getStringValue(this, eurn))
408408 let MainAsset = fromBase58String(getStringValue(this, main))
409409 let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2)))
410410 let totalAsset1Pool = if ((2 > totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)))
411411 then i.payments[0].amount
412412 else totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)
413413 let totalAsset2Pool = if ((2 > totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)))
414414 then i.payments[1].amount
415415 else totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false)
416416 let totalLp = totalAssetPool(lpAssetId, true)
417417 let priceLpAsset = ((totalAsset1Pool + totalAsset2Pool) / totalLp)
418418 let quantityAsset2 = (i.payments[0].amount * (totalAsset2Pool / totalAsset1Pool))
419419 let Validate = if ((i.payments[1].amount == quantityAsset2))
420420 then true
421421 else false
422422 if (power)
423423 then if (!(poolActivate))
424424 then if (if (if (!((asset1 == asset2)))
425425 then validateAsset(asset1, Asset1, acWaves)
426426 else false)
427427 then validateAsset(asset2, Asset2, acWaves)
428428 else false)
429429 then if (if (if (if (if (if (if (if ((asset1 == USDN))
430430 then true
431431 else (asset1 == USDC))
432432 then true
433433 else (asset1 == USDT))
434434 then true
435435 else (asset1 == NGNN))
436436 then true
437437 else (asset1 == MainAsset))
438438 then true
439439 else (asset1 == WAVES))
440440 then true
441441 else (asset1 == EURN))
442442 then if (if (if (if (if (if ((asset2 == USDN))
443443 then true
444444 else (asset2 == USDC))
445445 then true
446446 else (asset2 == USDT))
447447 then true
448448 else (asset2 == NGNN))
449449 then true
450450 else (asset2 == MainAsset))
451451 then true
452452 else (asset2 == WAVES))
453453 then true
454454 else (asset2 == EURN)
455455 else false)
456456 then if ((key != false))
457457 then if (Validate)
458458 then {
459459 let currentKey = toBase58String(i.caller.bytes)
460460 let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2))
461461 let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1)
462462 let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2)
463463 let asset1pool = assetP(kp(Asset1, Asset2), Asset1)
464464 let asset2pool = assetP(kp(Asset1, Asset2), Asset2)
465465 let receiveLp = if ((totalAsset1Pool == i.payments[0].amount))
466466 then (1 * D8)
467467 else ((i.payments[0].amount + i.payments[1].amount) / ((totalAsset1Pool + totalAsset2Pool) / totalLp))
468- let newcurrentAmountAsset1 = ((currentAmountAsset1 + i.payments[0].amount) + 2)
469- let newcurrentAmountAsset2 = ((currentAmountAsset2 + i.payments[1].amount) + 2)
468+ let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount)
469+ let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount)
470470 let newcurrentAmount = (currentAmount + receiveLp)
471- let newasset1pool = ((asset1pool + i.payments[0].amount) + 2)
472- let newasset2pool = ((asset2pool + i.payments[1].amount) + 2)
471+ let newasset1pool = (asset1pool + i.payments[0].amount)
472+ let newasset2pool = (asset2pool + i.payments[1].amount)
473473 [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))]
474474 }
475475 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)))
476476 else throw("Invalid Pool Key.")
477477 else throw("Invalid Asset1 or Asset2!")
478478 else throw("Asset1 cannot be equal to Asset2")
479479 else throw("liquidity is currently under maintenance.")
480480 else throw("dApp is currently under maintenance.")
481481 }
482482
483483
484484
485485 @Callable(i)
486486 func removeLiquidity (Asset1,Asset2,Amount) = {
487487 let currentKey = toBase58String(i.caller.bytes)
488488 let power = getBooleanValue(this, ac)
489489 let poolActivate = getBooleanValue(this, poolAc)
490490 let acWaves = getBooleanValue(this, aWaves)
491491 let poolKey = kp(Asset1, Asset2)
492492 let key = validPoolK(poolKey)
493493 let asset1 = if ((Asset1 == waves))
494494 then if (acWaves)
495495 then WAVES
496496 else throw("The smart contract does not currently support Waves.")
497497 else fromBase58String(Asset1)
498498 let asset2 = if ((Asset2 == waves))
499499 then if (acWaves)
500500 then WAVES
501501 else throw("The smart contract does not currently support Waves.")
502502 else fromBase58String(Asset2)
503503 let USDN = fromBase58String(getStringValue(this, usdn))
504504 let USDC = fromBase58String(getStringValue(this, usdc))
505505 let USDT = fromBase58String(getStringValue(this, usdt))
506506 let NGNN = fromBase58String(getStringValue(this, ngnn))
507507 let MainAsset = fromBase58String(getStringValue(this, main))
508508 let EURN = fromBase58String(getStringValue(this, eurn))
509509 let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2)))
510510 let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2))
511511 let amountLpBlocked = lpBlocked(currentKey, poolKey)
512512 let totalLP = totalAssetPool(lpAssetId, true)
513513 let totalAsset1Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)
514514 let totalAsset2Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false)
515515 if (power)
516516 then if (!(poolActivate))
517517 then if (!((Asset1 == Asset2)))
518518 then if (if (if (if (if (if (if (if ((asset1 == USDN))
519519 then true
520520 else (asset1 == USDC))
521521 then true
522522 else (asset1 == USDT))
523523 then true
524524 else (asset1 == NGNN))
525525 then true
526526 else (asset1 == MainAsset))
527527 then true
528528 else (asset1 == WAVES))
529529 then true
530530 else (asset1 == EURN))
531531 then if (if (if (if (if (if ((asset2 == USDN))
532532 then true
533533 else (asset2 == USDC))
534534 then true
535535 else (asset2 == USDT))
536536 then true
537537 else (asset2 == NGNN))
538538 then true
539539 else (asset2 == MainAsset))
540540 then true
541541 else (asset2 == WAVES))
542542 then true
543543 else (asset2 == EURN)
544544 else false)
545545 then if ((key != false))
546546 then if (!((currentAmount == 0)))
547547 then if (((currentAmount - amountLpBlocked) >= Amount))
548548 then if (if ((totalAsset1Pool > 2))
549549 then true
550550 else (totalAsset2Pool > 2))
551551 then {
552552 let receiveAsset1 = (toInt(((fraction(toBigInt(i.payments[0].amount), toBigInt(D8), toBigInt(totalLP)) * toBigInt(totalAsset1Pool)) / toBigInt(D8))) - 1)
553553 let receiveAsset2 = (toInt(((fraction(toBigInt(i.payments[0].amount), toBigInt(D8), toBigInt(totalLP)) * toBigInt(totalAsset2Pool)) / toBigInt(D8))) - 1)
554554 let asset1pool = assetP(kp(Asset1, Asset2), Asset1)
555555 let asset2pool = assetP(kp(Asset1, Asset2), Asset2)
556556 let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1)
557557 let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2)
558558 let newcurrentAmountAsset1 = (currentAmountAsset1 - receiveAsset1)
559559 let newcurrentAmountAsset2 = (currentAmountAsset2 - receiveAsset2)
560560 let newcurrentAmount = (currentAmount - Amount)
561561 let newasset1pool = (asset1pool - receiveAsset1)
562562 let newasset2pool = (asset2pool - receiveAsset2)
563563 if ((i.payments[0].assetId == fromBase58String(lpAssetId)))
564564 then if ((Amount == i.payments[0].amount))
565565 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))]
566566 else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(Amount)))
567567 else throw("Requires an lp asset as payment to remove locked amounts.")
568568 }
569569 else throw("Pool has no liquidity.")
570570 else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(Amount)))
571571 else throw("You have no locked values ​​in the pool")
572572 else throw("Invalid Pool Key.")
573573 else throw("Invalid Asset1 or Asset2!")
574574 else throw("Asset1 cannot be equal to Asset2")
575575 else throw("liquidity is currently under maintenance.")
576576 else throw("dApp is currently under maintenance.")
577577 }
578578
579579
580580
581581 @Callable(i)
582582 func swap (Asset1,Asset2) = {
583583 let currentKey = toBase58String(i.caller.bytes)
584584 let acWaves = getBooleanValue(this, aWaves)
585585 let power = getBooleanValue(this, ac)
586586 let swapActivate = getBooleanValue(this, swapAc)
587587 let poolKey = kp(Asset1, Asset2)
588588 let key = validPoolK(poolKey)
589589 let asset1 = i.payments[0].assetId
590590 let USDN = fromBase58String(getStringValue(this, usdn))
591591 let USDC = fromBase58String(getStringValue(this, usdc))
592592 let USDT = fromBase58String(getStringValue(this, usdt))
593593 let NGNN = fromBase58String(getStringValue(this, ngnn))
594594 let MainAsset = fromBase58String(getStringValue(this, main))
595595 let EURN = fromBase58String(getStringValue(this, eurn))
596596 let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2)))
597597 let totalAsset1 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false)
598598 let totalAsset2 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false)
599599 let feeRatePercentual = getIntegerValue(this, rateFee)
600600 let prAsset1 = (toBigInt(i.payments[0].amount) * fraction(toBigInt(D8), toBigInt(totalAsset2), toBigInt(totalAsset1)))
601601 let priceAsset1 = toInt(((prAsset1 - ((prAsset1 / toBigInt(feeRatePercentual)) * toBigInt(100))) / toBigInt(D8)))
602602 let prAsset2 = (toBigInt(i.payments[0].amount) * fraction(toBigInt(D8), toBigInt(totalAsset1), toBigInt(totalAsset2)))
603603 let priceAsset2 = toInt(((prAsset2 - ((prAsset2 / toBigInt(feeRatePercentual)) * toBigInt(100))) / toBigInt(D8)))
604604 let sendValue = if (if ((asset1 == unit))
605605 then (Asset1 == waves)
606606 else false)
607607 then priceAsset1
608608 else if ((asset1 == fromBase58String(Asset1)))
609609 then priceAsset1
610610 else priceAsset2
611611 let assetUpdatePay = if ((asset1 == unit))
612612 then waves
613613 else if ((asset1 == fromBase58String(Asset1)))
614614 then Asset1
615615 else Asset2
616616 let assetUpdateSwap = if ((asset1 == unit))
617617 then waves
618618 else if ((asset1 == fromBase58String(Asset1)))
619619 then Asset2
620620 else Asset1
621621 let assetSendSwap = if ((asset1 == unit))
622622 then WAVES
623623 else if ((asset1 == fromBase58String(Asset1)))
624624 then fromBase58String(Asset2)
625625 else fromBase58String(Asset1)
626626 if (power)
627627 then if (!(swapActivate))
628628 then if (if (!((Asset1 == Asset2)))
629629 then if (validateAsset(asset1, Asset1, acWaves))
630630 then true
631631 else validateAsset(asset1, Asset2, acWaves)
632632 else false)
633633 then if (if (if (if (if (if (if ((asset1 == USDN))
634634 then true
635635 else (asset1 == USDC))
636636 then true
637637 else (asset1 == USDT))
638638 then true
639639 else (asset1 == NGNN))
640640 then true
641641 else (asset1 == MainAsset))
642642 then true
643643 else (asset1 == EURN))
644644 then true
645645 else (asset1 == WAVES))
646646 then if ((key != false))
647647 then if ((i.payments[1].assetId == MainAsset))
648648 then if ((i.payments[1].amount == 300000))
649649 then if (if ((totalAsset1 > 2))
650650 then true
651651 else (totalAsset2 > 2))
652652 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))]
653653 else throw("Pool has no liquidity.")
654654 else throw("Swap denied! 0.003 AxAi is required for the swap fee.")
655655 else throw("Invalid rate asset")
656656 else throw("Invalid Swap Key.")
657657 else throw("Invalid Asset1 or Asset2!")
658658 else throw("Asset1 cannot be equal to Asset2")
659659 else throw("Swap is currently under maintenance.")
660660 else throw("dApp is currently under maintenance.")
661661 }
662662
663663
664664 @Verifier(tx)
665665 func verify () = match tx {
666666 case order: Order =>
667667 true
668668 case e: ExchangeTransaction =>
669669 true
670670 case tt: TransferTransaction =>
671671 (tt.recipient == Address(fromBase58String(getStringValue(this, "admin"))))
672672 case _ =>
673673 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
674674 }
675675

github/deemru/w8io/169f3d6 
79.08 ms