tx · BNDzSNQXvUnyPAzTcfbGCsrgBWhwuAstRndoxk4bpbbc 3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA: -0.03000000 Waves 2022.07.09 19:11 [2132387] smart account 3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA > SELF 0.00000000 Waves
{ "type": 13, "id": "BNDzSNQXvUnyPAzTcfbGCsrgBWhwuAstRndoxk4bpbbc", "fee": 3000000, "feeAssetId": null, "timestamp": 1657383006077, "version": 2, "chainId": 84, "sender": "3N8b7mamWRbw6YjYJgsNGzTsKAbsbf4zVSA", "senderPublicKey": "FA2TFZp55AkfpLAK7toKNNdufbHH3cY6aCSSMFcFPafT", "proofs": [ "Zvvqah4ZysY82pqz1Da9LSFmMbQ2rj8wsiYdywnGCmGu4vqLd53mXGnuiDitKNkoCDw7oXQVq8xmJ2AbWcsg8S5" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAD2NvbnRyYWN0QWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABCAUAAAAEdGhpcwAAAAVieXRlcwAAAAAMZXhjaGFuZ2VSYXRlAAAAAAAAAAAFAQAAABFnZXRBZGRyZXNzSWZWYWxpZA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AAAQIAAAAgQXNzZXQxIGNhbm5vdCBiZSBlcXVhbCB0byBBc3NldDIJAAACAAAAAQIAAAAkU3dhcCBpcyBjdXJyZW50bHkgdW5kZXIgbWFpbnRlbmFuY2UuCQAAAgAAAAECAAAAJGRBcHAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAAFb3JkZXIFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk9R9v6", "height": 2132387, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3VH31pGdBfKNC6LE3wkTFiqCmDC9UsXA59JJSFxataKi Next: 6WeFiUyG35JVjvDt1qxLroreSAmFHWa7oTRshMNk6Zan Diff:
Old | New | Differences | |
---|---|---|---|
34 | 34 | func q (p) = valueOrElse(getIntegerValue(this, p), 0) | |
35 | 35 | ||
36 | 36 | ||
37 | - | let r = "activate" | |
38 | - | ||
39 | - | let s = "activate_pools" | |
40 | - | ||
41 | - | let t = "activate_swap" | |
42 | - | ||
43 | - | let u = "activate_liquidity" | |
44 | - | ||
45 | - | let v = "block_distribuition" | |
46 | - | ||
47 | - | let w = "Total_Tokens_Locked_" | |
48 | - | ||
49 | - | let x = "usdn_asset" | |
50 | - | ||
51 | - | let y = "usdt_asset" | |
52 | - | ||
53 | - | let z = "usdc_asset" | |
54 | - | ||
55 | - | let A = "ngnn_asset" | |
56 | - | ||
57 | - | let B = "eurn_asset" | |
58 | - | ||
59 | - | let C = "WAVES" | |
60 | - | ||
61 | - | let D = "accept_waves" | |
62 | - | ||
63 | - | let E = unit | |
64 | - | ||
65 | - | func F (G,H) = (((c + G) + "_") + H) | |
37 | + | func r (p) = { | |
38 | + | let s = assetInfo(p) | |
39 | + | if ($isInstanceOf(s, "Asset")) | |
40 | + | then { | |
41 | + | let t = s | |
42 | + | t.name | |
43 | + | } | |
44 | + | else throw("Can't find asset") | |
45 | + | } | |
66 | 46 | ||
67 | 47 | ||
68 | - | func I (J) = valueOrElse(getInteger(this, J), 0) | |
48 | + | let u = "activate" | |
49 | + | ||
50 | + | let v = "activate_pools" | |
51 | + | ||
52 | + | let w = "activate_swap" | |
53 | + | ||
54 | + | let x = "activate_liquidity" | |
55 | + | ||
56 | + | let y = "block_distribuition" | |
57 | + | ||
58 | + | let z = "Total_Tokens_Locked_" | |
59 | + | ||
60 | + | let A = "usdn_asset" | |
61 | + | ||
62 | + | let B = "usdt_asset" | |
63 | + | ||
64 | + | let C = "usdc_asset" | |
65 | + | ||
66 | + | let D = "ngnn_asset" | |
67 | + | ||
68 | + | let E = "eurn_asset" | |
69 | + | ||
70 | + | let F = "WAVES" | |
71 | + | ||
72 | + | let G = "accept_waves" | |
73 | + | ||
74 | + | let H = unit | |
75 | + | ||
76 | + | func I (J,K) = (((c + J) + "_") + K) | |
69 | 77 | ||
70 | 78 | ||
71 | - | func | |
79 | + | func L (M) = valueOrElse(getInteger(this, M), 0) | |
72 | 80 | ||
73 | 81 | ||
74 | - | func | |
82 | + | func N (n,M) = valueOrElse(getIntegerValue(this, ((M + "_") + n)), 0) | |
75 | 83 | ||
76 | 84 | ||
77 | - | func | |
85 | + | func O (n,M,t) = valueOrElse(getIntegerValue(this, ((((M + "_") + n) + "_") + t)), 1) | |
78 | 86 | ||
79 | 87 | ||
80 | - | func | |
88 | + | func P (M,t) = valueOrElse(getIntegerValue(this, ((M + "_") + t)), 1) | |
81 | 89 | ||
82 | 90 | ||
83 | - | func | |
91 | + | func Q (R,S,n) = (((h + I(R, S)) + "_") + n) | |
84 | 92 | ||
85 | 93 | ||
86 | - | func S () = { | |
87 | - | let T = getStringValue(this, "admin") | |
88 | - | if ($isInstanceOf(T, "String")) | |
94 | + | func T (n,M) = valueOrElse(getIntegerValue(this, ((("STAKE_LP_" + n) + "_") + M)), 0) | |
95 | + | ||
96 | + | ||
97 | + | func U () = { | |
98 | + | let s = getStringValue(this, "admin") | |
99 | + | if ($isInstanceOf(s, "String")) | |
89 | 100 | then { | |
90 | - | let | |
91 | - | Address(fromBase58String( | |
101 | + | let V = s | |
102 | + | Address(fromBase58String(V)) | |
92 | 103 | } | |
93 | 104 | else this | |
94 | 105 | } | |
95 | 106 | ||
96 | 107 | ||
97 | - | func | |
98 | - | then ( | |
108 | + | func W (X,Y,Z) = if (if ((X == H)) | |
109 | + | then (Y == "WAVES") | |
99 | 110 | else false) | |
100 | - | then if ( | |
111 | + | then if (Z) | |
101 | 112 | then true | |
102 | 113 | else throw("The smart contract does not currently support Waves.") | |
103 | - | else if (( | |
114 | + | else if ((X == fromBase58String(Y))) | |
104 | 115 | then true | |
105 | 116 | else false | |
106 | 117 | ||
107 | 118 | ||
108 | - | @Callable( | |
109 | - | func constructor ( | |
119 | + | @Callable(aa) | |
120 | + | func constructor (ab,ac,ad,ae,af,ag,ah,ai,aj) = if (if ((aa.caller == this)) | |
110 | 121 | then true | |
111 | - | else ( | |
122 | + | else (aa.caller == U())) | |
112 | 123 | then { | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | let | |
121 | - | let | |
122 | - | let | |
123 | - | let | |
124 | - | let | |
125 | - | let | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | [StringEntry(a | |
124 | + | let ak = I(ac, ad) | |
125 | + | let al = I(ac, ae) | |
126 | + | let am = I(ac, af) | |
127 | + | let an = I(ac, F) | |
128 | + | let ao = I(ac, ab) | |
129 | + | let ap = I(ac, ag) | |
130 | + | let aq = I(ae, ad) | |
131 | + | let ar = I(ae, af) | |
132 | + | let as = I(ae, F) | |
133 | + | let at = I(ae, ab) | |
134 | + | let au = I(ae, ag) | |
135 | + | let av = I(ad, af) | |
136 | + | let aw = I(ad, F) | |
137 | + | let ax = I(ad, ab) | |
138 | + | let ay = I(ad, ag) | |
139 | + | let az = I(af, F) | |
140 | + | let aA = I(af, ab) | |
141 | + | let aB = I(af, ag) | |
142 | + | let aC = I(ab, F) | |
143 | + | let aD = I(ab, ag) | |
144 | + | let aE = I(ag, F) | |
145 | + | [StringEntry(a, ab), StringEntry(A, ac), StringEntry(C, ae), StringEntry(B, ad), StringEntry(D, af), BooleanEntry(G, aj), IntegerEntry(g, ah), BooleanEntry(u, true), BooleanEntry(w, false), BooleanEntry(v, false), BooleanEntry(x, false), IntegerEntry(y, ai), IntegerEntry(ak, 1), IntegerEntry(an, 1), IntegerEntry(al, 1), IntegerEntry(am, 1), IntegerEntry(ao, 1), IntegerEntry(aq, 1), IntegerEntry(ar, 1), IntegerEntry(as, 1), IntegerEntry(ax, 1), IntegerEntry(av, 1), IntegerEntry(aw, 1), IntegerEntry(az, 1), IntegerEntry(aA, 1), IntegerEntry(aC, 1), IntegerEntry(aE, 1), IntegerEntry(aD, 1), IntegerEntry(aB, 1), IntegerEntry(au, 1), IntegerEntry(ap, 1), IntegerEntry(ay, 1), StringEntry(E, ag)] | |
135 | 146 | } | |
136 | 147 | else throw("Only the Admin itself can invoke this function") | |
137 | 148 | ||
138 | 149 | ||
139 | 150 | ||
140 | - | @Callable( | |
141 | - | func activate ( | |
151 | + | @Callable(aa) | |
152 | + | func activate (aF) = if (if ((aa.caller == this)) | |
142 | 153 | then true | |
143 | - | else ( | |
144 | - | then [BooleanEntry( | |
154 | + | else (aa.caller == U())) | |
155 | + | then [BooleanEntry(u, aF)] | |
145 | 156 | else throw("Only the Admin itself can invoke this function") | |
146 | 157 | ||
147 | 158 | ||
148 | 159 | ||
149 | - | @Callable( | |
150 | - | func maintenance ( | |
160 | + | @Callable(aa) | |
161 | + | func maintenance (aG,aH,aI) = if (if ((aa.caller == this)) | |
151 | 162 | then true | |
152 | - | else ( | |
153 | - | then [BooleanEntry( | |
163 | + | else (aa.caller == U())) | |
164 | + | then [BooleanEntry(v, aG), BooleanEntry(w, aH), BooleanEntry(x, aI)] | |
154 | 165 | else throw("Only the Admin itself can invoke this function") | |
155 | 166 | ||
156 | 167 | ||
157 | 168 | ||
158 | - | @Callable( | |
159 | - | func percentualRateFeeSwapEdit ( | |
169 | + | @Callable(aa) | |
170 | + | func percentualRateFeeSwapEdit (aJ) = if (if ((aa.caller == this)) | |
160 | 171 | then true | |
161 | - | else ( | |
162 | - | then [IntegerEntry(g, | |
172 | + | else (aa.caller == U())) | |
173 | + | then [IntegerEntry(g, aJ)] | |
163 | 174 | else throw("Only the Admin itself can invoke this function") | |
164 | 175 | ||
165 | 176 | ||
166 | 177 | ||
167 | - | @Callable( | |
168 | - | func acceptWaves ( | |
178 | + | @Callable(aa) | |
179 | + | func acceptWaves (aK) = if (if ((aa.caller == this)) | |
169 | 180 | then true | |
170 | - | else ( | |
171 | - | then [BooleanEntry( | |
181 | + | else (aa.caller == U())) | |
182 | + | then [BooleanEntry(G, aK)] | |
172 | 183 | else throw("Only the Admin itself can invoke this function") | |
173 | 184 | ||
174 | 185 | ||
175 | 186 | ||
176 | - | @Callable( | |
177 | - | func blockDistribution ( | |
187 | + | @Callable(aa) | |
188 | + | func blockDistribution (aL) = if (if ((aa.caller == this)) | |
178 | 189 | then true | |
179 | - | else ( | |
180 | - | then [IntegerEntry( | |
190 | + | else (aa.caller == U())) | |
191 | + | then [IntegerEntry(y, aL)] | |
181 | 192 | else throw("Only the Admin itself can invoke this function") | |
182 | 193 | ||
183 | 194 | ||
184 | 195 | ||
185 | - | @Callable( | |
186 | - | func addAdmin (n) = if (if (( | |
196 | + | @Callable(aa) | |
197 | + | func addAdmin (n) = if (if ((aa.caller == this)) | |
187 | 198 | then true | |
188 | - | else ( | |
199 | + | else (aa.caller == U())) | |
189 | 200 | then [StringEntry("admin", n)] | |
190 | 201 | else throw("Only the Admin itself can invoke this function") | |
191 | 202 | ||
192 | 203 | ||
193 | 204 | ||
194 | - | @Callable(Z) | |
195 | - | func lpAssetCreateForPairPool (G,H,aL) = { | |
196 | - | let J = I(F(G, H)) | |
197 | - | if (if ((Z.caller == this)) | |
205 | + | @Callable(aa) | |
206 | + | func lpAssetCreateForPairPool (J,K,aM,aN) = { | |
207 | + | let aO = if ((J == F)) | |
208 | + | then F | |
209 | + | else r(fromBase58String(J)) | |
210 | + | let aP = if ((K == F)) | |
211 | + | then F | |
212 | + | else r(fromBase58String(K)) | |
213 | + | let aQ = if (aN) | |
214 | + | then aM | |
215 | + | else ((aO + "_") + aP) | |
216 | + | let M = L(I(J, K)) | |
217 | + | if (if ((aa.caller == this)) | |
198 | 218 | then true | |
199 | - | else ( | |
200 | - | then if (!(( | |
219 | + | else (aa.caller == U())) | |
220 | + | then if (!((M == 0))) | |
201 | 221 | then { | |
202 | - | let | |
203 | - | let | |
204 | - | [StringEntry((b + | |
222 | + | let aR = Issue(aQ, ((("LP asset for pool liquidity in AxAi Swap pair " + J) + "_") + K), 1, 8, true) | |
223 | + | let aS = calculateAssetId(aR) | |
224 | + | [StringEntry((b + I(J, K)), toBase58String(aS)), aR] | |
205 | 225 | } | |
206 | 226 | else throw("Invalid Pool Key. Try inverting the assets") | |
207 | 227 | else throw("Only the Admin itself can invoke this function") | |
209 | 229 | ||
210 | 230 | ||
211 | 231 | ||
212 | - | @Callable( | |
213 | - | func deposit ( | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | then getStringValue(this, (b + | |
219 | - | else | |
220 | - | if ( | |
221 | - | then if (!( | |
222 | - | then if (( | |
223 | - | then throw((("Invalid asset! Kindly Deposit Only " + | |
224 | - | else if (!( | |
232 | + | @Callable(aa) | |
233 | + | func deposit (aT,R,S) = { | |
234 | + | let aU = getBooleanValue(this, u) | |
235 | + | let aV = getBooleanValue(this, x) | |
236 | + | let aW = getStringValue(this, a) | |
237 | + | let aX = if (aT) | |
238 | + | then getStringValue(this, (b + I(R, S))) | |
239 | + | else aW | |
240 | + | if (aU) | |
241 | + | then if (!(aV)) | |
242 | + | then if ((aa.payments[0].assetId != fromBase58String(aX))) | |
243 | + | then throw((("Invalid asset! Kindly Deposit Only " + aW) + " or valid asset lp")) | |
244 | + | else if (!(aT)) | |
225 | 245 | then { | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | if ($isInstanceOf( | |
246 | + | let aY = toBase58String(aa.caller.bytes) | |
247 | + | let aZ = { | |
248 | + | let s = getInteger(this, aY) | |
249 | + | if ($isInstanceOf(s, "Int")) | |
230 | 250 | then { | |
231 | - | let | |
232 | - | | |
251 | + | let ba = s | |
252 | + | ba | |
233 | 253 | } | |
234 | 254 | else 0 | |
235 | 255 | } | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | if ($isInstanceOf( | |
256 | + | let bb = (aZ + aa.payments[0].amount) | |
257 | + | let bc = IntegerEntry(aY, bb) | |
258 | + | let bd = IntegerEntry((h + aY), height) | |
259 | + | let be = { | |
260 | + | let s = getInteger(this, "Total_Tokens_Locked:") | |
261 | + | if ($isInstanceOf(s, "Int")) | |
242 | 262 | then { | |
243 | - | let | |
244 | - | | |
263 | + | let ba = s | |
264 | + | ba | |
245 | 265 | } | |
246 | 266 | else 0 | |
247 | 267 | } | |
248 | - | let | |
249 | - | let | |
250 | - | [ | |
268 | + | let bf = (be + aa.payments[0].amount) | |
269 | + | let bg = IntegerEntry("Total_Tokens_Locked:", bf) | |
270 | + | [bc, bd, bg] | |
251 | 271 | } | |
252 | 272 | else { | |
253 | - | let | |
254 | - | let | |
255 | - | if (!(( | |
273 | + | let bh = I(R, S) | |
274 | + | let M = L(bh) | |
275 | + | if (!((M == 0))) | |
256 | 276 | then { | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
277 | + | let aY = toBase58String(aa.caller.bytes) | |
278 | + | let aZ = { | |
279 | + | let s = getInteger(this, ((("STAKE_LP_" + aY) + "_") + bh)) | |
280 | + | if ($isInstanceOf(s, "Int")) | |
261 | 281 | then { | |
262 | - | let | |
263 | - | | |
282 | + | let ba = s | |
283 | + | ba | |
264 | 284 | } | |
265 | 285 | else 0 | |
266 | 286 | } | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if ($isInstanceOf( | |
287 | + | let bb = (aZ + aa.payments[0].amount) | |
288 | + | let bc = IntegerEntry(((("STAKE_LP_" + aY) + "_") + bh), bb) | |
289 | + | let bd = IntegerEntry(((((h + "_") + aY) + "_") + bh), height) | |
290 | + | let be = { | |
291 | + | let s = getInteger(this, ("Total_Tokens_LP_Locked_" + bh)) | |
292 | + | if ($isInstanceOf(s, "Int")) | |
273 | 293 | then { | |
274 | - | let | |
275 | - | | |
294 | + | let ba = s | |
295 | + | ba | |
276 | 296 | } | |
277 | 297 | else 0 | |
278 | 298 | } | |
279 | - | let | |
280 | - | let | |
281 | - | [ | |
299 | + | let bf = (be + aa.payments[0].amount) | |
300 | + | let bg = IntegerEntry(("Total_Tokens_LP_Locked_" + bh), bf) | |
301 | + | [bc, bd, bg] | |
282 | 302 | } | |
283 | 303 | else throw("Invalid Pool key.") | |
284 | 304 | } | |
288 | 308 | ||
289 | 309 | ||
290 | 310 | ||
291 | - | @Callable( | |
292 | - | func remove ( | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | if ( | |
298 | - | then if (!( | |
311 | + | @Callable(aa) | |
312 | + | func remove (aT,R,S,bi) = { | |
313 | + | let aU = getBooleanValue(this, u) | |
314 | + | let aV = getBooleanValue(this, x) | |
315 | + | let bj = aa.payments[0] | |
316 | + | let aW = fromBase58String(getStringValue(this, a)) | |
317 | + | if (aU) | |
318 | + | then if (!(aV)) | |
299 | 319 | then { | |
300 | - | let | |
301 | - | let | |
302 | - | then getIntegerValue(this, ((("STAKE_LP_" + | |
303 | - | else getInteger(this, | |
304 | - | let | |
305 | - | then ((((h + "_") + | |
306 | - | else (h + | |
307 | - | let | |
308 | - | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + | |
320 | + | let aY = toBase58String(aa.caller.bytes) | |
321 | + | let aZ = valueOrElse(if (aT) | |
322 | + | then getIntegerValue(this, ((("STAKE_LP_" + aY) + "_") + I(R, S))) | |
323 | + | else getInteger(this, aY), 0) | |
324 | + | let bk = if (aT) | |
325 | + | then ((((h + "_") + aY) + "_") + I(R, S)) | |
326 | + | else (h + aY) | |
327 | + | let be = if (aT) | |
328 | + | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + I(R, S))) | |
309 | 329 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ((0 > | |
316 | - | then throw(if ( | |
317 | - | then (((("Can't withdraw negative " + | |
330 | + | let bf = (be - bi) | |
331 | + | let bl = (height - getIntegerValue(this, bk)) | |
332 | + | let bm = getIntegerValue(this, y) | |
333 | + | let bn = ((bl * bm) * i) | |
334 | + | let bo = (bn / (be / bi)) | |
335 | + | if ((0 > bi)) | |
336 | + | then throw(if (aT) | |
337 | + | then (((("Can't withdraw negative " + R) + "/") + S) + " amount") | |
318 | 338 | else "Can't withdraw negative AxAi amount") | |
319 | 339 | else { | |
320 | - | let | |
321 | - | if ((0 > | |
322 | - | then throw(if ( | |
323 | - | then (((("Not enough Asset Lp " + | |
340 | + | let bb = (aZ - bi) | |
341 | + | if ((0 > bb)) | |
342 | + | then throw(if (aT) | |
343 | + | then (((("Not enough Asset Lp " + R) + "/") + S) + " balance") | |
324 | 344 | else "Not enough AxAi balance") | |
325 | - | else [IntegerEntry(if ( | |
326 | - | then ((("STAKE_LP_" + | |
327 | - | else | |
328 | - | then ("Total_Tokens_LP_Locked_" + | |
329 | - | else "Total_Tokens_Locked:", | |
330 | - | then fromBase58String(getStringValue(this, (b + | |
331 | - | else | |
345 | + | else [IntegerEntry(if (aT) | |
346 | + | then ((("STAKE_LP_" + aY) + "_") + I(R, S)) | |
347 | + | else aY, bb), IntegerEntry(if (aT) | |
348 | + | then ("Total_Tokens_LP_Locked_" + I(R, S)) | |
349 | + | else "Total_Tokens_Locked:", bf), ScriptTransfer(aa.caller, bi, if (aT) | |
350 | + | then fromBase58String(getStringValue(this, (b + I(R, S)))) | |
351 | + | else aW), ScriptTransfer(aa.caller, bo, aW)] | |
332 | 352 | } | |
333 | 353 | } | |
334 | 354 | else throw("liquidity is currently under maintenance.") | |
337 | 357 | ||
338 | 358 | ||
339 | 359 | ||
340 | - | @Callable( | |
341 | - | func addLiquidity ( | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | if ( | |
356 | - | then if (!( | |
357 | - | then if (if (if (!(( | |
358 | - | then | |
360 | + | @Callable(aa) | |
361 | + | func addLiquidity (R,S) = { | |
362 | + | let aU = getBooleanValue(this, u) | |
363 | + | let bp = getBooleanValue(this, v) | |
364 | + | let Z = getBooleanValue(this, G) | |
365 | + | let M = L(I(R, S)) | |
366 | + | let J = aa.payments[0].assetId | |
367 | + | let K = aa.payments[1].assetId | |
368 | + | let bq = toBytes(getStringValue(this, A)) | |
369 | + | let br = toBytes(getStringValue(this, C)) | |
370 | + | let bs = toBytes(getStringValue(this, B)) | |
371 | + | let bt = toBytes(getStringValue(this, D)) | |
372 | + | let bu = toBytes(getStringValue(this, E)) | |
373 | + | let aW = fromBase58String(getStringValue(this, a)) | |
374 | + | let aX = getStringValue(this, (b + I(R, S))) | |
375 | + | if (aU) | |
376 | + | then if (!(bp)) | |
377 | + | then if (if (if (!((J == K))) | |
378 | + | then W(J, R, Z) | |
359 | 379 | else false) | |
360 | - | then | |
380 | + | then W(K, S, Z) | |
361 | 381 | else false) | |
362 | - | then if (if (if (if (if (if (if (if (( | |
382 | + | then if (if (if (if (if (if (if (if ((J == bq)) | |
363 | 383 | then true | |
364 | - | else ( | |
384 | + | else (J == br)) | |
365 | 385 | then true | |
366 | - | else ( | |
386 | + | else (J == bs)) | |
367 | 387 | then true | |
368 | - | else ( | |
388 | + | else (J == bt)) | |
369 | 389 | then true | |
370 | - | else ( | |
390 | + | else (J == aW)) | |
371 | 391 | then true | |
372 | - | else ( | |
392 | + | else (J == H)) | |
373 | 393 | then true | |
374 | - | else ( | |
375 | - | then if (if (if (if (if (if (( | |
394 | + | else (J == bu)) | |
395 | + | then if (if (if (if (if (if ((K == bq)) | |
376 | 396 | then true | |
377 | - | else ( | |
397 | + | else (K == br)) | |
378 | 398 | then true | |
379 | - | else ( | |
399 | + | else (K == bs)) | |
380 | 400 | then true | |
381 | - | else ( | |
401 | + | else (K == bt)) | |
382 | 402 | then true | |
383 | - | else ( | |
403 | + | else (K == aW)) | |
384 | 404 | then true | |
385 | - | else ( | |
405 | + | else (K == H)) | |
386 | 406 | then true | |
387 | - | else ( | |
407 | + | else (K == bu) | |
388 | 408 | else false) | |
389 | - | then if (!(( | |
409 | + | then if (!((M == 0))) | |
390 | 410 | then { | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | [Reissue(fromBase58String( | |
411 | + | let aY = toBase58String(aa.caller.bytes) | |
412 | + | let aZ = N(aY, I(R, S)) | |
413 | + | let bv = O(aY, I(R, S), R) | |
414 | + | let bw = O(aY, I(R, S), S) | |
415 | + | let bx = P(I(R, S), R) | |
416 | + | let by = P(I(R, S), S) | |
417 | + | let bz = (bx / by) | |
418 | + | let bA = (bv + aa.payments[0].amount) | |
419 | + | let bB = (bw + aa.payments[1].amount) | |
420 | + | let bC = (aZ + bz) | |
421 | + | let bD = (bx + aa.payments[0].amount) | |
422 | + | let bE = (by + aa.payments[1].amount) | |
423 | + | [Reissue(fromBase58String(aX), bz, true), ScriptTransfer(Address(aa.caller.bytes), bz, fromBase58String(aX)), IntegerEntry(Q(R, S, aY), height), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + R), bA), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + S), bB), IntegerEntry(((I(R, S) + "_") + aY), bC), IntegerEntry(((I(R, S) + "_") + R), bD), IntegerEntry(((I(R, S) + "_") + S), bE), IntegerEntry(R, (q(R) + aa.payments[0].amount)), IntegerEntry(S, (q(S) + aa.payments[1].amount)), IntegerEntry(aX, (q(aX) + bz))] | |
404 | 424 | } | |
405 | 425 | else throw("Invalid Pool Key.") | |
406 | 426 | else throw("Invalid Asset1 or Asset2!") | |
411 | 431 | ||
412 | 432 | ||
413 | 433 | ||
414 | - | @Callable( | |
415 | - | func removeLiquidity ( | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | then if ( | |
424 | - | then | |
434 | + | @Callable(aa) | |
435 | + | func removeLiquidity (R,S,bF) = { | |
436 | + | let aY = toBase58String(aa.caller.bytes) | |
437 | + | let aU = getBooleanValue(this, u) | |
438 | + | let bp = getBooleanValue(this, v) | |
439 | + | let Z = getBooleanValue(this, G) | |
440 | + | let bh = I(R, S) | |
441 | + | let M = L(bh) | |
442 | + | let J = if ((R == F)) | |
443 | + | then if (Z) | |
444 | + | then H | |
425 | 445 | else throw("The smart contract does not currently support Waves.") | |
426 | - | else fromBase58String( | |
427 | - | let | |
428 | - | then if ( | |
429 | - | then | |
446 | + | else fromBase58String(R) | |
447 | + | let K = if ((S == F)) | |
448 | + | then if (Z) | |
449 | + | then H | |
430 | 450 | else throw("The smart contract does not currently support Waves.") | |
431 | - | else fromBase58String( | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | if ( | |
445 | - | then if (!( | |
446 | - | then if (!(( | |
447 | - | then if (if (if (if (if (if (if (if (( | |
451 | + | else fromBase58String(S) | |
452 | + | let bq = toBytes(getStringValue(this, A)) | |
453 | + | let br = toBytes(getStringValue(this, C)) | |
454 | + | let bs = toBytes(getStringValue(this, B)) | |
455 | + | let bt = toBytes(getStringValue(this, D)) | |
456 | + | let aW = fromBase58String(getStringValue(this, a)) | |
457 | + | let bu = toBytes(getStringValue(this, E)) | |
458 | + | let aX = getStringValue(this, (b + I(R, S))) | |
459 | + | let aZ = N(aY, I(R, S)) | |
460 | + | let bG = T(aY, bh) | |
461 | + | let bH = getIntegerValue(this, aX) | |
462 | + | let bI = getIntegerValue(this, ((I(R, S) + "_") + R)) | |
463 | + | let bJ = getIntegerValue(this, ((I(R, S) + "_") + S)) | |
464 | + | if (aU) | |
465 | + | then if (!(bp)) | |
466 | + | then if (!((R == S))) | |
467 | + | then if (if (if (if (if (if (if (if ((J == bq)) | |
448 | 468 | then true | |
449 | - | else ( | |
469 | + | else (J == br)) | |
450 | 470 | then true | |
451 | - | else ( | |
471 | + | else (J == bs)) | |
452 | 472 | then true | |
453 | - | else ( | |
473 | + | else (J == bt)) | |
454 | 474 | then true | |
455 | - | else ( | |
475 | + | else (J == aW)) | |
456 | 476 | then true | |
457 | - | else ( | |
477 | + | else (J == H)) | |
458 | 478 | then true | |
459 | - | else ( | |
460 | - | then if (if (if (if (if (if (( | |
479 | + | else (J == bu)) | |
480 | + | then if (if (if (if (if (if ((K == bq)) | |
461 | 481 | then true | |
462 | - | else ( | |
482 | + | else (K == br)) | |
463 | 483 | then true | |
464 | - | else ( | |
484 | + | else (K == bs)) | |
465 | 485 | then true | |
466 | - | else ( | |
486 | + | else (K == bt)) | |
467 | 487 | then true | |
468 | - | else ( | |
488 | + | else (K == aW)) | |
469 | 489 | then true | |
470 | - | else ( | |
490 | + | else (K == H)) | |
471 | 491 | then true | |
472 | - | else ( | |
492 | + | else (K == bu) | |
473 | 493 | else false) | |
474 | - | then if (!(( | |
475 | - | then if (!(( | |
476 | - | then if ((( | |
494 | + | then if (!((M == 0))) | |
495 | + | then if (!((aZ == 0))) | |
496 | + | then if (((aZ - bG) >= bF)) | |
477 | 497 | then { | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | [Burn(fromBase58String( | |
498 | + | let bK = (bF / bH) | |
499 | + | let bL = (bK * bI) | |
500 | + | let bM = (bK * bJ) | |
501 | + | let bx = P(I(R, S), R) | |
502 | + | let by = P(I(R, S), S) | |
503 | + | let bv = O(aY, I(R, S), R) | |
504 | + | let bw = O(aY, I(R, S), S) | |
505 | + | let bA = (bv - bL) | |
506 | + | let bB = (bw - bM) | |
507 | + | let bC = (aZ - bF) | |
508 | + | let bD = (bx - bL) | |
509 | + | let bE = (by - bM) | |
510 | + | [Burn(fromBase58String(aX), bF), ScriptTransfer(Address(aa.caller.bytes), bL, J), ScriptTransfer(Address(aa.caller.bytes), bM, K), IntegerEntry(Q(R, S, aY), height), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + R), bA), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + S), bB), IntegerEntry(((I(R, S) + "_") + aY), bC), IntegerEntry(((I(R, S) + "_") + R), bD), IntegerEntry(((I(R, S) + "_") + S), bE), IntegerEntry(R, (q(R) - bL)), IntegerEntry(S, (q(S) - bM)), IntegerEntry(aX, (q(aX) - bF))] | |
491 | 511 | } | |
492 | 512 | else throw("Amount to be withdrawn greater than the amount available for withdrawal.") | |
493 | 513 | else throw("You have no locked values in the pool") | |
500 | 520 | ||
501 | 521 | ||
502 | 522 | ||
503 | - | @Callable( | |
504 | - | func swap ( | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | if ( | |
522 | - | then if (!( | |
523 | - | then if (if (!(( | |
524 | - | then if ( | |
523 | + | @Callable(aa) | |
524 | + | func swap (R,S) = { | |
525 | + | let aY = toBase58String(aa.caller.bytes) | |
526 | + | let Z = getBooleanValue(this, G) | |
527 | + | let aU = getBooleanValue(this, u) | |
528 | + | let bN = getBooleanValue(this, w) | |
529 | + | let bh = I(R, S) | |
530 | + | let M = L(bh) | |
531 | + | let J = aa.payments[0].assetId | |
532 | + | let bq = toBytes(getStringValue(this, A)) | |
533 | + | let br = toBytes(getStringValue(this, C)) | |
534 | + | let bs = toBytes(getStringValue(this, B)) | |
535 | + | let bt = toBytes(getStringValue(this, D)) | |
536 | + | let aW = fromBase58String(getStringValue(this, a)) | |
537 | + | let bu = toBytes(getStringValue(this, E)) | |
538 | + | let bO = getIntegerValue(this, ((I(R, S) + "_") + R)) | |
539 | + | let bP = getIntegerValue(this, ((I(R, S) + "_") + S)) | |
540 | + | let bQ = getIntegerValue(this, g) | |
541 | + | if (aU) | |
542 | + | then if (!(bN)) | |
543 | + | then if (if (!((R == S))) | |
544 | + | then if (W(J, R, Z)) | |
525 | 545 | then true | |
526 | - | else | |
546 | + | else W(J, S, Z) | |
527 | 547 | else false) | |
528 | - | then if (if (if (if (if (if (if (( | |
548 | + | then if (if (if (if (if (if (if ((J == bq)) | |
529 | 549 | then true | |
530 | - | else ( | |
550 | + | else (J == br)) | |
531 | 551 | then true | |
532 | - | else ( | |
552 | + | else (J == bs)) | |
533 | 553 | then true | |
534 | - | else ( | |
554 | + | else (J == bt)) | |
535 | 555 | then true | |
536 | - | else ( | |
556 | + | else (J == aW)) | |
537 | 557 | then true | |
538 | - | else ( | |
558 | + | else (J == bu)) | |
539 | 559 | then true | |
540 | - | else ( | |
541 | - | then if (!(( | |
542 | - | then if (( | |
543 | - | then if (( | |
560 | + | else (J == H)) | |
561 | + | then if (!((M == 0))) | |
562 | + | then if ((aa.payments[1].assetId == aW)) | |
563 | + | then if ((aa.payments[1].amount == 300000)) | |
544 | 564 | then { | |
545 | - | let | |
546 | - | then ( | |
547 | - | else ( | |
548 | - | let | |
549 | - | let | |
550 | - | [ScriptTransfer(Address( | |
551 | - | then | |
552 | - | else fromBase58String( | |
565 | + | let bR = if (!((J == fromBase58String(R)))) | |
566 | + | then (bO / bP) | |
567 | + | else (bP / bO) | |
568 | + | let aL = (aa.payments[0].amount - ((aa.payments[0].amount * bQ) / (100 * i))) | |
569 | + | let bS = (aL * bR) | |
570 | + | [ScriptTransfer(Address(aa.caller.bytes), bS, if ((S == F)) | |
571 | + | then H | |
572 | + | else fromBase58String(S)), IntegerEntry(S, (q(S) - bS)), IntegerEntry(((I(R, S) + "_") + S), (P(I(R, S), S) - bS))] | |
553 | 573 | } | |
554 | 574 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
555 | 575 | else throw("Invalid rate asset") | |
561 | 581 | } | |
562 | 582 | ||
563 | 583 | ||
564 | - | @Verifier( | |
565 | - | func | |
566 | - | let | |
567 | - | if ($isInstanceOf( | |
584 | + | @Verifier(bT) | |
585 | + | func bU () = { | |
586 | + | let s = bT | |
587 | + | if ($isInstanceOf(s, "Order")) | |
568 | 588 | then { | |
569 | - | let | |
589 | + | let bV = s | |
570 | 590 | true | |
571 | 591 | } | |
572 | - | else if ($isInstanceOf( | |
592 | + | else if ($isInstanceOf(s, "ExchangeTransaction")) | |
573 | 593 | then { | |
574 | - | let | |
594 | + | let bW = s | |
575 | 595 | true | |
576 | 596 | } | |
577 | - | else sigVerify( | |
597 | + | else sigVerify(bT.bodyBytes, bT.proofs[0], bT.senderPublicKey) | |
578 | 598 | } | |
579 | 599 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "main_asset" | |
5 | 5 | ||
6 | 6 | let b = "lp_asset_" | |
7 | 7 | ||
8 | 8 | let c = "pool__" | |
9 | 9 | ||
10 | 10 | let d = "STAKING_AMOUNT_" | |
11 | 11 | ||
12 | 12 | let e = "LEASE_AMOUNT_" | |
13 | 13 | ||
14 | 14 | let f = "ID_" | |
15 | 15 | ||
16 | 16 | let g = "percentage_rate_fee" | |
17 | 17 | ||
18 | 18 | let h = "Deposit_Height_Of_" | |
19 | 19 | ||
20 | 20 | let i = 100000000 | |
21 | 21 | ||
22 | 22 | let j = 1000000 | |
23 | 23 | ||
24 | 24 | let k = Address(this.bytes) | |
25 | 25 | ||
26 | 26 | let l = 5 | |
27 | 27 | ||
28 | 28 | func m (n) = toString(valueOrErrorMessage(addressFromString(n), (("Can't parse " + n) + " as address"))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o (p) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(p))).id, (("Asset Id: " + p) + " is invalid."))) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func q (p) = valueOrElse(getIntegerValue(this, p), 0) | |
35 | 35 | ||
36 | 36 | ||
37 | - | let r = "activate" | |
38 | - | ||
39 | - | let s = "activate_pools" | |
40 | - | ||
41 | - | let t = "activate_swap" | |
42 | - | ||
43 | - | let u = "activate_liquidity" | |
44 | - | ||
45 | - | let v = "block_distribuition" | |
46 | - | ||
47 | - | let w = "Total_Tokens_Locked_" | |
48 | - | ||
49 | - | let x = "usdn_asset" | |
50 | - | ||
51 | - | let y = "usdt_asset" | |
52 | - | ||
53 | - | let z = "usdc_asset" | |
54 | - | ||
55 | - | let A = "ngnn_asset" | |
56 | - | ||
57 | - | let B = "eurn_asset" | |
58 | - | ||
59 | - | let C = "WAVES" | |
60 | - | ||
61 | - | let D = "accept_waves" | |
62 | - | ||
63 | - | let E = unit | |
64 | - | ||
65 | - | func F (G,H) = (((c + G) + "_") + H) | |
37 | + | func r (p) = { | |
38 | + | let s = assetInfo(p) | |
39 | + | if ($isInstanceOf(s, "Asset")) | |
40 | + | then { | |
41 | + | let t = s | |
42 | + | t.name | |
43 | + | } | |
44 | + | else throw("Can't find asset") | |
45 | + | } | |
66 | 46 | ||
67 | 47 | ||
68 | - | func I (J) = valueOrElse(getInteger(this, J), 0) | |
48 | + | let u = "activate" | |
49 | + | ||
50 | + | let v = "activate_pools" | |
51 | + | ||
52 | + | let w = "activate_swap" | |
53 | + | ||
54 | + | let x = "activate_liquidity" | |
55 | + | ||
56 | + | let y = "block_distribuition" | |
57 | + | ||
58 | + | let z = "Total_Tokens_Locked_" | |
59 | + | ||
60 | + | let A = "usdn_asset" | |
61 | + | ||
62 | + | let B = "usdt_asset" | |
63 | + | ||
64 | + | let C = "usdc_asset" | |
65 | + | ||
66 | + | let D = "ngnn_asset" | |
67 | + | ||
68 | + | let E = "eurn_asset" | |
69 | + | ||
70 | + | let F = "WAVES" | |
71 | + | ||
72 | + | let G = "accept_waves" | |
73 | + | ||
74 | + | let H = unit | |
75 | + | ||
76 | + | func I (J,K) = (((c + J) + "_") + K) | |
69 | 77 | ||
70 | 78 | ||
71 | - | func | |
79 | + | func L (M) = valueOrElse(getInteger(this, M), 0) | |
72 | 80 | ||
73 | 81 | ||
74 | - | func | |
82 | + | func N (n,M) = valueOrElse(getIntegerValue(this, ((M + "_") + n)), 0) | |
75 | 83 | ||
76 | 84 | ||
77 | - | func | |
85 | + | func O (n,M,t) = valueOrElse(getIntegerValue(this, ((((M + "_") + n) + "_") + t)), 1) | |
78 | 86 | ||
79 | 87 | ||
80 | - | func | |
88 | + | func P (M,t) = valueOrElse(getIntegerValue(this, ((M + "_") + t)), 1) | |
81 | 89 | ||
82 | 90 | ||
83 | - | func | |
91 | + | func Q (R,S,n) = (((h + I(R, S)) + "_") + n) | |
84 | 92 | ||
85 | 93 | ||
86 | - | func S () = { | |
87 | - | let T = getStringValue(this, "admin") | |
88 | - | if ($isInstanceOf(T, "String")) | |
94 | + | func T (n,M) = valueOrElse(getIntegerValue(this, ((("STAKE_LP_" + n) + "_") + M)), 0) | |
95 | + | ||
96 | + | ||
97 | + | func U () = { | |
98 | + | let s = getStringValue(this, "admin") | |
99 | + | if ($isInstanceOf(s, "String")) | |
89 | 100 | then { | |
90 | - | let | |
91 | - | Address(fromBase58String( | |
101 | + | let V = s | |
102 | + | Address(fromBase58String(V)) | |
92 | 103 | } | |
93 | 104 | else this | |
94 | 105 | } | |
95 | 106 | ||
96 | 107 | ||
97 | - | func | |
98 | - | then ( | |
108 | + | func W (X,Y,Z) = if (if ((X == H)) | |
109 | + | then (Y == "WAVES") | |
99 | 110 | else false) | |
100 | - | then if ( | |
111 | + | then if (Z) | |
101 | 112 | then true | |
102 | 113 | else throw("The smart contract does not currently support Waves.") | |
103 | - | else if (( | |
114 | + | else if ((X == fromBase58String(Y))) | |
104 | 115 | then true | |
105 | 116 | else false | |
106 | 117 | ||
107 | 118 | ||
108 | - | @Callable( | |
109 | - | func constructor ( | |
119 | + | @Callable(aa) | |
120 | + | func constructor (ab,ac,ad,ae,af,ag,ah,ai,aj) = if (if ((aa.caller == this)) | |
110 | 121 | then true | |
111 | - | else ( | |
122 | + | else (aa.caller == U())) | |
112 | 123 | then { | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | let | |
121 | - | let | |
122 | - | let | |
123 | - | let | |
124 | - | let | |
125 | - | let | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | [StringEntry(a | |
124 | + | let ak = I(ac, ad) | |
125 | + | let al = I(ac, ae) | |
126 | + | let am = I(ac, af) | |
127 | + | let an = I(ac, F) | |
128 | + | let ao = I(ac, ab) | |
129 | + | let ap = I(ac, ag) | |
130 | + | let aq = I(ae, ad) | |
131 | + | let ar = I(ae, af) | |
132 | + | let as = I(ae, F) | |
133 | + | let at = I(ae, ab) | |
134 | + | let au = I(ae, ag) | |
135 | + | let av = I(ad, af) | |
136 | + | let aw = I(ad, F) | |
137 | + | let ax = I(ad, ab) | |
138 | + | let ay = I(ad, ag) | |
139 | + | let az = I(af, F) | |
140 | + | let aA = I(af, ab) | |
141 | + | let aB = I(af, ag) | |
142 | + | let aC = I(ab, F) | |
143 | + | let aD = I(ab, ag) | |
144 | + | let aE = I(ag, F) | |
145 | + | [StringEntry(a, ab), StringEntry(A, ac), StringEntry(C, ae), StringEntry(B, ad), StringEntry(D, af), BooleanEntry(G, aj), IntegerEntry(g, ah), BooleanEntry(u, true), BooleanEntry(w, false), BooleanEntry(v, false), BooleanEntry(x, false), IntegerEntry(y, ai), IntegerEntry(ak, 1), IntegerEntry(an, 1), IntegerEntry(al, 1), IntegerEntry(am, 1), IntegerEntry(ao, 1), IntegerEntry(aq, 1), IntegerEntry(ar, 1), IntegerEntry(as, 1), IntegerEntry(ax, 1), IntegerEntry(av, 1), IntegerEntry(aw, 1), IntegerEntry(az, 1), IntegerEntry(aA, 1), IntegerEntry(aC, 1), IntegerEntry(aE, 1), IntegerEntry(aD, 1), IntegerEntry(aB, 1), IntegerEntry(au, 1), IntegerEntry(ap, 1), IntegerEntry(ay, 1), StringEntry(E, ag)] | |
135 | 146 | } | |
136 | 147 | else throw("Only the Admin itself can invoke this function") | |
137 | 148 | ||
138 | 149 | ||
139 | 150 | ||
140 | - | @Callable( | |
141 | - | func activate ( | |
151 | + | @Callable(aa) | |
152 | + | func activate (aF) = if (if ((aa.caller == this)) | |
142 | 153 | then true | |
143 | - | else ( | |
144 | - | then [BooleanEntry( | |
154 | + | else (aa.caller == U())) | |
155 | + | then [BooleanEntry(u, aF)] | |
145 | 156 | else throw("Only the Admin itself can invoke this function") | |
146 | 157 | ||
147 | 158 | ||
148 | 159 | ||
149 | - | @Callable( | |
150 | - | func maintenance ( | |
160 | + | @Callable(aa) | |
161 | + | func maintenance (aG,aH,aI) = if (if ((aa.caller == this)) | |
151 | 162 | then true | |
152 | - | else ( | |
153 | - | then [BooleanEntry( | |
163 | + | else (aa.caller == U())) | |
164 | + | then [BooleanEntry(v, aG), BooleanEntry(w, aH), BooleanEntry(x, aI)] | |
154 | 165 | else throw("Only the Admin itself can invoke this function") | |
155 | 166 | ||
156 | 167 | ||
157 | 168 | ||
158 | - | @Callable( | |
159 | - | func percentualRateFeeSwapEdit ( | |
169 | + | @Callable(aa) | |
170 | + | func percentualRateFeeSwapEdit (aJ) = if (if ((aa.caller == this)) | |
160 | 171 | then true | |
161 | - | else ( | |
162 | - | then [IntegerEntry(g, | |
172 | + | else (aa.caller == U())) | |
173 | + | then [IntegerEntry(g, aJ)] | |
163 | 174 | else throw("Only the Admin itself can invoke this function") | |
164 | 175 | ||
165 | 176 | ||
166 | 177 | ||
167 | - | @Callable( | |
168 | - | func acceptWaves ( | |
178 | + | @Callable(aa) | |
179 | + | func acceptWaves (aK) = if (if ((aa.caller == this)) | |
169 | 180 | then true | |
170 | - | else ( | |
171 | - | then [BooleanEntry( | |
181 | + | else (aa.caller == U())) | |
182 | + | then [BooleanEntry(G, aK)] | |
172 | 183 | else throw("Only the Admin itself can invoke this function") | |
173 | 184 | ||
174 | 185 | ||
175 | 186 | ||
176 | - | @Callable( | |
177 | - | func blockDistribution ( | |
187 | + | @Callable(aa) | |
188 | + | func blockDistribution (aL) = if (if ((aa.caller == this)) | |
178 | 189 | then true | |
179 | - | else ( | |
180 | - | then [IntegerEntry( | |
190 | + | else (aa.caller == U())) | |
191 | + | then [IntegerEntry(y, aL)] | |
181 | 192 | else throw("Only the Admin itself can invoke this function") | |
182 | 193 | ||
183 | 194 | ||
184 | 195 | ||
185 | - | @Callable( | |
186 | - | func addAdmin (n) = if (if (( | |
196 | + | @Callable(aa) | |
197 | + | func addAdmin (n) = if (if ((aa.caller == this)) | |
187 | 198 | then true | |
188 | - | else ( | |
199 | + | else (aa.caller == U())) | |
189 | 200 | then [StringEntry("admin", n)] | |
190 | 201 | else throw("Only the Admin itself can invoke this function") | |
191 | 202 | ||
192 | 203 | ||
193 | 204 | ||
194 | - | @Callable(Z) | |
195 | - | func lpAssetCreateForPairPool (G,H,aL) = { | |
196 | - | let J = I(F(G, H)) | |
197 | - | if (if ((Z.caller == this)) | |
205 | + | @Callable(aa) | |
206 | + | func lpAssetCreateForPairPool (J,K,aM,aN) = { | |
207 | + | let aO = if ((J == F)) | |
208 | + | then F | |
209 | + | else r(fromBase58String(J)) | |
210 | + | let aP = if ((K == F)) | |
211 | + | then F | |
212 | + | else r(fromBase58String(K)) | |
213 | + | let aQ = if (aN) | |
214 | + | then aM | |
215 | + | else ((aO + "_") + aP) | |
216 | + | let M = L(I(J, K)) | |
217 | + | if (if ((aa.caller == this)) | |
198 | 218 | then true | |
199 | - | else ( | |
200 | - | then if (!(( | |
219 | + | else (aa.caller == U())) | |
220 | + | then if (!((M == 0))) | |
201 | 221 | then { | |
202 | - | let | |
203 | - | let | |
204 | - | [StringEntry((b + | |
222 | + | let aR = Issue(aQ, ((("LP asset for pool liquidity in AxAi Swap pair " + J) + "_") + K), 1, 8, true) | |
223 | + | let aS = calculateAssetId(aR) | |
224 | + | [StringEntry((b + I(J, K)), toBase58String(aS)), aR] | |
205 | 225 | } | |
206 | 226 | else throw("Invalid Pool Key. Try inverting the assets") | |
207 | 227 | else throw("Only the Admin itself can invoke this function") | |
208 | 228 | } | |
209 | 229 | ||
210 | 230 | ||
211 | 231 | ||
212 | - | @Callable( | |
213 | - | func deposit ( | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | then getStringValue(this, (b + | |
219 | - | else | |
220 | - | if ( | |
221 | - | then if (!( | |
222 | - | then if (( | |
223 | - | then throw((("Invalid asset! Kindly Deposit Only " + | |
224 | - | else if (!( | |
232 | + | @Callable(aa) | |
233 | + | func deposit (aT,R,S) = { | |
234 | + | let aU = getBooleanValue(this, u) | |
235 | + | let aV = getBooleanValue(this, x) | |
236 | + | let aW = getStringValue(this, a) | |
237 | + | let aX = if (aT) | |
238 | + | then getStringValue(this, (b + I(R, S))) | |
239 | + | else aW | |
240 | + | if (aU) | |
241 | + | then if (!(aV)) | |
242 | + | then if ((aa.payments[0].assetId != fromBase58String(aX))) | |
243 | + | then throw((("Invalid asset! Kindly Deposit Only " + aW) + " or valid asset lp")) | |
244 | + | else if (!(aT)) | |
225 | 245 | then { | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | if ($isInstanceOf( | |
246 | + | let aY = toBase58String(aa.caller.bytes) | |
247 | + | let aZ = { | |
248 | + | let s = getInteger(this, aY) | |
249 | + | if ($isInstanceOf(s, "Int")) | |
230 | 250 | then { | |
231 | - | let | |
232 | - | | |
251 | + | let ba = s | |
252 | + | ba | |
233 | 253 | } | |
234 | 254 | else 0 | |
235 | 255 | } | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | if ($isInstanceOf( | |
256 | + | let bb = (aZ + aa.payments[0].amount) | |
257 | + | let bc = IntegerEntry(aY, bb) | |
258 | + | let bd = IntegerEntry((h + aY), height) | |
259 | + | let be = { | |
260 | + | let s = getInteger(this, "Total_Tokens_Locked:") | |
261 | + | if ($isInstanceOf(s, "Int")) | |
242 | 262 | then { | |
243 | - | let | |
244 | - | | |
263 | + | let ba = s | |
264 | + | ba | |
245 | 265 | } | |
246 | 266 | else 0 | |
247 | 267 | } | |
248 | - | let | |
249 | - | let | |
250 | - | [ | |
268 | + | let bf = (be + aa.payments[0].amount) | |
269 | + | let bg = IntegerEntry("Total_Tokens_Locked:", bf) | |
270 | + | [bc, bd, bg] | |
251 | 271 | } | |
252 | 272 | else { | |
253 | - | let | |
254 | - | let | |
255 | - | if (!(( | |
273 | + | let bh = I(R, S) | |
274 | + | let M = L(bh) | |
275 | + | if (!((M == 0))) | |
256 | 276 | then { | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
277 | + | let aY = toBase58String(aa.caller.bytes) | |
278 | + | let aZ = { | |
279 | + | let s = getInteger(this, ((("STAKE_LP_" + aY) + "_") + bh)) | |
280 | + | if ($isInstanceOf(s, "Int")) | |
261 | 281 | then { | |
262 | - | let | |
263 | - | | |
282 | + | let ba = s | |
283 | + | ba | |
264 | 284 | } | |
265 | 285 | else 0 | |
266 | 286 | } | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if ($isInstanceOf( | |
287 | + | let bb = (aZ + aa.payments[0].amount) | |
288 | + | let bc = IntegerEntry(((("STAKE_LP_" + aY) + "_") + bh), bb) | |
289 | + | let bd = IntegerEntry(((((h + "_") + aY) + "_") + bh), height) | |
290 | + | let be = { | |
291 | + | let s = getInteger(this, ("Total_Tokens_LP_Locked_" + bh)) | |
292 | + | if ($isInstanceOf(s, "Int")) | |
273 | 293 | then { | |
274 | - | let | |
275 | - | | |
294 | + | let ba = s | |
295 | + | ba | |
276 | 296 | } | |
277 | 297 | else 0 | |
278 | 298 | } | |
279 | - | let | |
280 | - | let | |
281 | - | [ | |
299 | + | let bf = (be + aa.payments[0].amount) | |
300 | + | let bg = IntegerEntry(("Total_Tokens_LP_Locked_" + bh), bf) | |
301 | + | [bc, bd, bg] | |
282 | 302 | } | |
283 | 303 | else throw("Invalid Pool key.") | |
284 | 304 | } | |
285 | 305 | else throw("liquidity is currently under maintenance.") | |
286 | 306 | else throw("dApp is currently under maintenance.") | |
287 | 307 | } | |
288 | 308 | ||
289 | 309 | ||
290 | 310 | ||
291 | - | @Callable( | |
292 | - | func remove ( | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | if ( | |
298 | - | then if (!( | |
311 | + | @Callable(aa) | |
312 | + | func remove (aT,R,S,bi) = { | |
313 | + | let aU = getBooleanValue(this, u) | |
314 | + | let aV = getBooleanValue(this, x) | |
315 | + | let bj = aa.payments[0] | |
316 | + | let aW = fromBase58String(getStringValue(this, a)) | |
317 | + | if (aU) | |
318 | + | then if (!(aV)) | |
299 | 319 | then { | |
300 | - | let | |
301 | - | let | |
302 | - | then getIntegerValue(this, ((("STAKE_LP_" + | |
303 | - | else getInteger(this, | |
304 | - | let | |
305 | - | then ((((h + "_") + | |
306 | - | else (h + | |
307 | - | let | |
308 | - | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + | |
320 | + | let aY = toBase58String(aa.caller.bytes) | |
321 | + | let aZ = valueOrElse(if (aT) | |
322 | + | then getIntegerValue(this, ((("STAKE_LP_" + aY) + "_") + I(R, S))) | |
323 | + | else getInteger(this, aY), 0) | |
324 | + | let bk = if (aT) | |
325 | + | then ((((h + "_") + aY) + "_") + I(R, S)) | |
326 | + | else (h + aY) | |
327 | + | let be = if (aT) | |
328 | + | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + I(R, S))) | |
309 | 329 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ((0 > | |
316 | - | then throw(if ( | |
317 | - | then (((("Can't withdraw negative " + | |
330 | + | let bf = (be - bi) | |
331 | + | let bl = (height - getIntegerValue(this, bk)) | |
332 | + | let bm = getIntegerValue(this, y) | |
333 | + | let bn = ((bl * bm) * i) | |
334 | + | let bo = (bn / (be / bi)) | |
335 | + | if ((0 > bi)) | |
336 | + | then throw(if (aT) | |
337 | + | then (((("Can't withdraw negative " + R) + "/") + S) + " amount") | |
318 | 338 | else "Can't withdraw negative AxAi amount") | |
319 | 339 | else { | |
320 | - | let | |
321 | - | if ((0 > | |
322 | - | then throw(if ( | |
323 | - | then (((("Not enough Asset Lp " + | |
340 | + | let bb = (aZ - bi) | |
341 | + | if ((0 > bb)) | |
342 | + | then throw(if (aT) | |
343 | + | then (((("Not enough Asset Lp " + R) + "/") + S) + " balance") | |
324 | 344 | else "Not enough AxAi balance") | |
325 | - | else [IntegerEntry(if ( | |
326 | - | then ((("STAKE_LP_" + | |
327 | - | else | |
328 | - | then ("Total_Tokens_LP_Locked_" + | |
329 | - | else "Total_Tokens_Locked:", | |
330 | - | then fromBase58String(getStringValue(this, (b + | |
331 | - | else | |
345 | + | else [IntegerEntry(if (aT) | |
346 | + | then ((("STAKE_LP_" + aY) + "_") + I(R, S)) | |
347 | + | else aY, bb), IntegerEntry(if (aT) | |
348 | + | then ("Total_Tokens_LP_Locked_" + I(R, S)) | |
349 | + | else "Total_Tokens_Locked:", bf), ScriptTransfer(aa.caller, bi, if (aT) | |
350 | + | then fromBase58String(getStringValue(this, (b + I(R, S)))) | |
351 | + | else aW), ScriptTransfer(aa.caller, bo, aW)] | |
332 | 352 | } | |
333 | 353 | } | |
334 | 354 | else throw("liquidity is currently under maintenance.") | |
335 | 355 | else throw("dApp is currently under maintenance.") | |
336 | 356 | } | |
337 | 357 | ||
338 | 358 | ||
339 | 359 | ||
340 | - | @Callable( | |
341 | - | func addLiquidity ( | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | if ( | |
356 | - | then if (!( | |
357 | - | then if (if (if (!(( | |
358 | - | then | |
360 | + | @Callable(aa) | |
361 | + | func addLiquidity (R,S) = { | |
362 | + | let aU = getBooleanValue(this, u) | |
363 | + | let bp = getBooleanValue(this, v) | |
364 | + | let Z = getBooleanValue(this, G) | |
365 | + | let M = L(I(R, S)) | |
366 | + | let J = aa.payments[0].assetId | |
367 | + | let K = aa.payments[1].assetId | |
368 | + | let bq = toBytes(getStringValue(this, A)) | |
369 | + | let br = toBytes(getStringValue(this, C)) | |
370 | + | let bs = toBytes(getStringValue(this, B)) | |
371 | + | let bt = toBytes(getStringValue(this, D)) | |
372 | + | let bu = toBytes(getStringValue(this, E)) | |
373 | + | let aW = fromBase58String(getStringValue(this, a)) | |
374 | + | let aX = getStringValue(this, (b + I(R, S))) | |
375 | + | if (aU) | |
376 | + | then if (!(bp)) | |
377 | + | then if (if (if (!((J == K))) | |
378 | + | then W(J, R, Z) | |
359 | 379 | else false) | |
360 | - | then | |
380 | + | then W(K, S, Z) | |
361 | 381 | else false) | |
362 | - | then if (if (if (if (if (if (if (if (( | |
382 | + | then if (if (if (if (if (if (if (if ((J == bq)) | |
363 | 383 | then true | |
364 | - | else ( | |
384 | + | else (J == br)) | |
365 | 385 | then true | |
366 | - | else ( | |
386 | + | else (J == bs)) | |
367 | 387 | then true | |
368 | - | else ( | |
388 | + | else (J == bt)) | |
369 | 389 | then true | |
370 | - | else ( | |
390 | + | else (J == aW)) | |
371 | 391 | then true | |
372 | - | else ( | |
392 | + | else (J == H)) | |
373 | 393 | then true | |
374 | - | else ( | |
375 | - | then if (if (if (if (if (if (( | |
394 | + | else (J == bu)) | |
395 | + | then if (if (if (if (if (if ((K == bq)) | |
376 | 396 | then true | |
377 | - | else ( | |
397 | + | else (K == br)) | |
378 | 398 | then true | |
379 | - | else ( | |
399 | + | else (K == bs)) | |
380 | 400 | then true | |
381 | - | else ( | |
401 | + | else (K == bt)) | |
382 | 402 | then true | |
383 | - | else ( | |
403 | + | else (K == aW)) | |
384 | 404 | then true | |
385 | - | else ( | |
405 | + | else (K == H)) | |
386 | 406 | then true | |
387 | - | else ( | |
407 | + | else (K == bu) | |
388 | 408 | else false) | |
389 | - | then if (!(( | |
409 | + | then if (!((M == 0))) | |
390 | 410 | then { | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | [Reissue(fromBase58String( | |
411 | + | let aY = toBase58String(aa.caller.bytes) | |
412 | + | let aZ = N(aY, I(R, S)) | |
413 | + | let bv = O(aY, I(R, S), R) | |
414 | + | let bw = O(aY, I(R, S), S) | |
415 | + | let bx = P(I(R, S), R) | |
416 | + | let by = P(I(R, S), S) | |
417 | + | let bz = (bx / by) | |
418 | + | let bA = (bv + aa.payments[0].amount) | |
419 | + | let bB = (bw + aa.payments[1].amount) | |
420 | + | let bC = (aZ + bz) | |
421 | + | let bD = (bx + aa.payments[0].amount) | |
422 | + | let bE = (by + aa.payments[1].amount) | |
423 | + | [Reissue(fromBase58String(aX), bz, true), ScriptTransfer(Address(aa.caller.bytes), bz, fromBase58String(aX)), IntegerEntry(Q(R, S, aY), height), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + R), bA), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + S), bB), IntegerEntry(((I(R, S) + "_") + aY), bC), IntegerEntry(((I(R, S) + "_") + R), bD), IntegerEntry(((I(R, S) + "_") + S), bE), IntegerEntry(R, (q(R) + aa.payments[0].amount)), IntegerEntry(S, (q(S) + aa.payments[1].amount)), IntegerEntry(aX, (q(aX) + bz))] | |
404 | 424 | } | |
405 | 425 | else throw("Invalid Pool Key.") | |
406 | 426 | else throw("Invalid Asset1 or Asset2!") | |
407 | 427 | else throw("Asset1 cannot be equal to Asset2") | |
408 | 428 | else throw("liquidity is currently under maintenance.") | |
409 | 429 | else throw("dApp is currently under maintenance.") | |
410 | 430 | } | |
411 | 431 | ||
412 | 432 | ||
413 | 433 | ||
414 | - | @Callable( | |
415 | - | func removeLiquidity ( | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | then if ( | |
424 | - | then | |
434 | + | @Callable(aa) | |
435 | + | func removeLiquidity (R,S,bF) = { | |
436 | + | let aY = toBase58String(aa.caller.bytes) | |
437 | + | let aU = getBooleanValue(this, u) | |
438 | + | let bp = getBooleanValue(this, v) | |
439 | + | let Z = getBooleanValue(this, G) | |
440 | + | let bh = I(R, S) | |
441 | + | let M = L(bh) | |
442 | + | let J = if ((R == F)) | |
443 | + | then if (Z) | |
444 | + | then H | |
425 | 445 | else throw("The smart contract does not currently support Waves.") | |
426 | - | else fromBase58String( | |
427 | - | let | |
428 | - | then if ( | |
429 | - | then | |
446 | + | else fromBase58String(R) | |
447 | + | let K = if ((S == F)) | |
448 | + | then if (Z) | |
449 | + | then H | |
430 | 450 | else throw("The smart contract does not currently support Waves.") | |
431 | - | else fromBase58String( | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | if ( | |
445 | - | then if (!( | |
446 | - | then if (!(( | |
447 | - | then if (if (if (if (if (if (if (if (( | |
451 | + | else fromBase58String(S) | |
452 | + | let bq = toBytes(getStringValue(this, A)) | |
453 | + | let br = toBytes(getStringValue(this, C)) | |
454 | + | let bs = toBytes(getStringValue(this, B)) | |
455 | + | let bt = toBytes(getStringValue(this, D)) | |
456 | + | let aW = fromBase58String(getStringValue(this, a)) | |
457 | + | let bu = toBytes(getStringValue(this, E)) | |
458 | + | let aX = getStringValue(this, (b + I(R, S))) | |
459 | + | let aZ = N(aY, I(R, S)) | |
460 | + | let bG = T(aY, bh) | |
461 | + | let bH = getIntegerValue(this, aX) | |
462 | + | let bI = getIntegerValue(this, ((I(R, S) + "_") + R)) | |
463 | + | let bJ = getIntegerValue(this, ((I(R, S) + "_") + S)) | |
464 | + | if (aU) | |
465 | + | then if (!(bp)) | |
466 | + | then if (!((R == S))) | |
467 | + | then if (if (if (if (if (if (if (if ((J == bq)) | |
448 | 468 | then true | |
449 | - | else ( | |
469 | + | else (J == br)) | |
450 | 470 | then true | |
451 | - | else ( | |
471 | + | else (J == bs)) | |
452 | 472 | then true | |
453 | - | else ( | |
473 | + | else (J == bt)) | |
454 | 474 | then true | |
455 | - | else ( | |
475 | + | else (J == aW)) | |
456 | 476 | then true | |
457 | - | else ( | |
477 | + | else (J == H)) | |
458 | 478 | then true | |
459 | - | else ( | |
460 | - | then if (if (if (if (if (if (( | |
479 | + | else (J == bu)) | |
480 | + | then if (if (if (if (if (if ((K == bq)) | |
461 | 481 | then true | |
462 | - | else ( | |
482 | + | else (K == br)) | |
463 | 483 | then true | |
464 | - | else ( | |
484 | + | else (K == bs)) | |
465 | 485 | then true | |
466 | - | else ( | |
486 | + | else (K == bt)) | |
467 | 487 | then true | |
468 | - | else ( | |
488 | + | else (K == aW)) | |
469 | 489 | then true | |
470 | - | else ( | |
490 | + | else (K == H)) | |
471 | 491 | then true | |
472 | - | else ( | |
492 | + | else (K == bu) | |
473 | 493 | else false) | |
474 | - | then if (!(( | |
475 | - | then if (!(( | |
476 | - | then if ((( | |
494 | + | then if (!((M == 0))) | |
495 | + | then if (!((aZ == 0))) | |
496 | + | then if (((aZ - bG) >= bF)) | |
477 | 497 | then { | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | [Burn(fromBase58String( | |
498 | + | let bK = (bF / bH) | |
499 | + | let bL = (bK * bI) | |
500 | + | let bM = (bK * bJ) | |
501 | + | let bx = P(I(R, S), R) | |
502 | + | let by = P(I(R, S), S) | |
503 | + | let bv = O(aY, I(R, S), R) | |
504 | + | let bw = O(aY, I(R, S), S) | |
505 | + | let bA = (bv - bL) | |
506 | + | let bB = (bw - bM) | |
507 | + | let bC = (aZ - bF) | |
508 | + | let bD = (bx - bL) | |
509 | + | let bE = (by - bM) | |
510 | + | [Burn(fromBase58String(aX), bF), ScriptTransfer(Address(aa.caller.bytes), bL, J), ScriptTransfer(Address(aa.caller.bytes), bM, K), IntegerEntry(Q(R, S, aY), height), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + R), bA), IntegerEntry(((((aY + "_") + I(R, S)) + "_") + S), bB), IntegerEntry(((I(R, S) + "_") + aY), bC), IntegerEntry(((I(R, S) + "_") + R), bD), IntegerEntry(((I(R, S) + "_") + S), bE), IntegerEntry(R, (q(R) - bL)), IntegerEntry(S, (q(S) - bM)), IntegerEntry(aX, (q(aX) - bF))] | |
491 | 511 | } | |
492 | 512 | else throw("Amount to be withdrawn greater than the amount available for withdrawal.") | |
493 | 513 | else throw("You have no locked values in the pool") | |
494 | 514 | else throw("Invalid Pool Key.") | |
495 | 515 | else throw("Invalid Asset1 or Asset2!") | |
496 | 516 | else throw("Asset1 cannot be equal to Asset2") | |
497 | 517 | else throw("liquidity is currently under maintenance.") | |
498 | 518 | else throw("dApp is currently under maintenance.") | |
499 | 519 | } | |
500 | 520 | ||
501 | 521 | ||
502 | 522 | ||
503 | - | @Callable( | |
504 | - | func swap ( | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | if ( | |
522 | - | then if (!( | |
523 | - | then if (if (!(( | |
524 | - | then if ( | |
523 | + | @Callable(aa) | |
524 | + | func swap (R,S) = { | |
525 | + | let aY = toBase58String(aa.caller.bytes) | |
526 | + | let Z = getBooleanValue(this, G) | |
527 | + | let aU = getBooleanValue(this, u) | |
528 | + | let bN = getBooleanValue(this, w) | |
529 | + | let bh = I(R, S) | |
530 | + | let M = L(bh) | |
531 | + | let J = aa.payments[0].assetId | |
532 | + | let bq = toBytes(getStringValue(this, A)) | |
533 | + | let br = toBytes(getStringValue(this, C)) | |
534 | + | let bs = toBytes(getStringValue(this, B)) | |
535 | + | let bt = toBytes(getStringValue(this, D)) | |
536 | + | let aW = fromBase58String(getStringValue(this, a)) | |
537 | + | let bu = toBytes(getStringValue(this, E)) | |
538 | + | let bO = getIntegerValue(this, ((I(R, S) + "_") + R)) | |
539 | + | let bP = getIntegerValue(this, ((I(R, S) + "_") + S)) | |
540 | + | let bQ = getIntegerValue(this, g) | |
541 | + | if (aU) | |
542 | + | then if (!(bN)) | |
543 | + | then if (if (!((R == S))) | |
544 | + | then if (W(J, R, Z)) | |
525 | 545 | then true | |
526 | - | else | |
546 | + | else W(J, S, Z) | |
527 | 547 | else false) | |
528 | - | then if (if (if (if (if (if (if (( | |
548 | + | then if (if (if (if (if (if (if ((J == bq)) | |
529 | 549 | then true | |
530 | - | else ( | |
550 | + | else (J == br)) | |
531 | 551 | then true | |
532 | - | else ( | |
552 | + | else (J == bs)) | |
533 | 553 | then true | |
534 | - | else ( | |
554 | + | else (J == bt)) | |
535 | 555 | then true | |
536 | - | else ( | |
556 | + | else (J == aW)) | |
537 | 557 | then true | |
538 | - | else ( | |
558 | + | else (J == bu)) | |
539 | 559 | then true | |
540 | - | else ( | |
541 | - | then if (!(( | |
542 | - | then if (( | |
543 | - | then if (( | |
560 | + | else (J == H)) | |
561 | + | then if (!((M == 0))) | |
562 | + | then if ((aa.payments[1].assetId == aW)) | |
563 | + | then if ((aa.payments[1].amount == 300000)) | |
544 | 564 | then { | |
545 | - | let | |
546 | - | then ( | |
547 | - | else ( | |
548 | - | let | |
549 | - | let | |
550 | - | [ScriptTransfer(Address( | |
551 | - | then | |
552 | - | else fromBase58String( | |
565 | + | let bR = if (!((J == fromBase58String(R)))) | |
566 | + | then (bO / bP) | |
567 | + | else (bP / bO) | |
568 | + | let aL = (aa.payments[0].amount - ((aa.payments[0].amount * bQ) / (100 * i))) | |
569 | + | let bS = (aL * bR) | |
570 | + | [ScriptTransfer(Address(aa.caller.bytes), bS, if ((S == F)) | |
571 | + | then H | |
572 | + | else fromBase58String(S)), IntegerEntry(S, (q(S) - bS)), IntegerEntry(((I(R, S) + "_") + S), (P(I(R, S), S) - bS))] | |
553 | 573 | } | |
554 | 574 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
555 | 575 | else throw("Invalid rate asset") | |
556 | 576 | else throw("Invalid Swap Key.") | |
557 | 577 | else throw("Invalid Asset1 or Asset2!") | |
558 | 578 | else throw("Asset1 cannot be equal to Asset2") | |
559 | 579 | else throw("Swap is currently under maintenance.") | |
560 | 580 | else throw("dApp is currently under maintenance.") | |
561 | 581 | } | |
562 | 582 | ||
563 | 583 | ||
564 | - | @Verifier( | |
565 | - | func | |
566 | - | let | |
567 | - | if ($isInstanceOf( | |
584 | + | @Verifier(bT) | |
585 | + | func bU () = { | |
586 | + | let s = bT | |
587 | + | if ($isInstanceOf(s, "Order")) | |
568 | 588 | then { | |
569 | - | let | |
589 | + | let bV = s | |
570 | 590 | true | |
571 | 591 | } | |
572 | - | else if ($isInstanceOf( | |
592 | + | else if ($isInstanceOf(s, "ExchangeTransaction")) | |
573 | 593 | then { | |
574 | - | let | |
594 | + | let bW = s | |
575 | 595 | true | |
576 | 596 | } | |
577 | - | else sigVerify( | |
597 | + | else sigVerify(bT.bodyBytes, bT.proofs[0], bT.senderPublicKey) | |
578 | 598 | } | |
579 | 599 |
github/deemru/w8io/169f3d6 247.21 ms ◑