tx · 7sEuyHSs2uPQgXtLc1yTm5NHTKpEpa7XR8JwjNCAXnuX 3MydqRdWHFcvU4ZogmgkGNHt8fqYiCRazbn: -0.10000000 Waves 2020.03.31 09:43 [933274] smart account 3MydqRdWHFcvU4ZogmgkGNHt8fqYiCRazbn > SELF 0.00000000 Waves
{ "type": 13, "id": "7sEuyHSs2uPQgXtLc1yTm5NHTKpEpa7XR8JwjNCAXnuX", "fee": 10000000, "feeAssetId": null, "timestamp": 1585636994117, "version": 1, "sender": "3MydqRdWHFcvU4ZogmgkGNHt8fqYiCRazbn", "senderPublicKey": "J4hU7VqLs2JAJXwFnjicQ97XShyZEqt8REC8fJHkTdKd", "proofs": [ "nYRog98oqv9BwGbuciE2DXDAKVuNArD4PEjj8hDzsMoQbw1Rhe6oCNBbJx7nRJmzhEsQvqEJEt8kRkiHB4g2j8G" ], "script": "base64:AAIDAAAAAAAAABcIARIAEgASBAoCCAESABIDCgEIEgASAAAAAEoBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAYZ2V0TnVtYmVyQnlBZGRyZXNzQW5kS2V5AAAA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AAAAAEJAABlAAAAAgkBAAAAFWdldFVubG9ja0JhbGFuY2VCbG9jawAAAAEFAAAAB2FjY291bnQFAAAABmhlaWdodAIAAAAHIGJsb2NrcwMDCQEAAAACIT0AAAACCQEAAAAYZ2V0TmV1dHJpbm9Mb2NrZWRCYWxhbmNlAAAAAQUAAAAHYWNjb3VudAAAAAAAAAAAAAYJAQAAAAIhPQAAAAIJAQAAABVnZXRXYXZlc0xvY2tlZEJhbGFuY2UAAAABBQAAAAdhY2NvdW50AAAAAAAAAAAACQAAAgAAAAECAAAAInBsZWFzZSB3aXRoZHJhdyBsb2NrZWQgZnVuZHMgZmlyc3QJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABtnZXROZXV0cmlub0xvY2tlZEJhbGFuY2VLZXkAAAABBQAAAAdhY2NvdW50CAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAGGdldEJhbGFuY2VVbmxvY2tCbG9ja0tleQAAAAEFAAAAB2FjY291bnQJAABkAAAAAgUAAAAGaGVpZ2h0BQAAABtiYWxhbmNlTmV1dHJpbm9Mb2NrSW50ZXJ2YWwJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAGE5ldXRyaW5vTG9ja2VkQmFsYW5jZUtleQkAAGQAAAACBQAAABVuZXV0cmlub0xvY2tlZEJhbGFuY2UIBQAAAANwbXQAAAAGYW1vdW50BQAAAANuaWwAAAAA+xClnA==", "chainId": 84, "height": 933274, "spentComplexity": 0 } View: original | compacted Prev: 4dr6ecjbptgQAd4VAYEAj5boS1VunpJYhr4wir2GEP3G Next: DtB2uW6ojynU8kDkS4o3zdecs2Tdr8ZJCyqkh6kD1M6s Diff:
Old | New | Differences | |
---|---|---|---|
338 | 338 | func testTransfer () = { | |
339 | 339 | let aK = extract(aJ.payment) | |
340 | 340 | let aL = toString(aJ.caller) | |
341 | - | WriteSet([DataEntry(U(aL), aK.amount)]) | |
341 | + | if ((aq > aK.amount)) | |
342 | + | then throw((("The specified Neutrino amount is less than the required minimum of " + toString(aq)) + " Neutrino cents.")) | |
343 | + | else if (al) | |
344 | + | then throw("The contract is blocked by EMERGENCY SHUTDOWN. Please wait for reactivation by emergency oracles.") | |
345 | + | else if ((aK.assetId != ag)) | |
346 | + | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
347 | + | else if ((aH(aL) > height)) | |
348 | + | then throw((("await " + toString((aH(aL) - height))) + " blocks")) | |
349 | + | else if (if ((aG(aL) != 0)) | |
350 | + | then true | |
351 | + | else (aF(aL) != 0)) | |
352 | + | then throw("please withdraw locked funds first") | |
353 | + | else WriteSet([DataEntry(U(aL), aK.amount), DataEntry(V(aL), (height + ao)), DataEntry(N, (av + aK.amount))]) | |
342 | 354 | } | |
343 | 355 | ||
344 | 356 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = getInteger(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (b) = { | |
16 | 16 | let c = getString(this, b) | |
17 | 17 | if ($isInstanceOf(c, "String")) | |
18 | 18 | then { | |
19 | 19 | let d = c | |
20 | 20 | d | |
21 | 21 | } | |
22 | 22 | else "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func f (b) = { | |
27 | 27 | let c = getBoolean(this, b) | |
28 | 28 | if ($isInstanceOf(c, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let d = c | |
31 | 31 | d | |
32 | 32 | } | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func g (h,b) = { | |
38 | 38 | let c = getInteger(addressFromStringValue(h), b) | |
39 | 39 | if ($isInstanceOf(c, "Int")) | |
40 | 40 | then { | |
41 | 41 | let d = c | |
42 | 42 | d | |
43 | 43 | } | |
44 | 44 | else 0 | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func i (h,b) = { | |
49 | 49 | let c = getString(addressFromStringValue(h), b) | |
50 | 50 | if ($isInstanceOf(c, "String")) | |
51 | 51 | then { | |
52 | 52 | let d = c | |
53 | 53 | d | |
54 | 54 | } | |
55 | 55 | else "" | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func j (h,b) = { | |
60 | 60 | let c = getBoolean(addressFromStringValue(h), b) | |
61 | 61 | if ($isInstanceOf(c, "Boolean")) | |
62 | 62 | then { | |
63 | 63 | let d = c | |
64 | 64 | d | |
65 | 65 | } | |
66 | 66 | else false | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | let k = 30 | |
71 | 71 | ||
72 | 72 | let l = "_" | |
73 | 73 | ||
74 | 74 | let m = "+" | |
75 | 75 | ||
76 | 76 | let n = 100000000 | |
77 | 77 | ||
78 | 78 | let o = 1000000 | |
79 | 79 | ||
80 | 80 | let p = 5 | |
81 | 81 | ||
82 | 82 | let q = "neutrino_asset_id" | |
83 | 83 | ||
84 | 84 | let r = "bond_asset_id" | |
85 | 85 | ||
86 | 86 | let s = "auction_contract" | |
87 | 87 | ||
88 | 88 | let t = "liquidation_contract" | |
89 | 89 | ||
90 | 90 | let u = "rpd_contract" | |
91 | 91 | ||
92 | 92 | let v = "control_contract" | |
93 | 93 | ||
94 | 94 | let w = "balance_waves_lock_interval" | |
95 | 95 | ||
96 | 96 | let x = "balance_neutrino_lock_interval" | |
97 | 97 | ||
98 | 98 | let y = "min_waves_swap_amount" | |
99 | 99 | ||
100 | 100 | let z = "min_neutrino_swap_amount" | |
101 | 101 | ||
102 | 102 | let A = "node_oracle_provider" | |
103 | 103 | ||
104 | 104 | let B = "rpd_balance" | |
105 | 105 | ||
106 | 106 | func C (D) = ((B + "_") + toBase58String(D)) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | let E = "price" | |
110 | 110 | ||
111 | 111 | let F = "price_index" | |
112 | 112 | ||
113 | 113 | let G = "is_blocked" | |
114 | 114 | ||
115 | 115 | func H (I) = ((E + "_") + toString(I)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func J (K) = ((F + "_") + toString(K)) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | let L = "balance_lock_" | |
122 | 122 | ||
123 | 123 | let M = (L + "waves") | |
124 | 124 | ||
125 | 125 | let N = (L + "neutrino") | |
126 | 126 | ||
127 | 127 | func O (P,D) = ((((B + "_") + toBase58String(D)) + "_") + toString(P)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func Q (R) = (("cancel_lease_tx_reserve_fee" + "_") + R) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func S (T) = ((M + "_") + T) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func U (T) = ((N + "_") + T) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func V (T) = ("balance_unlock_block_" + T) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func W (P) = (("rpd_profit" + "_") + toString(P)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func X (Y,Z) = fraction(fraction(Y, 100, Z), n, o) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func aa (Y,Z) = fraction(fraction(Y, Z, 100), o, n) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ab (Y,Z) = aa(Y, Z) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ac (ad) = split(ad, ",") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | let ae = e(t) | |
158 | 158 | ||
159 | 159 | let af = e(q) | |
160 | 160 | ||
161 | 161 | let ag = fromBase58String(af) | |
162 | 162 | ||
163 | 163 | let ah = e(s) | |
164 | 164 | ||
165 | 165 | let ai = e(u) | |
166 | 166 | ||
167 | 167 | let aj = e(v) | |
168 | 168 | ||
169 | 169 | let ak = g(aj, F) | |
170 | 170 | ||
171 | 171 | let al = j(aj, G) | |
172 | 172 | ||
173 | 173 | let am = fromBase58String(e(A)) | |
174 | 174 | ||
175 | 175 | let an = a(w) | |
176 | 176 | ||
177 | 177 | let ao = a(x) | |
178 | 178 | ||
179 | 179 | let ap = a(y) | |
180 | 180 | ||
181 | 181 | let aq = a(z) | |
182 | 182 | ||
183 | 183 | let ar = fromBase58String("Qh28HvUAcFboD1GsAcyURQjNW6mdpuGvXVgFS9e3CzC") | |
184 | 184 | ||
185 | 185 | let as = fromBase58String("EyizrdEpB9yuh45Zv3f2UfxKLjcecrmvcq5DSP9fEwum") | |
186 | 186 | ||
187 | 187 | let at = this | |
188 | 188 | ||
189 | 189 | let au = g(aj, E) | |
190 | 190 | ||
191 | 191 | let av = a(N) | |
192 | 192 | ||
193 | 193 | let aw = a(M) | |
194 | 194 | ||
195 | 195 | let ax = (wavesBalance(at) - aw) | |
196 | 196 | ||
197 | 197 | let ay = (((av + extract(assetInfo(ag)).quantity) - assetBalance(at, ag)) - assetBalance(addressFromStringValue(ae), ag)) | |
198 | 198 | ||
199 | 199 | let az = (aa(ax, au) - ay) | |
200 | 200 | ||
201 | 201 | let aA = (ay - aa(ax, au)) | |
202 | 202 | ||
203 | 203 | func aB (D) = g(ai, C(D)) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func aC (I) = g(aj, H(I)) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func aD (K) = g(aj, J(K)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func aE (R) = a(Q(R)) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func aF (T) = a(S(T)) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aG (T) = a(U(T)) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aH (T) = a(V(T)) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aI (P) = a(W(P)) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(aJ) | |
228 | 228 | func swapWavesToNeutrino () = { | |
229 | 229 | let aK = extract(aJ.payment) | |
230 | 230 | let aL = toString(aJ.caller) | |
231 | 231 | if ((ap > aK.amount)) | |
232 | 232 | then throw((("The specified Waves amount is less than the required minimum of " + toString(ap)) + " wavelets.")) | |
233 | 233 | else if (isDefined(aK.assetId)) | |
234 | 234 | then throw("Only Waves token is allowed for swapping.") | |
235 | 235 | else if (al) | |
236 | 236 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
237 | 237 | else if ((aH(aL) > height)) | |
238 | 238 | then throw((("await " + toString((aH(aL) - height))) + " blocks")) | |
239 | 239 | else if (if ((aG(aL) != 0)) | |
240 | 240 | then true | |
241 | 241 | else (aF(aL) != 0)) | |
242 | 242 | then throw("please withdraw locked funds first") | |
243 | 243 | else WriteSet([DataEntry(S(aL), aK.amount), DataEntry(V(aL), (height + an)), DataEntry(M, (aw + aK.amount))]) | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Callable(aJ) | |
249 | 249 | func swapNeutrinoToWaves () = { | |
250 | 250 | let aK = extract(aJ.payment) | |
251 | 251 | let aL = toString(aJ.caller) | |
252 | 252 | if ((aq > aK.amount)) | |
253 | 253 | then throw((("The specified Neutrino amount is less than the required minimum of " + toString(aq)) + " Neutrino cents.")) | |
254 | 254 | else if (al) | |
255 | 255 | then throw("The contract is blocked by EMERGENCY SHUTDOWN. Please wait for reactivation by emergency oracles.") | |
256 | 256 | else if ((aK.assetId != ag)) | |
257 | 257 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
258 | 258 | else if ((aH(aL) > height)) | |
259 | 259 | then throw((("await " + toString((aH(aL) - height))) + " blocks")) | |
260 | 260 | else if (if ((aG(aL) != 0)) | |
261 | 261 | then true | |
262 | 262 | else (aF(aL) != 0)) | |
263 | 263 | then throw("please withdraw locked funds first") | |
264 | 264 | else WriteSet([DataEntry(U(aL), aK.amount), DataEntry(V(aL), (height + ao)), DataEntry(N, (av + aK.amount))]) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(aJ) | |
270 | 270 | func withdraw (aL,K) = { | |
271 | 271 | let aM = aH(aL) | |
272 | 272 | let aN = aF(aL) | |
273 | 273 | let aO = aG(aL) | |
274 | 274 | let aP = aD(K) | |
275 | 275 | let aQ = aD((K - 1)) | |
276 | 276 | let aR = aC(aP) | |
277 | 277 | let aS = aa(aN, aR) | |
278 | 278 | let aT = X(aO, aR) | |
279 | 279 | if (al) | |
280 | 280 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
281 | 281 | else if ((aM > height)) | |
282 | 282 | then throw((("please wait for: " + toString(aM)) + " block height to withdraw WAVES funds")) | |
283 | 283 | else if (if (if ((K > ak)) | |
284 | 284 | then true | |
285 | 285 | else (aM > aP)) | |
286 | 286 | then true | |
287 | 287 | else if ((aQ != 0)) | |
288 | 288 | then (aQ >= aM) | |
289 | 289 | else false) | |
290 | 290 | then throw(((((((((("invalid price history index: index=" + toString(K)) + " priceIndex=") + toString(ak)) + " indexHeight=") + toString(aP)) + " unlockHeight=") + toString(aM)) + " prevIndexHeight=") + toString(aQ))) | |
291 | 291 | else if (if ((0 >= aS)) | |
292 | 292 | then (0 >= aT) | |
293 | 293 | else false) | |
294 | 294 | then throw("balance equals zero") | |
295 | 295 | else ScriptResult(WriteSet([DataEntry(S(aL), 0), DataEntry(U(aL), 0), DataEntry(M, (aw - aN)), DataEntry(N, (av - aO))]), TransferSet([ScriptTransfer(addressFromStringValue(aL), aT, unit), ScriptTransfer(addressFromStringValue(aL), aS, ag)])) | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(aJ) | |
301 | 301 | func transferToAuction () = { | |
302 | 302 | let aU = (aA - assetBalance(addressFromStringValue(ah), ar)) | |
303 | 303 | let aV = fraction(ay, p, 100) | |
304 | 304 | let aW = (az - assetBalance(addressFromStringValue(ae), ag)) | |
305 | 305 | if (al) | |
306 | 306 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
307 | 307 | else if (if ((aU > aV)) | |
308 | 308 | then (aU > 0) | |
309 | 309 | else false) | |
310 | 310 | then TransferSet([ScriptTransfer(addressFromStringValue(ah), aU, ar)]) | |
311 | 311 | else if ((aW >= (1 * o))) | |
312 | 312 | then TransferSet([ScriptTransfer(addressFromStringValue(ae), aW, ag)]) | |
313 | 313 | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(aU)) + "|") + toString(aV)) + ". Surplus:") + toString(aW)) + "|") + toString(az))) | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | ||
318 | 318 | @Callable(aJ) | |
319 | 319 | func transfer (aL) = { | |
320 | 320 | let aK = extract(aJ.payment) | |
321 | 321 | TransferSet([ScriptTransfer(addressFromStringValue(aL), aK.amount, aK.assetId)]) | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(aJ) | |
327 | 327 | func migrationUSDNB2NSBTSwap () = { | |
328 | 328 | let aK = extract(aJ.payment) | |
329 | 329 | let aL = aJ.caller | |
330 | 330 | if ((as != aK.assetId)) | |
331 | 331 | then throw("error: attempt to swap not USDNB tokens") | |
332 | 332 | else TransferSet([ScriptTransfer(aL, (aK.amount * o), ar)]) | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | ||
337 | 337 | @Callable(aJ) | |
338 | 338 | func testTransfer () = { | |
339 | 339 | let aK = extract(aJ.payment) | |
340 | 340 | let aL = toString(aJ.caller) | |
341 | - | WriteSet([DataEntry(U(aL), aK.amount)]) | |
341 | + | if ((aq > aK.amount)) | |
342 | + | then throw((("The specified Neutrino amount is less than the required minimum of " + toString(aq)) + " Neutrino cents.")) | |
343 | + | else if (al) | |
344 | + | then throw("The contract is blocked by EMERGENCY SHUTDOWN. Please wait for reactivation by emergency oracles.") | |
345 | + | else if ((aK.assetId != ag)) | |
346 | + | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
347 | + | else if ((aH(aL) > height)) | |
348 | + | then throw((("await " + toString((aH(aL) - height))) + " blocks")) | |
349 | + | else if (if ((aG(aL) != 0)) | |
350 | + | then true | |
351 | + | else (aF(aL) != 0)) | |
352 | + | then throw("please withdraw locked funds first") | |
353 | + | else WriteSet([DataEntry(U(aL), aK.amount), DataEntry(V(aL), (height + ao)), DataEntry(N, (av + aK.amount))]) | |
342 | 354 | } | |
343 | 355 | ||
344 | 356 |
github/deemru/w8io/169f3d6 50.66 ms ◑