tx · 586ZcYRTo8HF8KuQDaAj4hmdQyrSPizsY49SMgH43BNn

3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY:  -0.01400000 Waves

2020.10.06 17:52 [1208842] smart account 3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY > SELF 0.00000000 Waves

{ "type": 13, "id": "586ZcYRTo8HF8KuQDaAj4hmdQyrSPizsY49SMgH43BNn", "fee": 1400000, "feeAssetId": null, "timestamp": 1601995986558, "version": 2, "chainId": 84, "sender": "3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY", "senderPublicKey": "HhWoKsFPjXVx9nYfPydpV9BwLmuUdJyJ8ydtyVJVxg9Z", "proofs": [ "3weoWx7W7itof5c5B5uxFKyBx5ad3t2gHKvZxd9b43y43vbHXHx8QeUth2kA5wqkyDrEJg7Fdb9DXfPxM6oa8XH7" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABCQAAaAAAAAIJAABpAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQAAAAAAAAAAHgCAAAAAV8JAAGkAAAAAQUAAAADbGJoAgAAAAJfMAUAAAADbmlsBAAAAAdvbGREYXRhCQAEtQAAAAIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAFAAAAA3N0cgkAAAIAAAABAgAAABFkYXRhIHN0cmluZyBlcnJvcgIAAAABXwQAAAANY3VycmVudEFtb3VudAkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAAB29sZERhdGEAAAAAAAAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABCQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAIAAAABXwkAAaQAAAABBQAAAANsYmgCAAAAAV8JAAGRAAAAAgUAAAAHb2xkRGF0YQAAAAAAAAAAAgUAAAADbmlsAAAAALMUWdE=", "height": 1208842, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7AHSD4a9wtAKPXwSq3rJuBPGHmau2mGAQUKossM2X2N2 Next: ySfmQTJN883eV5tRAxPW4tbNhBatKFMbyYKCrZThxzu Diff:
OldNewDifferences
1111 then throw("can hodl waves only at the moment")
1212 else {
1313 let d = toBase58String(a.caller.bytes)
14- let e = 10
1514 if (!(isDefined(getString(this, d))))
16- then WriteSet([DataEntry(d, (((((toString(((b.amount / 100) * 120)) + "_") + toString(c)) + "_") + toString(e)) + "_0"))])
15+ then WriteSet([DataEntry(d, (((toString(((b.amount / 100) * 120)) + "_") + toString(c)) + "_0"))])
1716 else {
18- let f = split({
19- let g = getString(this, d)
20- if ($isInstanceOf(g, "String"))
17+ let e = split({
18+ let f = getString(this, d)
19+ if ($isInstanceOf(f, "String"))
2120 then {
22- let h = g
23- h
21+ let g = f
22+ g
2423 }
2524 else throw("data string error")
2625 }, "_")
27- let i = {
28- let g = getInteger(this, f[0])
29- if ($isInstanceOf(g, "Int"))
30- then {
31- let j = g
32- j
33- }
34- else throw("data int error")
35- }
36- WriteSet([DataEntry(d, ((((((toString((i + ((b.amount / 100) * 120))) + "_") + toString(c)) + "_") + toString(e)) + "_") + f[3]))])
26+ let h = parseIntValue(e[0])
27+ WriteSet([DataEntry(d, ((((toString((h + ((b.amount / 100) * 120))) + "_") + toString(c)) + "_") + e[2]))])
3728 }
3829 }
3930 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func deposit () = {
88 let b = extract(a.payment)
99 let c = lastBlock.height
1010 if (isDefined(b.assetId))
1111 then throw("can hodl waves only at the moment")
1212 else {
1313 let d = toBase58String(a.caller.bytes)
14- let e = 10
1514 if (!(isDefined(getString(this, d))))
16- then WriteSet([DataEntry(d, (((((toString(((b.amount / 100) * 120)) + "_") + toString(c)) + "_") + toString(e)) + "_0"))])
15+ then WriteSet([DataEntry(d, (((toString(((b.amount / 100) * 120)) + "_") + toString(c)) + "_0"))])
1716 else {
18- let f = split({
19- let g = getString(this, d)
20- if ($isInstanceOf(g, "String"))
17+ let e = split({
18+ let f = getString(this, d)
19+ if ($isInstanceOf(f, "String"))
2120 then {
22- let h = g
23- h
21+ let g = f
22+ g
2423 }
2524 else throw("data string error")
2625 }, "_")
27- let i = {
28- let g = getInteger(this, f[0])
29- if ($isInstanceOf(g, "Int"))
30- then {
31- let j = g
32- j
33- }
34- else throw("data int error")
35- }
36- WriteSet([DataEntry(d, ((((((toString((i + ((b.amount / 100) * 120))) + "_") + toString(c)) + "_") + toString(e)) + "_") + f[3]))])
26+ let h = parseIntValue(e[0])
27+ WriteSet([DataEntry(d, ((((toString((h + ((b.amount / 100) * 120))) + "_") + toString(c)) + "_") + e[2]))])
3728 }
3829 }
3930 }
4031
4132

github/deemru/w8io/169f3d6 
48.40 ms