tx · 4FU3KLm9ecxTbrRHJSzuo8ZtJrVt6DdNBLtuCoQ3fJkT 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU: -0.03400000 Waves 2022.07.11 23:15 [2135541] smart account 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU > SELF 0.00000000 Waves
{ "type": 13, "id": "4FU3KLm9ecxTbrRHJSzuo8ZtJrVt6DdNBLtuCoQ3fJkT", "fee": 3400000, "feeAssetId": null, "timestamp": 1657570395703, "version": 2, "chainId": 84, "sender": "3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU", "senderPublicKey": "GDio3pYFUMSWQ3yen7TJP79nTPaGuPbxjKixvKLuYS8E", "proofs": [ "5dfHrLDSMeyg4EaZZqbLgasr8t1d68FDz4afoBHGtADtYgy6fUi15pLLsECKX7yAwyHmz4vz8GUo2fqwrz9BTTVY" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAA0QxMAAAAAACVAvkAAEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJAAQlAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJ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JAAJYAAAAAQUAAAAJTWFpbkFzc2V0CQAAZAAAAAIJAQAAABNnZXRBbW91bnRCbG9ja0Fzc2V0AAAAAQkAAlgAAAABBQAAAAlNYWluQXNzZXQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABAAAABmFtb3VudAUAAAADbmlsCQAAAgAAAAECAAAAFlBvb2wgaGFzIG5vIGxpcXVpZGl0eS4JAAACAAAAAQIAAAA1U3dhcCBkZW5pZWQhIDAuMDAzIEF4QWkgaXMgcmVxdWlyZWQgZm9yIHRoZSBzd2FwIGZlZS4JAAACAAAAAQIAAAASSW52YWxpZCByYXRlIGFzc2V0CQAAAgAAAAECAAAAEUludmFsaWQgU3dhcCBLZXkuCQAAAgAAAAECAAAAGUludmFsaWQgQXNzZXQxIG9yIEFzc2V0MiEJAAACAAAAAQIAAAAgQXNzZXQxIGNhbm5vdCBiZSBlcXVhbCB0byBBc3NldDIJAAACAAAAAQIAAAAkU3dhcCBpcyBjdXJyZW50bHkgdW5kZXIgbWFpbnRlbmFuY2UuCQAAAgAAAAECAAAAJGRBcHAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAAFb3JkZXIFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXknhBrF", "height": 2135541, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 6y8f86zgbPqT8cPRGDqeHaSwNNkza3zFJN6QTcw11eKr 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 totalLp = totalAssetPool(lpAssetId, true) | |
407 | + | let priceLpAsset = ((totalAsset1Pool + totalAsset2Pool) / totalLp) | |
408 | + | let quantityAsset2 = (i.payments[0].amount * (totalAsset2Pool / totalAsset1Pool)) | |
409 | + | let Validate = if ((i.payments[1].amount == quantityAsset2)) | |
410 | + | then true | |
411 | + | else false | |
412 | + | if (power) | |
413 | + | then if (!(poolActivate)) | |
414 | + | then if (if (if (!((asset1 == asset2))) | |
415 | + | then validateAsset(asset1, Asset1, acWaves) | |
416 | + | else false) | |
417 | + | then validateAsset(asset2, Asset2, acWaves) | |
418 | + | else false) | |
419 | + | then if (if (if (if (if (if (if (if ((asset1 == USDN)) | |
420 | + | then true | |
421 | + | else (asset1 == USDC)) | |
422 | + | then true | |
423 | + | else (asset1 == USDT)) | |
424 | + | then true | |
425 | + | else (asset1 == NGNN)) | |
426 | + | then true | |
427 | + | else (asset1 == MainAsset)) | |
428 | + | then true | |
429 | + | else (asset1 == WAVES)) | |
430 | + | then true | |
431 | + | else (asset1 == EURN)) | |
432 | + | then if (if (if (if (if (if ((asset2 == USDN)) | |
433 | + | then true | |
434 | + | else (asset2 == USDC)) | |
435 | + | then true | |
436 | + | else (asset2 == USDT)) | |
437 | + | then true | |
438 | + | else (asset2 == NGNN)) | |
439 | + | then true | |
440 | + | else (asset2 == MainAsset)) | |
441 | + | then true | |
442 | + | else (asset2 == WAVES)) | |
443 | + | then true | |
444 | + | else (asset2 == EURN) | |
445 | + | else false) | |
446 | + | then if ((key != false)) | |
447 | + | then if (Validate) | |
448 | + | then { | |
449 | + | let currentKey = toBase58String(i.caller.bytes) | |
450 | + | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
451 | + | let currentAmountAsset1 = poolAA(currentKey, kp(Asset1, Asset2), Asset1) | |
452 | + | let currentAmountAsset2 = poolAA(currentKey, kp(Asset1, Asset2), Asset2) | |
453 | + | let asset1pool = assetP(kp(Asset1, Asset2), Asset1) | |
454 | + | let asset2pool = assetP(kp(Asset1, Asset2), Asset2) | |
455 | + | let receiveLp = if ((totalAsset1Pool == i.payments[0].amount)) | |
456 | + | then (1 * D8) | |
457 | + | else ((i.payments[0].amount + i.payments[1].amount) / ((totalAsset1Pool + totalAsset2Pool) / totalLp)) | |
458 | + | let newcurrentAmountAsset1 = (currentAmountAsset1 + i.payments[0].amount) | |
459 | + | let newcurrentAmountAsset2 = (currentAmountAsset2 + i.payments[1].amount) | |
460 | + | let newcurrentAmount = (currentAmount + receiveLp) | |
461 | + | let newasset1pool = (asset1pool + i.payments[0].amount) | |
462 | + | let newasset2pool = (asset2pool + i.payments[1].amount) | |
463 | + | [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))] | |
464 | + | } | |
465 | + | 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))) | |
466 | + | else throw("Invalid Pool Key.") | |
467 | + | else throw("Invalid Asset1 or Asset2!") | |
468 | + | else throw("Asset1 cannot be equal to Asset2") | |
469 | + | else throw("liquidity is currently under maintenance.") | |
470 | + | else throw("dApp is currently under maintenance.") | |
471 | + | } | |
472 | + | ||
473 | + | ||
474 | + | ||
475 | + | @Callable(i) | |
476 | + | func removeLiquidity (Asset1,Asset2,Amount) = { | |
477 | + | let currentKey = toBase58String(i.caller.bytes) | |
478 | + | let power = getBooleanValue(this, ac) | |
479 | + | let poolActivate = getBooleanValue(this, poolAc) | |
480 | + | let acWaves = getBooleanValue(this, aWaves) | |
481 | + | let poolKey = kp(Asset1, Asset2) | |
482 | + | let key = validPoolK(poolKey) | |
483 | + | let asset1 = if ((Asset1 == waves)) | |
484 | + | then if (acWaves) | |
485 | + | then WAVES | |
486 | + | else throw("The smart contract does not currently support Waves.") | |
487 | + | else fromBase58String(Asset1) | |
488 | + | let asset2 = if ((Asset2 == waves)) | |
489 | + | then if (acWaves) | |
490 | + | then WAVES | |
491 | + | else throw("The smart contract does not currently support Waves.") | |
492 | + | else fromBase58String(Asset2) | |
493 | + | let USDN = fromBase58String(getStringValue(this, usdn)) | |
494 | + | let USDC = fromBase58String(getStringValue(this, usdc)) | |
495 | + | let USDT = fromBase58String(getStringValue(this, usdt)) | |
496 | + | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
497 | + | let MainAsset = fromBase58String(getStringValue(this, main)) | |
498 | + | let EURN = fromBase58String(getStringValue(this, eurn)) | |
499 | + | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
500 | + | let currentAmount = kpAddress(currentKey, kp(Asset1, Asset2)) | |
501 | + | let amountLpBlocked = lpBlocked(currentKey, poolKey) | |
502 | + | let totalLP = totalAssetPool(lpAssetId, true) | |
503 | + | let totalAsset1Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false) | |
504 | + | let totalAsset2Pool = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false) | |
505 | + | if (power) | |
506 | + | then if (!(poolActivate)) | |
507 | + | then if (!((Asset1 == Asset2))) | |
508 | + | then if (if (if (if (if (if (if (if ((asset1 == USDN)) | |
509 | + | then true | |
510 | + | else (asset1 == USDC)) | |
511 | + | then true | |
512 | + | else (asset1 == USDT)) | |
513 | + | then true | |
514 | + | else (asset1 == NGNN)) | |
515 | + | then true | |
516 | + | else (asset1 == MainAsset)) | |
517 | + | then true | |
518 | + | else (asset1 == WAVES)) | |
519 | + | then true | |
520 | + | else (asset1 == EURN)) | |
521 | + | then if (if (if (if (if (if ((asset2 == USDN)) | |
522 | + | then true | |
523 | + | else (asset2 == USDC)) | |
524 | + | then true | |
525 | + | else (asset2 == USDT)) | |
526 | + | then true | |
527 | + | else (asset2 == NGNN)) | |
528 | + | then true | |
529 | + | else (asset2 == MainAsset)) | |
530 | + | then true | |
531 | + | else (asset2 == WAVES)) | |
532 | + | then true | |
533 | + | else (asset2 == EURN) | |
534 | + | else false) | |
535 | + | then if ((key != false)) | |
536 | + | then if (!((currentAmount == 0))) | |
537 | + | then if (((currentAmount - amountLpBlocked) >= Amount)) | |
538 | + | then if (if ((totalAsset1Pool > 2)) | |
539 | + | then true | |
540 | + | else (totalAsset2Pool > 2)) | |
541 | + | then { | |
542 | + | let receiveAsset1 = toInt(((fraction(toBigInt(i.payments[0].amount), toBigInt(D8), toBigInt(totalLP)) * toBigInt(totalAsset1Pool)) / toBigInt(D8))) | |
543 | + | let receiveAsset2 = toInt(((fraction(toBigInt(i.payments[0].amount), toBigInt(D8), toBigInt(totalLP)) * toBigInt(totalAsset2Pool)) / toBigInt(D8))) | |
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. Your Lp amount available: " + toString(Amount))) | |
557 | + | else throw("Requires an lp asset as payment to remove locked amounts.") | |
558 | + | } | |
559 | + | else throw("Pool has no liquidity.") | |
560 | + | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(Amount))) | |
561 | + | else throw("You have no locked values in the pool") | |
562 | + | else throw("Invalid Pool Key.") | |
563 | + | else throw("Invalid Asset1 or Asset2!") | |
564 | + | else throw("Asset1 cannot be equal to Asset2") | |
565 | + | else throw("liquidity is currently under maintenance.") | |
566 | + | else throw("dApp is currently under maintenance.") | |
567 | + | } | |
568 | + | ||
569 | + | ||
570 | + | ||
571 | + | @Callable(i) | |
572 | + | func swap (Asset1,Asset2) = { | |
573 | + | let currentKey = toBase58String(i.caller.bytes) | |
574 | + | let acWaves = getBooleanValue(this, aWaves) | |
575 | + | let power = getBooleanValue(this, ac) | |
576 | + | let swapActivate = getBooleanValue(this, swapAc) | |
577 | + | let poolKey = kp(Asset1, Asset2) | |
578 | + | let key = validPoolK(poolKey) | |
579 | + | let asset1 = i.payments[0].assetId | |
580 | + | let USDN = fromBase58String(getStringValue(this, usdn)) | |
581 | + | let USDC = fromBase58String(getStringValue(this, usdc)) | |
582 | + | let USDT = fromBase58String(getStringValue(this, usdt)) | |
583 | + | let NGNN = fromBase58String(getStringValue(this, ngnn)) | |
584 | + | let MainAsset = fromBase58String(getStringValue(this, main)) | |
585 | + | let EURN = fromBase58String(getStringValue(this, eurn)) | |
586 | + | let lpAssetId = getStringValue(this, (l + kp(Asset1, Asset2))) | |
587 | + | let totalAsset1 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset1), false) | |
588 | + | let totalAsset2 = totalAssetPool(((kp(Asset1, Asset2) + "_") + Asset2), false) | |
589 | + | let feeRatePercentual = getIntegerValue(this, rateFee) | |
590 | + | let priceAsset1 = toInt(((toBigInt(i.payments[0].amount) * fraction(toBigInt(D8), toBigInt(totalAsset2), toBigInt(totalAsset1))) / toBigInt(D8))) | |
591 | + | let priceAsset2 = toInt(((toBigInt(i.payments[0].amount) * fraction(toBigInt(D8), toBigInt(totalAsset1), toBigInt(totalAsset2))) / toBigInt(D8))) | |
592 | + | let sendValue = if (if ((asset1 == unit)) | |
593 | + | then (Asset1 == waves) | |
594 | + | else false) | |
595 | + | then priceAsset1 | |
596 | + | else if ((asset1 == fromBase58String(Asset1))) | |
597 | + | then priceAsset1 | |
598 | + | else priceAsset2 | |
599 | + | let assetUpdatePay = if ((asset1 == unit)) | |
600 | + | then waves | |
601 | + | else if ((asset1 == fromBase58String(Asset1))) | |
602 | + | then Asset1 | |
603 | + | else Asset2 | |
604 | + | let assetUpdateSwap = if ((asset1 == unit)) | |
605 | + | then waves | |
606 | + | else if ((asset1 == fromBase58String(Asset1))) | |
607 | + | then Asset2 | |
608 | + | else Asset1 | |
609 | + | let assetSendSwap = if ((asset1 == unit)) | |
610 | + | then WAVES | |
611 | + | else if ((asset1 == fromBase58String(Asset1))) | |
612 | + | then fromBase58String(Asset2) | |
613 | + | else fromBase58String(Asset1) | |
614 | + | if (power) | |
615 | + | then if (!(swapActivate)) | |
616 | + | then if (if (!((Asset1 == Asset2))) | |
617 | + | then if (validateAsset(asset1, Asset1, acWaves)) | |
618 | + | then true | |
619 | + | else validateAsset(asset1, Asset2, acWaves) | |
620 | + | else false) | |
621 | + | then if (if (if (if (if (if (if ((asset1 == USDN)) | |
622 | + | then true | |
623 | + | else (asset1 == USDC)) | |
624 | + | then true | |
625 | + | else (asset1 == USDT)) | |
626 | + | then true | |
627 | + | else (asset1 == NGNN)) | |
628 | + | then true | |
629 | + | else (asset1 == MainAsset)) | |
630 | + | then true | |
631 | + | else (asset1 == EURN)) | |
632 | + | then true | |
633 | + | else (asset1 == WAVES)) | |
634 | + | then if ((key != false)) | |
635 | + | then if ((i.payments[1].assetId == MainAsset)) | |
636 | + | then if ((i.payments[1].amount == 300000)) | |
637 | + | then if (if ((totalAsset1 > 2)) | |
638 | + | then true | |
639 | + | else (totalAsset2 > 2)) | |
640 | + | 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))] | |
641 | + | else throw("Pool has no liquidity.") | |
642 | + | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
643 | + | else throw("Invalid rate asset") | |
644 | + | else throw("Invalid Swap Key.") | |
645 | + | else throw("Invalid Asset1 or Asset2!") | |
646 | + | else throw("Asset1 cannot be equal to Asset2") | |
647 | + | else throw("Swap is currently under maintenance.") | |
648 | + | else throw("dApp is currently under maintenance.") | |
649 | + | } | |
650 | + | ||
651 | + | ||
652 | + | @Verifier(tx) | |
653 | + | func verify () = match tx { | |
654 | + | case order: Order => | |
655 | + | true | |
656 | + | case e: ExchangeTransaction => | |
657 | + | true | |
658 | + | case _ => | |
659 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
660 | + | } | |
661 | + |
github/deemru/w8io/169f3d6 41.19 ms ◑