tx · D7rMd5wCUNHjsU9MGv2sYXix4gSZab5LT4mVsLrPYZNv

3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL:  -0.01400000 Waves

2019.09.09 23:21 [669025] smart account 3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL > SELF 0.00000000 Waves

{ "type": 13, "id": "D7rMd5wCUNHjsU9MGv2sYXix4gSZab5LT4mVsLrPYZNv", "fee": 1400000, "feeAssetId": null, "timestamp": 1568060579705, "version": 1, "sender": "3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL", "senderPublicKey": "3nmDHSgwcZ79tNbGjppGBY9MbYm4qLZEJcZ32D2WmxkG", "proofs": [ "3cYBY4C2p6GbysxNi7owqQEJUWDqUVyADbtC2H8i38NTLCDeDkxQf4z7oFtQNW8eTectbw9Vcm5TmVvrJRnkMwsd" ], "script": "base64:AAIDAAAAAAAAAAAAAABDAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcBAAAAGGdldE51bWJlckJ5S2V5QW5kQWRkcmVzcwAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAA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lAAAAAgUAAAAMbm9kZVByb3ZpZGVyBQAAAAVibG9jawMJAAAAAAAAAgkBAAAAEWlzU2VudE5vZGVCYWxhbmNlAAAAAgUAAAAMbm9kZVByb3ZpZGVyBQAAAAVibG9jawYJAAACAAAAAQIAAAAPZnVuZHMgd2VyZSBzZW50AwkAAGYAAAACBQAAAAZoZWlnaHQJAABkAAAAAgUAAAAFYmxvY2sFAAAAEUFwcGx5QmxvY2tUaW1lb3V0CQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAABthcHBseSBzZXR0aW5nIHRpbWUgZXhwaXJlICgJAAGkAAAAAQkAAGQAAAACBQAAAAVibG9jawUAAAARQXBwbHlCbG9ja1RpbWVvdXQCAAAAASkJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAABRJc1NlbnROb2RlQmFsYW5jZUtleQUAAAAMbm9kZVByb3ZpZGVyBQAAAA9MaXN0U3BsaXRTeW1ib2wJAAGkAAAAAQUAAAAFYmxvY2sGBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAxub2RlUHJvdmlkZXIFAAAACm5vZGVBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAABCGz5B", "chainId": 84, "height": 669025, "spentComplexity": 0 } View: original | compacted Prev: 56HhfMQMKU1CCYdEKMTkyyyiPBpn6rSpgAxRhhaNpeRa Next: 9xV3NZfnThZWeRC7en7UmY9ZA86EiSDBNfFEPCRJSrwk Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = getInteger(this, b)
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else 0
1212 }
1313
1414
1515 func e (b) = {
1616 let c = getString(this, b)
1717 if ($isInstanceOf(c, "String"))
1818 then {
1919 let d = c
2020 d
2121 }
2222 else ""
2323 }
2424
2525
2626 func f (b) = {
2727 let c = getBoolean(this, b)
2828 if ($isInstanceOf(c, "Boolean"))
2929 then {
3030 let d = c
3131 d
3232 }
3333 else false
3434 }
3535
3636
3737 func g (h,b) = {
3838 let c = getInteger(addressFromStringValue(h), b)
3939 if ($isInstanceOf(c, "Int"))
4040 then {
4141 let d = c
4242 d
4343 }
4444 else 0
4545 }
4646
4747
4848 func i (h,b) = {
4949 let c = getString(addressFromStringValue(h), b)
5050 if ($isInstanceOf(c, "String"))
5151 then {
5252 let d = c
5353 d
5454 }
5555 else ""
5656 }
5757
5858
5959 func j (h,b) = {
6060 let c = getBoolean(addressFromStringValue(h), b)
6161 if ($isInstanceOf(c, "Boolean"))
6262 then {
6363 let d = c
6464 d
6565 }
6666 else false
6767 }
6868
6969
7070 let k = "_"
7171
7272 let l = 10
7373
7474 let m = 2
7575
7676 let n = "+"
7777
7878 let o = 100000000
7979
8080 let p = (10 * o)
8181
8282 let q = (10 * o)
8383
8484 let r = 10
8585
8686 let s = "lease_contract"
8787
8888 let t = "neutrino_asset_id"
8989
9090 let u = "bond_asset_id"
9191
9292 let v = "auction_contract"
9393
9494 let w = "price"
9595
9696 let x = "neutrino_supply"
9797
9898 let y = "waves_reserve"
9999
100100 let z = "neutrino_"
101101
102102 let A = "waves_"
103103
104104 let B = "balance_block_"
105105
106106 let C = "orderbook"
107107
108108 let D = "order_total_"
109109
110110 let E = "order_owner_"
111111
112112 let F = "order_height_"
113113
114114 let G = "orderbook_total"
115115
116116 let H = "orderbook_total_snapshot"
117117
118118 let I = "surplus"
119119
120120 let J = "snapshot_block"
121121
122122 let K = "orderbook_snapshot"
123123
124124 let L = "bond_generated_block"
125125
126126 let M = "account_snapshot_block_"
127127
128128 let N = "account_snapshot_owner_"
129129
130130 let O = "account_snapshot_amount_"
131131
132132 let P = "account_snapshot_node_"
133133
134134 let Q = "snapshot_node_balance_"
135135
136136 let R = "node_balance_"
137137
138138 let S = "is_sent_node_balance_"
139139
140140 let T = "node_status"
141141
142142 let U = a(w)
143143
144144 let V = a(y)
145145
146146 let W = a(x)
147147
148148 let X = a(G)
149149
150150 let Y = e(C)
151151
152152 let Z = a(I)
153153
154154 let aa = a(J)
155155
156156 let ab = a(L)
157157
158158 let ac = e(K)
159159
160160 let ad = a(H)
161161
162162 let ae = fromBase58String(e(t))
163163
164164 let af = fromBase58String(e(u))
165165
166166 let ag = e(v)
167167
168168 let ah = e(s)
169169
170170 let ai = {
171171 let aj = extract(assetInfo(af))
172172 (aj.quantity - assetBalance(this, af))
173173 }
174174
175175 func ak (al) = a((A + al))
176176
177177
178178 func am (al) = a((z + al))
179179
180180
181181 func an (al) = a((B + al))
182182
183183
184184 func ao (ap) = a((D + ap))
185185
186186
187187 func aq (ap) = e((E + ap))
188188
189189
190190 func ar (ap) = a((M + ap))
191191
192192
193193 func as (ap) = e((N + ap))
194194
195195
196196 func at (ap) = a((O + ap))
197197
198198
199199 func au (h,av) = g(ah, (((R + h) + k) + toString(av)))
200200
201201
202202 func aw (h,av) = f((((S + h) + k) + toString(av)))
203203
204204
205205 @Callable(ax)
206206 func setCurrentPrice (U) = WriteSet([DataEntry(w, U)])
207207
208208
209209
210210 @Callable(ax)
211211 func swapWavesToNeutrino () = {
212212 let ay = extract(ax.payment)
213213 if (isDefined(ay.assetId))
214214 then throw("can use waves only")
215215 else {
216216 let az = toBase58String(ax.caller.bytes)
217217 let aA = (((ay.amount * U) / 100) + am(az))
218218 WriteSet([DataEntry((z + toString(ax.caller)), aA), DataEntry((B + toString(ax.caller)), height), DataEntry(y, (V + ay.amount)), DataEntry(x, (W + aA))])
219219 }
220220 }
221221
222222
223223
224224 @Callable(ax)
225225 func swapNeutrinoToWaves () = {
226226 let ay = extract(ax.payment)
227227 if ((ay.assetId != ae))
228228 then throw("can use neutrino only")
229229 else {
230230 let az = toBase58String(ax.caller.bytes)
231231 let aA = (((ay.amount / U) * 100) + ak(az))
232232 WriteSet([DataEntry((A + toString(ax.caller)), aA), DataEntry((B + toString(ax.caller)), height), DataEntry(y, (V - aA)), DataEntry(x, (W - ay.amount))])
233233 }
234234 }
235235
236236
237237
238238 @Callable(ax)
239239 func withdraw (az) = if (((an(az) + m) > height))
240240 then throw("wait a couple of blocks for withdraw")
241241 else ScriptResult(WriteSet([DataEntry((A + az), 0), DataEntry((z + az), 0)]), TransferSet([ScriptTransfer(ax.caller, am(az), ae), ScriptTransfer(ax.caller, ak(az), unit)]))
242242
243243
244244
245245 @Callable(ax)
246246 func generateBond () = {
247247 let aB = (W - (((V * U) / 100) / o))
248248 if (if ((aB >= p))
249249 then (height > (ab + l))
250250 else false)
251251 then ScriptResult(WriteSet([DataEntry(L, height)]), TransferSet([ScriptTransfer(addressFromStringValue(ag), (aB / o), af)]))
252252 else throw(("deficit did not reach the threshold. deficit =" + toString(aB)))
253253 }
254254
255255
256256
257257 @Callable(ax)
258258 func setOrder () = {
259259 let ay = extract(ax.payment)
260260 let aC = toBase58String(keccak256(((toBytes(ay.amount) + ax.caller.bytes) + toBytes(height))))
261261 if ((ay.assetId != af))
262262 then throw("can use bond only")
263263 else if ((aq(aC) != ""))
264264 then throw("order exists")
265265 else WriteSet([DataEntry(G, (X + ay.amount)), DataEntry(C, ((Y + aC) + k)), DataEntry((D + aC), ay.amount), DataEntry((E + aC), toString(ax.caller)), DataEntry((F + aC), height)])
266266 }
267267
268268
269269
270270 @Callable(ax)
271271 func cancelOrder (aD) = {
272272 let al = aq(aD)
273273 let aE = ao(aD)
274274 if ((al != toString(ax.caller)))
275275 then throw("permission denied")
276276 else {
277277 let aF = split(Y, (aD + k))[0]
278278 let aG = split(Y, (aD + k))[1]
279279 ScriptResult(WriteSet([DataEntry(G, (X - aE)), DataEntry(C, (aF + aG)), DataEntry((D + aD), 0)]), TransferSet([ScriptTransfer(ax.caller, aE, unit)]))
280280 }
281281 }
282282
283283
284284
285285 @Callable(ax)
286286 func executeOrder () = {
287287 let aD = split(ac, k)[0]
288288 let aH = ao(aD)
289289 if ((0 >= Z))
290290 then throw("surplus is less than zero")
291291 else {
292292 let aI = split(Y, (aD + k))
293293 let aJ = (aI[0] + aI[1])
294294 let aA = ((aH - (Z / o)) * o)
295295 ScriptResult(WriteSet([DataEntry(G, (X - (if ((Z >= aH))
296296 then aH
297297 else Z))), DataEntry(C, aJ), DataEntry(K, split(ac, (aD + k))[1]), DataEntry((D + aD), if ((0 >= aA))
298298 then 0
299299 else aA)]), TransferSet([ScriptTransfer(ax.caller, if ((Z >= aH))
300300 then (aH * o)
301301 else Z, ae)]))
302302 }
303303 }
304304
305305
306306
307307 @Callable(ax)
308308 func createSnapshot () = {
309309 let aK = (((V * U) / 100) - W)
310310 if (if ((0 >= aK))
311311 then true
312312 else (q > aK))
313313 then throw("surplus is less minimum")
314314 else if ((height >= (aa + l)))
315315 then WriteSet([DataEntry(K, Y), DataEntry(H, X), DataEntry(J, height), DataEntry(I, Z)])
316316 else throw("error create new snapshot")
317317 }
318318
319319
320320
321321 @Callable(ax)
322322 func snapshotNeutrino (h) = {
323323 let al = addressFromStringValue(h)
324324 let aL = assetBalance(al, ae)
325325 let aM = assetBalance(al, af)
326326 let aA = (aM + aL)
327327 let ap = toBase58String(keccak256(((toBytes(aA) + al.bytes) + toBytes(height))))
328328 if ((as(ap) != ""))
329329 then throw("id exists")
330330 else WriteSet([DataEntry((O + ap), aA), DataEntry((M + ap), height), DataEntry((N + ap), toString(ax.caller))])
331331 }
332332
333333
334334
335335 @Callable(ax)
336336 func getNewNeutrino (ap) = {
337337 let aL = assetBalance(ax.caller, ae)
338338 let aM = assetBalance(ax.caller, af)
339339 let aN = (ai - ad)
340340 let aO = (Z - (ad * o))
341341 let av = ar(ap)
342342 let aA = at(ap)
343343 if ((0 >= aO))
344344 then throw("surplus is less than zero")
345345 else if ((av > aa))
346346 then throw("wait new snapshot")
347347 else if ((aA > (aM + aL)))
348348 then throw("invalid balance snapshot")
349349 else ScriptResult(WriteSet([DataEntry((O + ap), 0), DataEntry((M + ap), 0)]), TransferSet([ScriptTransfer(ax.caller, ((aO * ((aA * 100) / (W + aN))) / 100), ae)]))
350350 }
351351
352352
353353
354354 @Callable(ax)
355355 func sendToLeasing (aP,av) = {
356356 let aQ = au(aP, av)
357357 if ((aw(aP, av) == true))
358358 then throw("funds were sent")
359359 else if ((height > (av + r)))
360360 then throw((("apply setting time expire (" + toString((av + r))) + ")"))
361361 else ScriptResult(WriteSet([DataEntry((((S + aP) + k) + toString(av)), true)]), TransferSet([ScriptTransfer(addressFromStringValue(aP), aQ, unit)]))
362362 }
363363
364364

github/deemru/w8io/169f3d6 
63.66 ms