tx · 4SFvSn5rMHhPmBSB7LV1FDdgEAxM3MVkhN4Pp8SjbJ4U 3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY: -0.01700000 Waves 2022.06.18 19:14 [2102038] smart account 3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY > SELF 0.00000000 Waves
{ "type": 13, "id": "4SFvSn5rMHhPmBSB7LV1FDdgEAxM3MVkhN4Pp8SjbJ4U", "fee": 1700000, "feeAssetId": null, "timestamp": 1655568799944, "version": 2, "chainId": 84, "sender": "3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY", "senderPublicKey": "fFTt4dRQEMWmxs9cA5He1tph3gmQLAM4cnpj6eqkWPR", "proofs": [ "2sF7mNWp1b2QNt5t3wv3ypdk4gd4EYUr13Xn7z4vnJ6DeWL7XRCrA3iAtCCvbbk2v1JR4BwVsgcGZPZbrkQBjpt9" ], "script": "base64:AAIFAAAAAAAAAEIIAhIKCggICAgICAQBARIDCgEEEgUKAwQEBBIDCgEBEgMKAQQSAwoBARIECgIEARIECgIICBIAEgMKAQESBAoCCAgAAAAgAAAAAARtYWluAgAAAAptYWluX2Fzc2V0AAAAAAFsAgAAAAlscF9hc3NldF8AAAAAA2FhMQIAAAAGcG9vbF9fAAAAAAJzYQIAAAAPU1RBS0lOR19BTU9VTlRfAAAAAAJsYQIAAAANTEVBU0VfQU1PVU5UXwAAAAACaXgCAAAAA0lEXwAAAAAHcmF0ZUZlZQIAAAATcGVyY2VudGFnZV9yYXRlX2ZlZQAAAAAOZGVwb3NpdF9oZWlnaHQCAAAAEkRlcG9zaXRfSGVpZ2h0X09mXwAAAAACRDgAAAAAAAX14QAAAAAAAkQ2AAAAAAAAD0JAAAAAAA9jb250cmFjdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgFAAAABHRoaXMAAAAFYnl0ZXMAAAAADGV4Y2hhbmdlUmF0ZQAAAAAAAAAABQEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJ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50QW1vdW50BQAAAAlyZWNlaXZlTHAEAAAADW5ld2Fzc2V0MXBvb2wJAABkAAAAAgUAAAAKYXNzZXQxcG9vbAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA1uZXdhc3NldDJwb29sCQAAZAAAAAIFAAAACmFzc2V0MnBvb2wICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABAAAABmFtb3VudAUAAAADbmlsBQAAAANuaWwJAAACAAAAAQIAAAARSW52YWxpZCBQb29sIEtleS4JAAACAAAAAQIAAAAZSW52YWxpZCBBc3NldDEgb3IgQXNzZXQyIQkAAAIAAAABAgAAACBBc3NldDEgY2Fubm90IGJlIGVxdWFsIHRvIEFzc2V0MgkAAAIAAAABAgAAAClsaXF1aWRpdHkgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgkAAAIAAAABAgAAACRkQXBwIGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmGaH6j", "height": 2102038, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DxBZe1CnTKFKE86xM3btgvdpcnnXkua1WySFoPZ3oASj Next: none Diff:
Old | New | Differences | |
---|---|---|---|
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(O) | |
115 | - | func | |
115 | + | func percentualRateFeeSwapEdit (aq) = if ((O.caller == this)) | |
116 | 116 | then [IntegerEntry(g, aq)] | |
117 | 117 | else throw("Only the Admin itself can invoke this function") | |
118 | 118 | ||
147 | 147 | then { | |
148 | 148 | let au = Issue(((("LP_" + D) + "_") + E), ((("LP asset for pool liquidity in AxAi Swap pair " + D) + "_") + E), 1, 8, true) | |
149 | 149 | let av = calculateAssetId(au) | |
150 | - | ||
150 | + | [StringEntry((b + C(D, E)), toBase58String(av))] | |
151 | 151 | } | |
152 | 152 | else throw("Invalid Pool Key. Try inverting the assets") | |
153 | 153 | else throw("Only the Admin itself can invoke this function") |
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 | let q = "activate" | |
35 | 35 | ||
36 | 36 | let r = "activate_pools" | |
37 | 37 | ||
38 | 38 | let s = "activate_swap" | |
39 | 39 | ||
40 | 40 | let t = "activate_liquidity" | |
41 | 41 | ||
42 | 42 | let u = "block_distribuition" | |
43 | 43 | ||
44 | 44 | let v = "type_block_distribution" | |
45 | 45 | ||
46 | 46 | let w = "Total_Tokens_Locked_" | |
47 | 47 | ||
48 | 48 | let x = "usdn_asset" | |
49 | 49 | ||
50 | 50 | let y = "usdt_asset" | |
51 | 51 | ||
52 | 52 | let z = "usdc_asset" | |
53 | 53 | ||
54 | 54 | let A = "ngnn_asset" | |
55 | 55 | ||
56 | 56 | let B = "accept_waves" | |
57 | 57 | ||
58 | 58 | func C (D,E) = (((c + D) + "_") + E) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func F (G) = valueOrElse(getInteger(this, G), 0) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func H (n,G) = valueOrElse(getIntegerValue(this, ((G + "_") + n)), 0) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func I (n,G,J) = valueOrElse(getIntegerValue(this, ((((G + "_") + n) + "_") + J)), 0) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func K (G,J) = valueOrElse(getIntegerValue(this, ((G + "_") + J)), 0) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func L (M,N,n) = (((h + C(M, N)) + "_") + n) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | @Callable(O) | |
77 | 77 | func constructor (P,Q,R,S,T,U,V,W) = if ((O.caller == this)) | |
78 | 78 | then { | |
79 | 79 | let X = C(Q, R) | |
80 | 80 | let Y = C(Q, S) | |
81 | 81 | let Z = C(Q, T) | |
82 | 82 | let aa = C(Q, "WAVES") | |
83 | 83 | let ab = C(Q, P) | |
84 | 84 | let ac = C(S, R) | |
85 | 85 | let ad = C(S, T) | |
86 | 86 | let ae = C(S, "WAVES") | |
87 | 87 | let af = C(S, P) | |
88 | 88 | let ag = C(R, T) | |
89 | 89 | let ah = C(R, "WAVES") | |
90 | 90 | let ai = C(R, P) | |
91 | 91 | let aj = C(T, "WAVES") | |
92 | 92 | let ak = C(T, P) | |
93 | 93 | let al = C(P, "WAVES") | |
94 | 94 | [StringEntry(a, P), StringEntry(x, Q), StringEntry(z, S), StringEntry(y, R), StringEntry(A, T), BooleanEntry(B, U), IntegerEntry(g, V), BooleanEntry(q, true), BooleanEntry(s, false), BooleanEntry(r, false), BooleanEntry(t, false), IntegerEntry(u, W), IntegerEntry(X, 0), IntegerEntry(aa, 0), IntegerEntry(Y, 0), IntegerEntry(Z, 0), IntegerEntry(ab, 0), IntegerEntry(ac, 0), IntegerEntry(ad, 0), IntegerEntry(ae, 0), IntegerEntry(ai, 0), IntegerEntry(ag, 0), IntegerEntry(ah, 0), IntegerEntry(aj, 0), IntegerEntry(ak, 0), IntegerEntry(al, 0), BooleanEntry(v, false)] | |
95 | 95 | } | |
96 | 96 | else throw("Only the Admin itself can invoke this function") | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(O) | |
101 | 101 | func activate (am) = if ((O.caller == this)) | |
102 | 102 | then [BooleanEntry(q, am)] | |
103 | 103 | else throw("Only the Admin itself can invoke this function") | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Callable(O) | |
108 | 108 | func maintenance (an,ao,ap) = if ((O.caller == this)) | |
109 | 109 | then [BooleanEntry(r, an), BooleanEntry(s, ao), BooleanEntry(t, ap)] | |
110 | 110 | else throw("Only the Admin itself can invoke this function") | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(O) | |
115 | - | func | |
115 | + | func percentualRateFeeSwapEdit (aq) = if ((O.caller == this)) | |
116 | 116 | then [IntegerEntry(g, aq)] | |
117 | 117 | else throw("Only the Admin itself can invoke this function") | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(O) | |
122 | 122 | func acceptWaves (ar) = if ((O.caller == this)) | |
123 | 123 | then [BooleanEntry(B, ar)] | |
124 | 124 | else throw("Only the Admin itself can invoke this function") | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(O) | |
129 | 129 | func blockDistribution (as) = if ((O.caller == this)) | |
130 | 130 | then [IntegerEntry(u, as)] | |
131 | 131 | else throw("Only the Admin itself can invoke this function") | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(O) | |
136 | 136 | func blockDistributionPools (at,as) = if ((O.caller == this)) | |
137 | 137 | then [BooleanEntry(v, at), IntegerEntry(u, as)] | |
138 | 138 | else throw("Only the Admin itself can invoke this function") | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(O) | |
143 | 143 | func lpAssetCreateForPairPool (D,E) = { | |
144 | 144 | let G = F(C(D, E)) | |
145 | 145 | if ((O.caller == this)) | |
146 | 146 | then if (!((G == 0))) | |
147 | 147 | then { | |
148 | 148 | let au = Issue(((("LP_" + D) + "_") + E), ((("LP asset for pool liquidity in AxAi Swap pair " + D) + "_") + E), 1, 8, true) | |
149 | 149 | let av = calculateAssetId(au) | |
150 | - | ||
150 | + | [StringEntry((b + C(D, E)), toBase58String(av))] | |
151 | 151 | } | |
152 | 152 | else throw("Invalid Pool Key. Try inverting the assets") | |
153 | 153 | else throw("Only the Admin itself can invoke this function") | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | ||
158 | 158 | @Callable(O) | |
159 | 159 | func deposit () = { | |
160 | 160 | let aw = getBooleanValue(this, q) | |
161 | 161 | let ax = getBooleanValue(this, t) | |
162 | 162 | let ay = getBooleanValue(this, B) | |
163 | 163 | let az = O.payments[0] | |
164 | 164 | let aA = fromBase58String(getStringValue(this, a)) | |
165 | 165 | if (aw) | |
166 | 166 | then if (!(ax)) | |
167 | 167 | then if ((az.assetId != aA)) | |
168 | 168 | then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(aA))) | |
169 | 169 | else { | |
170 | 170 | let aB = toBase58String(O.caller.bytes) | |
171 | 171 | let aC = { | |
172 | 172 | let aD = getInteger(this, aB) | |
173 | 173 | if ($isInstanceOf(aD, "Int")) | |
174 | 174 | then { | |
175 | 175 | let aE = aD | |
176 | 176 | aE | |
177 | 177 | } | |
178 | 178 | else 0 | |
179 | 179 | } | |
180 | 180 | let aF = (aC + az.amount) | |
181 | 181 | let aG = IntegerEntry(aB, aF) | |
182 | 182 | let aH = IntegerEntry((h + aB), height) | |
183 | 183 | let aI = { | |
184 | 184 | let aD = getInteger(this, "Total_Tokens_Locked:") | |
185 | 185 | if ($isInstanceOf(aD, "Int")) | |
186 | 186 | then { | |
187 | 187 | let aE = aD | |
188 | 188 | aE | |
189 | 189 | } | |
190 | 190 | else 0 | |
191 | 191 | } | |
192 | 192 | let aJ = (aI + az.amount) | |
193 | 193 | let aK = IntegerEntry("Total_Tokens_Locked:", aJ) | |
194 | 194 | [aG, aH, aK] | |
195 | 195 | } | |
196 | 196 | else throw("liquidity is currently under maintenance.") | |
197 | 197 | else throw("dApp is currently under maintenance.") | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | ||
202 | 202 | @Callable(O) | |
203 | 203 | func remove (aL) = { | |
204 | 204 | let aw = getBooleanValue(this, q) | |
205 | 205 | let ax = getBooleanValue(this, t) | |
206 | 206 | let ay = getBooleanValue(this, B) | |
207 | 207 | let az = O.payments[0] | |
208 | 208 | let aA = fromBase58String(getStringValue(this, a)) | |
209 | 209 | if (aw) | |
210 | 210 | then if (!(ax)) | |
211 | 211 | then { | |
212 | 212 | let aB = toBase58String(O.caller.bytes) | |
213 | 213 | let aC = valueOrElse(getInteger(this, aB), 0) | |
214 | 214 | let aM = (h + aB) | |
215 | 215 | let aI = getIntegerValue(this, "Total_Tokens_Locked:") | |
216 | 216 | let aJ = (aI - aL) | |
217 | 217 | let aN = (height - getIntegerValue(this, aM)) | |
218 | 218 | let aO = getIntegerValue(this, u) | |
219 | 219 | let aP = ((aN * aO) * i) | |
220 | 220 | let aQ = (aP / (aI / aL)) | |
221 | 221 | if ((0 > aL)) | |
222 | 222 | then throw("Can't withdraw negative AxAi amount") | |
223 | 223 | else { | |
224 | 224 | let aF = (aC - aL) | |
225 | 225 | if ((0 > aF)) | |
226 | 226 | then throw("Not enough AxAi balance") | |
227 | 227 | else [IntegerEntry(aB, aF), IntegerEntry("Total_Tokens_Locked:", aJ), ScriptTransfer(O.caller, aL, aA), ScriptTransfer(O.caller, aQ, aA)] | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | else throw("liquidity is currently under maintenance.") | |
231 | 231 | else throw("dApp is currently under maintenance.") | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(O) | |
237 | 237 | func addLiquidity (M,N) = { | |
238 | 238 | let aw = getBooleanValue(this, q) | |
239 | 239 | let aR = getBooleanValue(this, r) | |
240 | 240 | let ay = getBooleanValue(this, B) | |
241 | 241 | let G = F(C(M, N)) | |
242 | 242 | let D = O.payments[0].assetId | |
243 | 243 | let E = O.payments[1].assetId | |
244 | 244 | let aS = toBytes(getStringValue(this, x)) | |
245 | 245 | let aT = toBytes(getStringValue(this, z)) | |
246 | 246 | let aU = toBytes(getStringValue(this, y)) | |
247 | 247 | let aV = toBytes(getStringValue(this, A)) | |
248 | 248 | let aA = fromBase58String(getStringValue(this, a)) | |
249 | 249 | if (aw) | |
250 | 250 | then if (!(aR)) | |
251 | 251 | then if (if (if (!((D == E))) | |
252 | 252 | then (D == fromBase58String(M)) | |
253 | 253 | else false) | |
254 | 254 | then (E == fromBase58String(N)) | |
255 | 255 | else false) | |
256 | 256 | then if (if (if (if (if (if (if (if (if (if ((D == aS)) | |
257 | 257 | then true | |
258 | 258 | else (D == aT)) | |
259 | 259 | then true | |
260 | 260 | else (D == aU)) | |
261 | 261 | then true | |
262 | 262 | else (D == aV)) | |
263 | 263 | then true | |
264 | 264 | else (D == aA)) | |
265 | 265 | then true | |
266 | 266 | else (E == aS)) | |
267 | 267 | then true | |
268 | 268 | else (E == aT)) | |
269 | 269 | then true | |
270 | 270 | else (E == aU)) | |
271 | 271 | then true | |
272 | 272 | else (E == aV)) | |
273 | 273 | then true | |
274 | 274 | else (E == aA)) | |
275 | 275 | then if (!((G == 0))) | |
276 | 276 | then { | |
277 | 277 | let aB = toBase58String(O.caller.bytes) | |
278 | 278 | let aC = H(aB, C(M, N)) | |
279 | 279 | let aW = I(aB, C(M, N), M) | |
280 | 280 | let aX = I(aB, C(M, N), N) | |
281 | 281 | let aY = K(C(M, N), M) | |
282 | 282 | let aZ = K(C(M, N), N) | |
283 | 283 | let ba = IntegerEntry(L(M, N, aB), height) | |
284 | 284 | if (if ((aY == 0)) | |
285 | 285 | then true | |
286 | 286 | else (aZ == 0)) | |
287 | 287 | then { | |
288 | 288 | let bb = (aW + O.payments[0].amount) | |
289 | 289 | let bc = (aX + O.payments[1].amount) | |
290 | 290 | let bd = (O.payments[0].amount / O.payments[1].amount) | |
291 | 291 | let be = (aC + bd) | |
292 | 292 | let bf = (aY + O.payments[0].amount) | |
293 | 293 | let bg = (aZ + O.payments[1].amount) | |
294 | 294 | nil | |
295 | 295 | } | |
296 | 296 | else nil | |
297 | 297 | } | |
298 | 298 | else throw("Invalid Pool Key.") | |
299 | 299 | else throw("Invalid Asset1 or Asset2!") | |
300 | 300 | else throw("Asset1 cannot be equal to Asset2") | |
301 | 301 | else throw("liquidity is currently under maintenance.") | |
302 | 302 | else throw("dApp is currently under maintenance.") | |
303 | 303 | } | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | @Verifier(bh) | |
307 | 307 | func bi () = { | |
308 | 308 | let aD = bh | |
309 | 309 | sigVerify(bh.bodyBytes, bh.proofs[0], bh.senderPublicKey) | |
310 | 310 | } | |
311 | 311 |
github/deemru/w8io/169f3d6 87.17 ms ◑