tx · 7856hPgqBeWZa6XSDr723QuvN74RJLLV17BcskfLTPYK 3MvHVN2te6mn591sw8iModitUUNeDfkEskC: -0.02800000 Waves 2022.07.10 20:48 [2133934] smart account 3MvHVN2te6mn591sw8iModitUUNeDfkEskC > SELF 0.00000000 Waves
{ "type": 13, "id": "7856hPgqBeWZa6XSDr723QuvN74RJLLV17BcskfLTPYK", "fee": 2800000, "feeAssetId": null, "timestamp": 1657475312141, "version": 2, "chainId": 84, "sender": "3MvHVN2te6mn591sw8iModitUUNeDfkEskC", "senderPublicKey": "AvjsUtUMUNBpu6SkRkEwWVuoem8wpHefcAzYhpa9HpRK", "proofs": [ "4bQEfbjK8rupbsVnp4gbGE6vugBGSX3wnBR9c1hFjLfTKvANLvjX3tNy3aJh1zaMEMhwYyxg2KruF7yZbdVSmVU6" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAA0QxMAAAAAACVAvkAAEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJAAQlAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEFAAAAB2FkZHJlc3MJAAEsAAAAAgkAASwAA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AAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnYRqaN", "height": 2133934, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DwkFdtZ778T4Fq81YufxJYjbpC7XUsW8RyJxfwgSDEs7 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let main = "main_asset" | |
5 | + | ||
6 | + | let l = "lp_asset_" | |
7 | + | ||
8 | + | let aa1 = "pool__" | |
9 | + | ||
10 | + | let sa = "STAKING_AMOUNT_" | |
11 | + | ||
12 | + | let la = "LEASE_AMOUNT_" | |
13 | + | ||
14 | + | let ix = "ID_" | |
15 | + | ||
16 | + | let rateFee = "percentage_rate_fee" | |
17 | + | ||
18 | + | let deposit_height = "Deposit_Height_Of_" | |
19 | + | ||
20 | + | let D8 = 100000000 | |
21 | + | ||
22 | + | let D6 = 1000000 | |
23 | + | ||
24 | + | let D10 = 10000000000 | |
25 | + | ||
26 | + | func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse " + address) + " as address"))) | |
27 | + | ||
28 | + | ||
29 | + | func getAssetIfValid (assetId) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(assetId))).id, (("Asset Id: " + assetId) + " is invalid."))) | |
30 | + | ||
31 | + | ||
32 | + | func getAmountBlockAsset (assetId) = match getInteger(this, assetId) { | |
33 | + | case i: Int => | |
34 | + | i | |
35 | + | case _ => | |
36 | + | 0 | |
37 | + | } | |
38 | + | ||
39 | + | ||
40 | + | func getAssetName (assetId) = match assetInfo(assetId) { | |
41 | + | case asset: Asset => | |
42 | + | asset.name | |
43 | + | case _ => | |
44 | + | throw("Can't find asset") | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | let ac = "activate" | |
49 | + | ||
50 | + | let poolAc = "activate_pools" | |
51 | + | ||
52 | + | let swapAc = "activate_swap" | |
53 | + | ||
54 | + | let liquidityAc = "activate_liquidity" | |
55 | + | ||
56 | + | let bcD = "block_distribuition" | |
57 | + | ||
58 | + | let total_locked = "Total_Tokens_Locked_" | |
59 | + | ||
60 | + | let usdn = "usdn_asset" | |
61 | + | ||
62 | + | let usdt = "usdt_asset" | |
63 | + | ||
64 | + | let usdc = "usdc_asset" | |
65 | + | ||
66 | + | let ngnn = "ngnn_asset" | |
67 | + | ||
68 | + | let eurn = "eurn_asset" | |
69 | + | ||
70 | + | let waves = "WAVES" | |
71 | + | ||
72 | + | let aWaves = "accept_waves" | |
73 | + | ||
74 | + | let WAVES = unit | |
75 | + | ||
76 | + | func kp (asset1,asset2) = (((aa1 + asset1) + "_") + asset2) | |
77 | + | ||
78 | + | ||
79 | + | func validPoolK (key) = match getInteger(this, key) { | |
80 | + | case i: Int => | |
81 | + | i | |
82 | + | case _ => | |
83 | + | false | |
84 | + | } | |
85 | + | ||
86 | + | ||
87 | + | func kpAddress (address,key) = match getInteger(this, ((key + "_") + address)) { | |
88 | + | case t: Int => | |
89 | + | t | |
90 | + | case _ => | |
91 | + | 0 | |
92 | + | } | |
93 | + | ||
94 | + | ||
95 | + | func poolAA (address,key,asset) = match getInteger(this, ((((address + "_") + key) + "_") + asset)) { | |
96 | + | case a: Int => | |
97 | + | a | |
98 | + | case _ => | |
99 | + | 0 | |
100 | + | } | |
101 | + | ||
102 | + | ||
103 | + | func assetP (key,asset) = match getInteger(this, ((key + "_") + asset)) { | |
104 | + | case a: Int => | |
105 | + | a | |
106 | + | case _ => | |
107 | + | 1 | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | func pkey (Asset1,Asset2,address) = (((deposit_height + kp(Asset1, Asset2)) + "_") + address) | |
112 | + | ||
113 | + | ||
114 | + | func lpBlocked (address,key) = match getInteger(this, ((("STAKE_LP_" + address) + "_") + key)) { | |
115 | + | case a: Int => | |
116 | + | a | |
117 | + | case _ => | |
118 | + | 0 | |
119 | + | } | |
120 | + | ||
121 | + | ||
122 | + | func adminVerification () = match getString(this, "admin") { | |
123 | + | case t: String => | |
124 | + | Address(fromBase58String(t)) | |
125 | + | case _ => | |
126 | + | this | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | func validateAsset (assetS,stringAsset,acWaves) = if (if ((assetS == WAVES)) | |
131 | + | then (stringAsset == "WAVES") | |
132 | + | else false) | |
133 | + | then if (acWaves) | |
134 | + | then true | |
135 | + | else throw("The smart contract does not currently support Waves.") | |
136 | + | else if ((assetS == fromBase58String(stringAsset))) | |
137 | + | then true | |
138 | + | else false | |
139 | + | ||
140 | + | ||
141 | + | func totalAssetPool (key,assetLp) = match getInteger(this, key) { | |
142 | + | case a: Int => | |
143 | + | a | |
144 | + | case _ => | |
145 | + | if (assetLp) | |
146 | + | then (1 * D8) | |
147 | + | else 1 | |
148 | + | } | |
149 | + | ||
150 | + | ||
151 | + | @Callable(i) | |
152 | + | func constructor (MainAssetId,UsdnAssetId,UsdtAssetId,UsdcAssetId,NgnnAssetId,EurnAssetId,percentageRateSwap,blockDistribution,acceptWaves) = if (if ((i.caller == this)) | |
153 | + | then true | |
154 | + | else (i.caller == adminVerification())) | |
155 | + | then { | |
156 | + | let keyPoolUsdnUsdt = kp(UsdnAssetId, UsdtAssetId) | |
157 | + | let keyPoolUsdnUsdc = kp(UsdnAssetId, UsdcAssetId) | |
158 | + | let keyPoolUsdnNgnn = kp(UsdnAssetId, NgnnAssetId) | |
159 | + | let keyPoolUsdnWaves = kp(UsdnAssetId, waves) | |
160 | + | let keyPoolUsdnMainAsset = kp(UsdnAssetId, MainAssetId) | |
161 | + | let keyPoolUsdnEurn = kp(UsdnAssetId, EurnAssetId) | |
162 | + | let keyPoolUsdcUsdt = kp(UsdcAssetId, UsdtAssetId) | |
163 | + | let keyPoolUsdcNgnn = kp(UsdcAssetId, NgnnAssetId) | |
164 | + | let keyPoolUsdcWaves = kp(UsdcAssetId, waves) | |
165 | + | let keyPoolUsdcMainAsset = kp(UsdcAssetId, MainAssetId) | |
166 | + | let keyPoolUsdcEurn = kp(UsdcAssetId, EurnAssetId) | |
167 | + | let keyPoolUsdtNgnn = kp(UsdtAssetId, NgnnAssetId) | |
168 | + | let keyPoolUsdtWaves = kp(UsdtAssetId, waves) | |
169 | + | let keyPoolUsdtMainAsset = kp(UsdtAssetId, MainAssetId) | |
170 | + | let keyPoolUsdtEurn = kp(UsdtAssetId, EurnAssetId) | |
171 | + | let keyPoolNgnnWaves = kp(NgnnAssetId, waves) | |
172 | + | let keyPoolNgnnMainAsset = kp(NgnnAssetId, MainAssetId) | |
173 | + | let keyPoolNgnnEurn = kp(NgnnAssetId, EurnAssetId) | |
174 | + | let keyPoolMainWaves = kp(MainAssetId, waves) | |
175 | + | let keyPoolMainEurn = kp(MainAssetId, EurnAssetId) | |
176 | + | let keyPoolEurnWaves = kp(EurnAssetId, waves) | |
177 | + | [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), StringEntry(eurn, EurnAssetId)] | |
178 | + | } | |
179 | + | else throw("Only the Admin itself can invoke this function") | |
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | @Callable(i) | |
184 | + | func activate (v) = if (if ((i.caller == this)) | |
185 | + | then true | |
186 | + | else (i.caller == adminVerification())) | |
187 | + | then [BooleanEntry(ac, v)] | |
188 | + | else throw("Only the Admin itself can invoke this function") | |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | @Callable(i) | |
193 | + | func maintenance (pools,swap,stake) = if (if ((i.caller == this)) | |
194 | + | then true | |
195 | + | else (i.caller == adminVerification())) | |
196 | + | then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake)] | |
197 | + | else throw("Only the Admin itself can invoke this function") | |
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | @Callable(i) | |
202 | + | func percentualRateFeeSwapEdit (rate) = if (if ((i.caller == this)) | |
203 | + | then true | |
204 | + | else (i.caller == adminVerification())) | |
205 | + | then [IntegerEntry(rateFee, rate)] | |
206 | + | else throw("Only the Admin itself can invoke this function") | |
207 | + | ||
208 | + | ||
209 | + | ||
210 | + | @Callable(i) | |
211 | + | func acceptWaves (activate) = if (if ((i.caller == this)) | |
212 | + | then true | |
213 | + | else (i.caller == adminVerification())) | |
214 | + | then [BooleanEntry(aWaves, activate)] | |
215 | + | else throw("Only the Admin itself can invoke this function") | |
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | @Callable(i) | |
220 | + | func blockDistribution (newValue) = if (if ((i.caller == this)) | |
221 | + | then true | |
222 | + | else (i.caller == adminVerification())) | |
223 | + | then [IntegerEntry(bcD, newValue)] | |
224 | + | else throw("Only the Admin itself can invoke this function") | |
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | @Callable(i) | |
229 | + | func addAdmin (address) = if (if ((i.caller == this)) | |
230 | + | then true | |
231 | + | else (i.caller == adminVerification())) | |
232 | + | then [StringEntry("admin", address)] | |
233 | + | else throw("Only the Admin itself can invoke this function") | |
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | @Callable(i) | |
238 | + | func lpAssetCreateForPairPool (asset1,asset2,Name,customName) = { | |
239 | + | let nameAsset1 = if ((asset1 == waves)) | |
240 | + | then waves | |
241 | + | else getAssetName(fromBase58String(asset1)) | |
242 | + | let nameAsset2 = if ((asset2 == waves)) | |
243 | + | then waves | |
244 | + | else getAssetName(fromBase58String(asset2)) | |
245 | + | let name = if (customName) | |
246 | + | then Name | |
247 | + | else ((nameAsset1 + "_") + nameAsset2) | |
248 | + | let key = validPoolK(kp(asset1, asset2)) | |
249 | + | if (if ((i.caller == this)) | |
250 | + | then true | |
251 | + | else (i.caller == adminVerification())) | |
252 | + | then if ((key != false)) | |
253 | + | then { | |
254 | + | let assetLpCreate = Issue(name, ((("LP asset for pool liquidity in AxAi Swap pair " + asset1) + "_") + asset2), (1 * D8), 8, true) | |
255 | + | let idAssetLp = calculateAssetId(assetLpCreate) | |
256 | + | [StringEntry((l + kp(asset1, asset2)), toBase58String(idAssetLp)), assetLpCreate] | |
257 | + | } | |
258 | + | else throw("Invalid Pool Key. Try inverting the assets") | |
259 | + | else throw("Only the Admin itself can invoke this function") | |
260 | + | } | |
261 | + | ||
262 | + | ||
263 | + | ||
264 | + | @Callable(i) | |
265 | + | func deposit (pool,Asset1,Asset2) = { | |
266 | + | let power = getBooleanValue(this, ac) | |
267 | + | let liquidityPower = getBooleanValue(this, liquidityAc) | |
268 | + | let MainAsset = getStringValue(this, main) | |
269 | + | let lpAssetId = if (pool) | |
270 | + | then getStringValue(this, (l + kp(Asset1, Asset2))) | |
271 | + | else MainAsset | |
272 | + | if (power) | |
273 | + | then if (!(liquidityPower)) | |
274 | + | then if ((i.payments[0].assetId != fromBase58String(lpAssetId))) | |
275 | + | then throw((("Invalid asset! Kindly Deposit Only " + MainAsset) + " or valid asset lp")) | |
276 | + | else if (!(pool)) | |
277 | + | then { | |
278 | + | let currentKey = toBase58String(i.caller.bytes) | |
279 | + | let currentAmount = match getInteger(this, currentKey) { | |
280 | + | case a: Int => | |
281 | + | a | |
282 | + | case _ => | |
283 | + | 0 | |
284 | + | } | |
285 | + | let newAmount = (currentAmount + i.payments[0].amount) | |
286 | + | let useramount = IntegerEntry(currentKey, newAmount) | |
287 | + | let userdepositheight = IntegerEntry((deposit_height + currentKey), height) | |
288 | + | let previouslockbalance = match getInteger(this, "Total_Tokens_Locked:") { | |
289 | + | case a: Int => | |
290 | + | a | |
291 | + | case _ => | |
292 | + | 0 | |
293 | + | } | |
294 | + | let totaltoken = (previouslockbalance + i.payments[0].amount) | |
295 | + | let TLV = IntegerEntry("Total_Tokens_Locked:", totaltoken) | |
296 | + | [useramount, userdepositheight, TLV] | |
297 | + | } | |
298 | + | else { | |
299 | + | let poolKey = kp(Asset1, Asset2) | |
300 | + | let key = validPoolK(poolKey) | |
301 | + | if ((key != false)) | |
302 | + | then { | |
303 | + | let currentKey = toBase58String(i.caller.bytes) | |
304 | + | let currentAmount = match getInteger(this, ((("STAKE_LP_" + currentKey) + "_") + poolKey)) { | |
305 | + | case a: Int => | |
306 | + | a | |
307 | + | case _ => | |
308 | + | 0 | |
309 | + | } | |
310 | + | let newAmount = (currentAmount + i.payments[0].amount) | |
311 | + | let useramount = IntegerEntry(((("STAKE_LP_" + currentKey) + "_") + poolKey), newAmount) | |
312 | + | let userdepositheight = IntegerEntry(((((deposit_height + "_") + currentKey) + "_") + poolKey), height) | |
313 | + | let previouslockbalance = match getInteger(this, ("Total_Tokens_LP_Locked_" + poolKey)) { | |
314 | + | case a: Int => | |
315 | + | a | |
316 | + | case _ => | |
317 | + | 0 | |
318 | + | } | |
319 | + | let totaltoken = (previouslockbalance + i.payments[0].amount) | |
320 | + | let TLV = IntegerEntry(("Total_Tokens_LP_Locked_" + poolKey), totaltoken) | |
321 | + | [useramount, userdepositheight, TLV] | |
322 | + | } | |
323 | + | else throw("Invalid Pool key.") | |
324 | + | } | |
325 | + | else throw("liquidity is currently under maintenance.") | |
326 | + | else throw("dApp is currently under maintenance.") | |
327 | + | } | |
328 | + | ||
329 | + | ||
330 | + | ||
331 | + | @Callable(i) | |
332 | + | func remove (pool,Asset1,Asset2,amount) = { | |
333 | + | let power = getBooleanValue(this, ac) | |
334 | + | let liquidityPower = getBooleanValue(this, liquidityAc) | |
335 | + | let pmt = i.payments[0] | |
336 | + | let MainAsset = fromBase58String(getStringValue(this, main)) | |
337 | + | if (power) | |
338 | + | then if (!(liquidityPower)) | |
339 | + | then { | |
340 | + | let currentKey = toBase58String(i.caller.bytes) | |
341 | + | let currentAmount = match if (pool) | |
342 | + | then getIntegerValue(this, ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2))) | |
343 | + | else getIntegerValue(this, currentKey) { | |
344 | + | case a: Int => | |
345 | + | a | |
346 | + | case _ => | |
347 | + | 0 | |
348 | + | } | |
349 | + | let swapheightkeyname = if (pool) | |
350 | + | then ((((deposit_height + "_") + currentKey) + "_") + kp(Asset1, Asset2)) | |
351 | + | else (deposit_height + currentKey) | |
352 | + | let previouslockbalance = if (pool) | |
353 | + | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2))) | |
354 | + | else getIntegerValue(this, "Total_Tokens_Locked:") | |
355 | + | let totaltoken = (previouslockbalance - amount) | |
356 | + | let diff = (height - getIntegerValue(this, swapheightkeyname)) | |
357 | + | let bcd = getIntegerValue(this, bcD) | |
358 | + | let reward = ((diff * bcd) * D8) | |
359 | + | let feeCalc = (reward / (previouslockbalance / amount)) | |
360 | + | if ((0 > amount)) | |
361 | + | then throw(if (pool) | |
362 | + | then (((("Can't withdraw negative " + Asset1) + "/") + Asset2) + " amount") | |
363 | + | else "Can't withdraw negative AxAi amount") | |
364 | + | else { | |
365 | + | let newAmount = (currentAmount - amount) | |
366 | + | if ((0 > newAmount)) | |
367 | + | then throw(if (pool) | |
368 | + | then (((("Not enough Asset Lp " + Asset1) + "/") + Asset2) + " balance") | |
369 | + | else "Not enough AxAi balance") | |
370 | + | else [IntegerEntry(if (pool) | |
371 | + | then ((("STAKE_LP_" + currentKey) + "_") + kp(Asset1, Asset2)) | |
372 | + | else currentKey, newAmount), IntegerEntry(if (pool) | |
373 | + | then ("Total_Tokens_LP_Locked_" + kp(Asset1, Asset2)) | |
374 | + | else "Total_Tokens_Locked:", totaltoken), ScriptTransfer(i.caller, amount, if (pool) | |
375 | + | then fromBase58String(getStringValue(this, (l + kp(Asset1, Asset2)))) | |
376 | + | else MainAsset), ScriptTransfer(i.caller, feeCalc, MainAsset)] | |
377 | + | } | |
378 | + | } | |
379 | + | else throw("liquidity is currently under maintenance.") | |
380 | + | else throw("dApp is currently under maintenance.") | |
381 | + | } | |
382 | + | ||
383 | + | ||
384 | + | ||
385 | + | @Callable(i) | |
386 | + | func addLiquidity (Asset1,Asset2) = { | |
387 | + | let power = getBooleanValue(this, ac) | |
388 | + | let poolActivate = getBooleanValue(this, poolAc) | |
389 | + | let acWaves = getBooleanValue(this, aWaves) | |
390 | + | let key = validPoolK(kp(Asset1, Asset2)) | |
391 | + | let asset1 = i.payments[0].assetId | |
392 | + | let asset2 = i.payments[1].assetId | |
393 | + | let USDN = fromBase58String(getStringValue(this, usdn)) | |
394 | + | let USDC = fromBase58String(getStringValue(this, usdc)) | |
395 | + | let USDT = fromBase58String(getStringValue(this, usdt)) | |
396 | + | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
397 | + | let EURN = fromBase58String(getStringValue(this, eurn)) | |
398 | + | let MainAsset = fromBase58String(getStringValue(this, main)) | |
399 | + | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
400 | + | let totalAsset1Pool = if ((2 > totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false))) | |
401 | + | then i.payments[0].amount | |
402 | + | else totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false) | |
403 | + | let totalAsset2Pool = if ((2 > totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false))) | |
404 | + | then i.payments[1].amount | |
405 | + | else totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false) | |
406 | + | let Validate = if ((totalAsset1Pool == i.payments[0].amount)) | |
407 | + | then true | |
408 | + | else if (((i.payments[1].amount / i.payments[0].amount) > (i.payments[0].amount / i.payments[1].amount))) | |
409 | + | then if (((i.payments[1].amount / i.payments[0].amount) == (totalAsset2Pool / totalAsset1Pool))) | |
410 | + | then true | |
411 | + | else false | |
412 | + | else if (((i.payments[0].amount / i.payments[1].amount) == (totalAsset1Pool / totalAsset2Pool))) | |
413 | + | then true | |
414 | + | else false | |
415 | + | let totalLp = totalAssetPool(lpAssetId, true) | |
416 | + | if (power) | |
417 | + | then if (!(poolActivate)) | |
418 | + | then if (if (if (!((asset1 == asset2))) | |
419 | + | then validateAsset(asset1, Asset1, acWaves) | |
420 | + | else false) | |
421 | + | then validateAsset(asset2, Asset2, acWaves) | |
422 | + | else false) | |
423 | + | then if (if (if (if (if (if (if (if ((asset1 == USDN)) | |
424 | + | then true | |
425 | + | else (asset1 == USDC)) | |
426 | + | then true | |
427 | + | else (asset1 == USDT)) | |
428 | + | then true | |
429 | + | else (asset1 == NGNN)) | |
430 | + | then true | |
431 | + | else (asset1 == MainAsset)) | |
432 | + | then true | |
433 | + | else (asset1 == WAVES)) | |
434 | + | then true | |
435 | + | else (asset1 == EURN)) | |
436 | + | then if (if (if (if (if (if ((asset2 == USDN)) | |
437 | + | then true | |
438 | + | else (asset2 == USDC)) | |
439 | + | then true | |
440 | + | else (asset2 == USDT)) | |
441 | + | then true | |
442 | + | else (asset2 == NGNN)) | |
443 | + | then true | |
444 | + | else (asset2 == MainAsset)) | |
445 | + | then true | |
446 | + | else (asset2 == WAVES)) | |
447 | + | then true | |
448 | + | else (asset2 == EURN) | |
449 | + | else false) | |
450 | + | then if ((key != false)) | |
451 | + | then if (Validate) | |
452 | + | then { | |
453 | + | let currentKey = toBase58String(i.caller.bytes) | |
454 | + | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
455 | + | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
456 | + | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
457 | + | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
458 | + | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
459 | + | let receiveLp = ((i.payments[0].amount + i.payments[1].amount) / ((totalAsset1Pool + totalAsset2Pool) / totalLp)) | |
460 | + | let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount) | |
461 | + | let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount) | |
462 | + | let newcurrentAmount = (currentAmount + receiveLp) | |
463 | + | let newasset1pool = (asset1pool + i.payments[0].amount) | |
464 | + | let newasset2pool = (asset2pool + i.payments[1].amount) | |
465 | + | [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))] | |
466 | + | } | |
467 | + | else throw("Payment of invalid 1/1 amounts to the Pool.") | |
468 | + | else throw("Invalid Pool Key.") | |
469 | + | else throw("Invalid Asset1 or Asset2!") | |
470 | + | else throw("Asset1 cannot be equal to Asset2") | |
471 | + | else throw("liquidity is currently under maintenance.") | |
472 | + | else throw("dApp is currently under maintenance.") | |
473 | + | } | |
474 | + | ||
475 | + | ||
476 | + | ||
477 | + | @Callable(i) | |
478 | + | func removeLiquidity (Asset1,Asset2,Amount) = { | |
479 | + | let currentKey = toBase58String(i.caller.bytes) | |
480 | + | let power = getBooleanValue(this, ac) | |
481 | + | let poolActivate = getBooleanValue(this, poolAc) | |
482 | + | let acWaves = getBooleanValue(this, aWaves) | |
483 | + | let poolKey = kp(Asset1, Asset2) | |
484 | + | let key = validPoolK(poolKey) | |
485 | + | let asset1 = if ((Asset1 == waves)) | |
486 | + | then if (acWaves) | |
487 | + | then WAVES | |
488 | + | else throw("The smart contract does not currently support Waves.") | |
489 | + | else fromBase58String(Asset1) | |
490 | + | let asset2 = if ((Asset2 == waves)) | |
491 | + | then if (acWaves) | |
492 | + | then WAVES | |
493 | + | else throw("The smart contract does not currently support Waves.") | |
494 | + | else fromBase58String(Asset2) | |
495 | + | let USDN = fromBase58String(getStringValue(this, usdn)) | |
496 | + | let USDC = fromBase58String(getStringValue(this, usdc)) | |
497 | + | let USDT = fromBase58String(getStringValue(this, usdt)) | |
498 | + | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
499 | + | let MainAsset = fromBase58String(getStringValue(this, main)) | |
500 | + | let EURN = fromBase58String(getStringValue(this, eurn)) | |
501 | + | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
502 | + | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
503 | + | let amountLpBlocked = lpBlocked(currentKey, poolKey) | |
504 | + | let totalLP = getIntegerValue(this, lpAssetId) | |
505 | + | let totalAsset1Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false) | |
506 | + | let totalAsset2Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false) | |
507 | + | if (power) | |
508 | + | then if (!(poolActivate)) | |
509 | + | then if (!((Asset1 == Asset2))) | |
510 | + | then if (if (if (if (if (if (if (if ((asset1 == USDN)) | |
511 | + | then true | |
512 | + | else (asset1 == USDC)) | |
513 | + | then true | |
514 | + | else (asset1 == USDT)) | |
515 | + | then true | |
516 | + | else (asset1 == NGNN)) | |
517 | + | then true | |
518 | + | else (asset1 == MainAsset)) | |
519 | + | then true | |
520 | + | else (asset1 == WAVES)) | |
521 | + | then true | |
522 | + | else (asset1 == EURN)) | |
523 | + | then if (if (if (if (if (if ((asset2 == USDN)) | |
524 | + | then true | |
525 | + | else (asset2 == USDC)) | |
526 | + | then true | |
527 | + | else (asset2 == USDT)) | |
528 | + | then true | |
529 | + | else (asset2 == NGNN)) | |
530 | + | then true | |
531 | + | else (asset2 == MainAsset)) | |
532 | + | then true | |
533 | + | else (asset2 == WAVES)) | |
534 | + | then true | |
535 | + | else (asset2 == EURN) | |
536 | + | else false) | |
537 | + | then if ((key != false)) | |
538 | + | then if (!((currentAmount == 0))) | |
539 | + | then if (((currentAmount - amountLpBlocked) >= Amount)) | |
540 | + | then { | |
541 | + | let calcLP = (Amount / totalLP) | |
542 | + | let receiveAsset1 = (calcLP * totalAsset1Pool) | |
543 | + | let receiveAsset2 = (calcLP * totalAsset2Pool) | |
544 | + | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
545 | + | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
546 | + | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
547 | + | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
548 | + | let newcurrentAmountAsset1 = (currentAmountAsset1 - receiveAsset1) | |
549 | + | let newcurrentAmountAsset2 = (currentAmountAsset2 - receiveAsset2) | |
550 | + | let newcurrentAmount = (currentAmount - Amount) | |
551 | + | let newasset1pool = (asset1pool - receiveAsset1) | |
552 | + | let newasset2pool = (asset2pool - receiveAsset2) | |
553 | + | if ((i.payments[0].assetId == fromBase58String(lpAssetId))) | |
554 | + | then if ((Amount == i.payments[0].amount)) | |
555 | + | 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))] | |
556 | + | else throw("Withdrawal amount lower than asset lp amount") | |
557 | + | else throw("Requires an lp asset as payment to remove locked amounts.") | |
558 | + | } | |
559 | + | else throw("Amount to be withdrawn greater than the amount available for withdrawal.") | |
560 | + | else throw("You have no locked values in the pool") | |
561 | + | else throw("Invalid Pool Key.") | |
562 | + | else throw("Invalid Asset1 or Asset2!") | |
563 | + | else throw("Asset1 cannot be equal to Asset2") | |
564 | + | else throw("liquidity is currently under maintenance.") | |
565 | + | else throw("dApp is currently under maintenance.") | |
566 | + | } | |
567 | + | ||
568 | + | ||
569 | + | ||
570 | + | @Callable(i) | |
571 | + | func swap (Asset1,Asset2) = { | |
572 | + | let currentKey = toBase58String(i.caller.bytes) | |
573 | + | let acWaves = getBooleanValue(this, aWaves) | |
574 | + | let power = getBooleanValue(this, ac) | |
575 | + | let swapActivate = getBooleanValue(this, swapAc) | |
576 | + | let poolKey = kp(Asset1, Asset2) | |
577 | + | let key = validPoolK(poolKey) | |
578 | + | let asset1 = i.payments[0].assetId | |
579 | + | let USDN = fromBase58String(getStringValue(this, usdn)) | |
580 | + | let USDC = fromBase58String(getStringValue(this, usdc)) | |
581 | + | let USDT = fromBase58String(getStringValue(this, usdt)) | |
582 | + | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
583 | + | let MainAsset = fromBase58String(getStringValue(this, main)) | |
584 | + | let EURN = fromBase58String(getStringValue(this, eurn)) | |
585 | + | let totalAsset1 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false) | |
586 | + | let totalAsset2 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false) | |
587 | + | let feeRatePercentual = getIntegerValue(this, rateFee) | |
588 | + | if (power) | |
589 | + | then if (!(swapActivate)) | |
590 | + | then if (if (!((Asset1 == Asset2))) | |
591 | + | then if (validateAsset(asset1, Asset1, acWaves)) | |
592 | + | then true | |
593 | + | else validateAsset(asset1, Asset2, acWaves) | |
594 | + | else false) | |
595 | + | then if (if (if (if (if (if (if ((asset1 == USDN)) | |
596 | + | then true | |
597 | + | else (asset1 == USDC)) | |
598 | + | then true | |
599 | + | else (asset1 == USDT)) | |
600 | + | then true | |
601 | + | else (asset1 == NGNN)) | |
602 | + | then true | |
603 | + | else (asset1 == MainAsset)) | |
604 | + | then true | |
605 | + | else (asset1 == EURN)) | |
606 | + | then true | |
607 | + | else (asset1 == WAVES)) | |
608 | + | then if ((key != false)) | |
609 | + | then if ((i.payments[1].assetId == MainAsset)) | |
610 | + | then if ((i.payments[1].amount == 300000)) | |
611 | + | then if (if ((totalAsset1 > 2)) | |
612 | + | then true | |
613 | + | else (totalAsset2 > 2)) | |
614 | + | then { | |
615 | + | let valueAsset = if (!((asset1 == fromBase58String(Asset1)))) | |
616 | + | then (totalAsset1 / totalAsset2) | |
617 | + | else (totalAsset2 / totalAsset1) | |
618 | + | let newValue = (i.payments[0].amount - ((i.payments[0].amount * feeRatePercentual) / (100 * D8))) | |
619 | + | let sendValue = (newValue * valueAsset) | |
620 | + | [ScriptTransfer(Address(i.caller.bytes), sendValue, if ((asset1 == fromBase58String(Asset2))) | |
621 | + | then if ((Asset2 == waves)) | |
622 | + | then WAVES | |
623 | + | else fromBase58String(Asset1) | |
624 | + | else if ((Asset1 == waves)) | |
625 | + | then WAVES | |
626 | + | else fromBase58String(Asset2)), IntegerEntry(Asset2, (getAmountBlockAsset(Asset2) - sendValue)), IntegerEntry(((kp(Asset1, Asset2) + "_") + Asset2), (assetP(kp(Asset1, Asset2), Asset2) - sendValue))] | |
627 | + | } | |
628 | + | else throw("Pool has no liquidity.") | |
629 | + | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
630 | + | else throw("Invalid rate asset") | |
631 | + | else throw("Invalid Swap Key.") | |
632 | + | else throw("Invalid Asset1 or Asset2!") | |
633 | + | else throw("Asset1 cannot be equal to Asset2") | |
634 | + | else throw("Swap is currently under maintenance.") | |
635 | + | else throw("dApp is currently under maintenance.") | |
636 | + | } | |
637 | + | ||
638 | + | ||
639 | + | @Verifier(tx) | |
640 | + | func verify () = match tx { | |
641 | + | case order: Order => | |
642 | + | true | |
643 | + | case e: ExchangeTransaction => | |
644 | + | true | |
645 | + | case _ => | |
646 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
647 | + | } | |
648 | + |
github/deemru/w8io/169f3d6 44.74 ms ◑