tx · BPYC7byV8hCU8JMjDxPAdkkhE6HswjY57DPY4ri7CwLg 3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh: -0.04000000 Waves 2022.08.15 12:06 [2185377] smart account 3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh > SELF 0.00000000 Waves
{ "type": 13, "id": "BPYC7byV8hCU8JMjDxPAdkkhE6HswjY57DPY4ri7CwLg", "fee": 4000000, "feeAssetId": null, "timestamp": 1660554428936, "version": 1, "sender": "3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh", "senderPublicKey": "HiTi1JT7GQRqLNxg4yZhD1mV42y1Mv2AYvRx92JQRbwX", "proofs": [ "ai7ypCJb9ygc73VJv46vtzPWCabEW5izfzbdkjQMpG66c5jC7HPq8MAbg1WWaHXKcDqsMuTayBjXWY7zEA3oVuT" ], "script": "base64:BgInCAISAwoBARIFCgMIAQESBQoDCAEBEgMKAQgSBAoCCAESBQoDCAEITQAGRVVMRVI4ANaJz4EBAAVNVUxUNgDAhD0ABk1VTFRYNgkAtgIBAMCEPQAFTVVMVDgAgMLXLwAGTVVMVFg4CQC2AgEAgMLXLwAHTVVMVFgxMAkAtgIBAIDIr6AlAAZNVUxUMTIAgKCUpY0dAAdNVUxUWDE2CQC2AgEAgICE/qbe4REABk1VTFQxOAkAtgIBAICAkLu61q3wDQADU0VQAgJfXwAHV0FWRVNJRAkA2QQBAgVXQVZFUwESa2V5TmV1dHJpbm9Bc3NldElkAAIRbmV1dHJpbm9fYXNzZXRfaWQBDmtleU5zYnRBc3NldElkAAINYm9uZF9hc3NldF9pZAEOa2V5U3VyZkFzc2V0SWQAAg1zdXJmX2Fzc2V0X2lkARBrZXlCYWxhbmNlTG9ja2VkAAINYmFsYW5jZV9sb2NrXwEVa2V5V2F2ZXNMb2NrZWRCYWxhbmNlAAkArAICCQEQa2V5QmFsYW5jZUxvY2tlZAACBXdhdmVzARhrZXlOZXV0cmlub0xvY2tlZEJhbGFuY2UACQCsAgIJ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NTApAgUPY29udHJvbENvbnRyYWN0CQEIa2V5UHJpY2UABQtsaW1pdFdhbnRlZAQLZ05zYnROZWVkZWQJAQVhc0ludAEJAPwHBAUEdGhpcwIYcmV2ZXJzZVN3YXBMaW1pdFJFQURPTkxZCQDMCAIFD2xpbWl0V2FudGVkVXNkbgUDbmlsBQNuaWwECmdOc2J0RGVsdGEJAGUCBQtnTnNidE5lZWRlZAUMZ05zYnRDdXJyZW50CQCUCgIFA25pbAkAuQkCCQDMCAICBCVzJXMJAMwIAgkApAMBBQxnTnNidEN1cnJlbnQJAMwIAgkApAMBBQpnTnNidERlbHRhBQNuaWwFA1NFUAA5J0N/", "chainId": 84, "height": 2185377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3kvi8PPiuoLt2QVHA4ErwLBq8iK6G7XhNAabzn8WFvUz Next: BrB2GWcz86YLVmAHaAB9RWrsu2ASrCbzoZm6rMtgqLG7 Diff:
Old | New | Differences | |
---|---|---|---|
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(aS) | |
372 | - | func swapLimitCalculatorREADONLY (cl,cm) = { | |
373 | - | let | |
372 | + | func swapLimitCalculatorREADONLY (cl,cm,cn) = { | |
373 | + | let co = if ((cl == "")) | |
374 | 374 | then 0 | |
375 | 375 | else V(ab(invoke(aF, "swapParamsByUserSYSREADONLY", [cl, 0], nil))._4) | |
376 | - | let co = V(invoke(this, "reverseSwapLimitREADONLY", [cm], nil)) | |
377 | - | let cp = (co - cn) | |
378 | - | $Tuple2(nil, makeString(["%s%s", toString(cn), toString(cp)], j)) | |
376 | + | let cp = if ((cn == "WAVES")) | |
377 | + | then (cm * getIntegerValue(aD, B())) | |
378 | + | else cm | |
379 | + | let cq = V(invoke(this, "reverseSwapLimitREADONLY", [cp], nil)) | |
380 | + | let cr = (cq - co) | |
381 | + | $Tuple2(nil, makeString(["%s%s", toString(co), toString(cr)], j)) | |
379 | 382 | } | |
380 | 383 | ||
381 | 384 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 271828182 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000) | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(100000000) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(10000000000) | |
15 | 15 | ||
16 | 16 | let g = 1000000000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(10000000000000000) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(1000000000000000000) | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = fromBase58String("WAVES") | |
25 | 25 | ||
26 | 26 | func l () = "neutrino_asset_id" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func m () = "bond_asset_id" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n () = "surf_asset_id" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o () = "balance_lock_" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func p () = (o() + "waves") | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func q () = (o() + "neutrino") | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func r () = "min_waves_swap_amount" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func s () = "min_neutrino_swap_amount" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func t () = "wavesOut_swap_feePart" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func u () = "neutrinoOut_swap_feePart" | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func v () = "%s%s__config__swapAParam" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func w () = "%s%s__config__swapBParam" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func x () = "%s__nsbtLockContract" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func y () = "%s__mathContract" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func z () = "balance_waves_lock_interval" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func A () = "balance_neutrino_lock_interval" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func B () = "price" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func C (D) = makeString(["%s%s%s", "paramByUser", D, "start"], j) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func E () = "%s__halfLife" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F () = "%s__minLockAmount" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G () = "min_waves_nsbt_buy" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H () = "min_nsbt_sell" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func I (J,K) = valueOrErrorMessage(getString(J, K), makeString(["mandatory ", toString(J), ".", K, " is not defined"], "")) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func L (J,K) = valueOrErrorMessage(getInteger(J, K), makeString(["mandatory ", toString(J), ".", K, " is not defined"], "")) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func M (J,K) = valueOrErrorMessage(getBoolean(J, K), makeString(["mandatory ", toString(J), ".", K, " is not defined"], "")) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func N (O,P) = fraction(O, d, P) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func Q (O,P) = fraction(O, P, d) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func R (S) = { | |
108 | 108 | let T = S | |
109 | 109 | if ($isInstanceOf(T, "List[Any]")) | |
110 | 110 | then { | |
111 | 111 | let U = T | |
112 | 112 | U | |
113 | 113 | } | |
114 | 114 | else throw("fail to cast into List[Any]") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func V (S) = { | |
119 | 119 | let T = S | |
120 | 120 | if ($isInstanceOf(T, "Int")) | |
121 | 121 | then { | |
122 | 122 | let W = T | |
123 | 123 | W | |
124 | 124 | } | |
125 | 125 | else throw("fail to cast into Int") | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func X (S) = { | |
130 | 130 | let T = S | |
131 | 131 | if ($isInstanceOf(T, "String")) | |
132 | 132 | then { | |
133 | 133 | let Y = T | |
134 | 134 | Y | |
135 | 135 | } | |
136 | 136 | else throw("fail to cast into String") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func Z (S) = { | |
141 | 141 | let T = S | |
142 | 142 | if ($isInstanceOf(T, "(Int, Int)")) | |
143 | 143 | then { | |
144 | 144 | let aa = T | |
145 | 145 | aa | |
146 | 146 | } | |
147 | 147 | else throw("fail to cast into Tuple2 ints") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ab (S) = { | |
152 | 152 | let T = S | |
153 | 153 | if ($isInstanceOf(T, "(Int, Int, Int, Int, Int)")) | |
154 | 154 | then { | |
155 | 155 | let ac = T | |
156 | 156 | ac | |
157 | 157 | } | |
158 | 158 | else throw("fail to cast into Tuple5 ints") | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ad (ae) = if ((0 > ae)) | |
163 | 163 | then -1 | |
164 | 164 | else { | |
165 | 165 | let T = blockInfoByHeight(ae) | |
166 | 166 | if ($isInstanceOf(T, "BlockInfo")) | |
167 | 167 | then { | |
168 | 168 | let af = T | |
169 | 169 | af.timestamp | |
170 | 170 | } | |
171 | 171 | else -1 | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ag (ah,ai) = fraction(toBigInt(ah), i, toBigInt(ai)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aj (S,ak) = toInt(fraction(S, toBigInt(ak), i)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | let al = 1 | |
182 | 182 | ||
183 | 183 | let am = 2 | |
184 | 184 | ||
185 | 185 | let an = 3 | |
186 | 186 | ||
187 | 187 | let ao = 4 | |
188 | 188 | ||
189 | 189 | let ap = 5 | |
190 | 190 | ||
191 | 191 | let aq = 6 | |
192 | 192 | ||
193 | 193 | let ar = 7 | |
194 | 194 | ||
195 | 195 | let as = 8 | |
196 | 196 | ||
197 | 197 | let at = 9 | |
198 | 198 | ||
199 | 199 | let au = 10 | |
200 | 200 | ||
201 | 201 | let av = 11 | |
202 | 202 | ||
203 | 203 | func aw () = "%s%s__config__controlAddress" | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func ax () = "%s__controlConfig" | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func ay (az) = split(I(az, ax()), j) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func aA (aB,aC) = valueOrErrorMessage(addressFromString(aB[aC]), ("Control cfg doesn't contain address at index " + toString(aC))) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | let aD = addressFromStringValue(valueOrElse(getString(this, aw()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
216 | 216 | ||
217 | 217 | let aB = ay(aD) | |
218 | 218 | ||
219 | 219 | let aE = aA(aB, ao) | |
220 | 220 | ||
221 | 221 | let aF = aA(aB, al) | |
222 | 222 | ||
223 | 223 | let aG = aA(aB, am) | |
224 | 224 | ||
225 | 225 | let aH = aA(aB, ap) | |
226 | 226 | ||
227 | 227 | let aI = aA(aB, an) | |
228 | 228 | ||
229 | 229 | let aJ = aA(aB, as) | |
230 | 230 | ||
231 | 231 | let aK = aA(aB, au) | |
232 | 232 | ||
233 | 233 | let aL = aA(aB, av) | |
234 | 234 | ||
235 | 235 | let aM = I(aF, l()) | |
236 | 236 | ||
237 | 237 | let aN = fromBase58String(aM) | |
238 | 238 | ||
239 | 239 | let aO = getStringValue(aF, m()) | |
240 | 240 | ||
241 | 241 | let aP = fromBase58String(aO) | |
242 | 242 | ||
243 | 243 | let aQ = getStringValue(aG, n()) | |
244 | 244 | ||
245 | 245 | let aR = fromBase58String(aQ) | |
246 | 246 | ||
247 | 247 | @Callable(aS) | |
248 | 248 | func reverseSwapLimitREADONLY (aT) = { | |
249 | 249 | let aU = if ((0 >= aT)) | |
250 | 250 | then 0 | |
251 | 251 | else { | |
252 | 252 | let aV = toBigInt(L(aE, v())) | |
253 | 253 | let aW = toBigInt(L(aE, w())) | |
254 | 254 | let aX = fraction(toBigInt(aT), f, aV) | |
255 | 255 | let aY = fraction(h, h, aW) | |
256 | 256 | toInt(pow(aX, 8, aY, 16, 6, CEILING)) | |
257 | 257 | } | |
258 | 258 | $Tuple2(nil, aU) | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(aS) | |
264 | 264 | func gnsbtInfoINTERNAL (aZ,ba,bb) = { | |
265 | 265 | let bc = if ((aZ != "")) | |
266 | 266 | then addressFromStringValue(aZ) | |
267 | 267 | else this | |
268 | 268 | let bd = getIntegerValue(aD, B()) | |
269 | 269 | let be = ba | |
270 | 270 | let bf = V(invoke(aK, "gnsbtFromSurfSYSREADONLY", [bb], nil)) | |
271 | 271 | let bg = (be + bf) | |
272 | 272 | let bh = ab(invoke(aF, "swapParamsByUserSYSREADONLY", [aZ, 0], nil)) | |
273 | 273 | let bi = bh._1 | |
274 | 274 | let bj = bh._2 | |
275 | 275 | let bk = bh._3 | |
276 | 276 | let bl = bh._4 | |
277 | 277 | let bm = bh._5 | |
278 | 278 | let bn = ab(invoke(aF, "swapParamsByUserSYSREADONLY", [aZ, bg], nil)) | |
279 | 279 | let bo = bn._1 | |
280 | 280 | let bp = bn._2 | |
281 | 281 | let bq = bn._3 | |
282 | 282 | let br = bn._4 | |
283 | 283 | let bs = bn._5 | |
284 | 284 | let bt = N(bi, bd) | |
285 | 285 | let bu = N(bo, bd) | |
286 | 286 | let bv = if ((aZ != "")) | |
287 | 287 | then assetBalance(bc, aP) | |
288 | 288 | else 0 | |
289 | 289 | let bw = if ((aZ != "")) | |
290 | 290 | then assetBalance(bc, aR) | |
291 | 291 | else 0 | |
292 | 292 | let bx = if ((ba >= 0)) | |
293 | 293 | then ba | |
294 | 294 | else { | |
295 | 295 | let by = R(invoke(aJ, "nsbtUnstakingSYSREADONLY", [aZ, (-1 * ba)], nil)) | |
296 | 296 | let bz = V(by[2]) | |
297 | 297 | let bA = -(bz) | |
298 | 298 | bA | |
299 | 299 | } | |
300 | 300 | let bB = (bv - bx) | |
301 | 301 | let bC = (bw - bb) | |
302 | 302 | let bD = R(invoke(aL, "gnsbtInfoSYSREADONLY", [aZ, ba, bb], nil)) | |
303 | 303 | let bE = V(bD[0]) | |
304 | 304 | let bF = V(bD[1]) | |
305 | 305 | let bG = R(bD[2]) | |
306 | 306 | let bH = R(bD[3]) | |
307 | 307 | let bI = V(bD[4]) | |
308 | 308 | let bJ = V(bD[5]) | |
309 | 309 | let bK = V(bG[2]) | |
310 | 310 | let bL = V(bH[2]) | |
311 | 311 | let bM = (bK + be) | |
312 | 312 | let bN = (bL + bf) | |
313 | 313 | let bO = V(bG[3]) | |
314 | 314 | let bP = V(bH[3]) | |
315 | 315 | let bQ = 0 | |
316 | 316 | let bR = bP | |
317 | 317 | let bS = (bO + be) | |
318 | 318 | let bT = (bP + bf) | |
319 | 319 | let bU = bT | |
320 | 320 | let bV = fraction(bK, d, (bO + bQ)) | |
321 | 321 | let bW = fraction(bM, d, (bS + bQ)) | |
322 | 322 | let bX = fraction((bK + bL), d, ((bO + bQ) + bR)) | |
323 | 323 | let bY = fraction((bM + bN), d, ((bS + bQ) + bU)) | |
324 | 324 | let bZ = if ((bI == 0)) | |
325 | 325 | then height | |
326 | 326 | else bI | |
327 | 327 | let ca = if ((bJ == 0)) | |
328 | 328 | then height | |
329 | 329 | else bJ | |
330 | 330 | $Tuple2(nil, [0, bv, bw, bB, bC, bK, bL, bM, bN, bO, bP, bS, bT, bi, bt, bo, bu, bk, bq, bV, bW, bX, bY, bZ, ca]) | |
331 | 331 | } | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | ||
335 | 335 | @Callable(aS) | |
336 | 336 | func gnsbtInfoREADONLY (aZ,ba,bb) = { | |
337 | 337 | let cb = R(invoke(this, "gnsbtInfoINTERNAL", [aZ, ba, bb], nil)) | |
338 | 338 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(V(cb[1])), toString(V(cb[2])), toString(V(cb[3])), toString(V(cb[4])), toString(V(cb[5])), toString(V(cb[6])), toString(V(cb[7])), toString(V(cb[8])), toString(V(cb[9])), toString(V(cb[10])), toString(V(cb[11])), toString(V(cb[12])), toString(V(cb[13])), toString(V(cb[14])), toString(V(cb[15])), toString(V(cb[16])), toString(V(cb[17])), toString(V(cb[18])), toString(V(cb[19])), toString(V(cb[20])), toString(V(cb[21])), toString(V(cb[22])), toString(V(cb[23])), toString(V(cb[24]))], j)) | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(aS) | |
344 | 344 | func rewardInfoREADONLY (aZ) = { | |
345 | 345 | let cc = R(invoke(aL, "gnsbtRewardsSYSREADONLY", [aZ], nil)) | |
346 | 346 | $Tuple2(nil, makeString(["%s%s", X(cc[0]), X(cc[1])], j)) | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(aS) | |
352 | 352 | func mergeNsbtREADONLY (cd,ce) = { | |
353 | 353 | let bG = R(invoke(aJ, "nsbtStakingSYSREADONLY", [cd, ce], nil)) | |
354 | 354 | let cf = V(bG[0]) | |
355 | 355 | let cg = if ((0 >= cf)) | |
356 | 356 | then -1 | |
357 | 357 | else V(bG[2]) | |
358 | 358 | let ch = ad(cg) | |
359 | 359 | let ci = if ((0 >= ce)) | |
360 | 360 | then cg | |
361 | 361 | else { | |
362 | 362 | let cj = L(aJ, E()) | |
363 | 363 | V(invoke(aE, "mergeStakesREADONLY", [cf, cg, ce, height, cj], nil)) | |
364 | 364 | } | |
365 | 365 | let ck = ad(ci) | |
366 | 366 | $Tuple2(nil, makeString(["%d%d%d%d", toString(cg), toString(ch), toString(ci), toString(ck)], j)) | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(aS) | |
372 | - | func swapLimitCalculatorREADONLY (cl,cm) = { | |
373 | - | let | |
372 | + | func swapLimitCalculatorREADONLY (cl,cm,cn) = { | |
373 | + | let co = if ((cl == "")) | |
374 | 374 | then 0 | |
375 | 375 | else V(ab(invoke(aF, "swapParamsByUserSYSREADONLY", [cl, 0], nil))._4) | |
376 | - | let co = V(invoke(this, "reverseSwapLimitREADONLY", [cm], nil)) | |
377 | - | let cp = (co - cn) | |
378 | - | $Tuple2(nil, makeString(["%s%s", toString(cn), toString(cp)], j)) | |
376 | + | let cp = if ((cn == "WAVES")) | |
377 | + | then (cm * getIntegerValue(aD, B())) | |
378 | + | else cm | |
379 | + | let cq = V(invoke(this, "reverseSwapLimitREADONLY", [cp], nil)) | |
380 | + | let cr = (cq - co) | |
381 | + | $Tuple2(nil, makeString(["%s%s", toString(co), toString(cr)], j)) | |
379 | 382 | } | |
380 | 383 | ||
381 | 384 |
github/deemru/w8io/026f985 41.33 ms ◑