tx · HEKmTsovM76haxHb26fKjzFn3xPSDRcaREXT4Tz5UUTf

3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY:  -0.01400000 Waves

2020.10.06 17:43 [1208835] smart account 3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY > SELF 0.00000000 Waves

{ "type": 13, "id": "HEKmTsovM76haxHb26fKjzFn3xPSDRcaREXT4Tz5UUTf", "fee": 1400000, "feeAssetId": null, "timestamp": 1601995443439, "version": 2, "chainId": 84, "sender": "3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY", "senderPublicKey": "HhWoKsFPjXVx9nYfPydpV9BwLmuUdJyJ8ydtyVJVxg9Z", "proofs": [ "2JmXxx3HUzJwEtmyspHypsqqJkjRYn2iZY3CZswqjjAyogf8BYSEPJGatnA3kBaaVKHzQnYK8XLZTMyR38PZZJhE" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABCQAAaAAAAAIJAABpAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQAAAAAAAAAAHgCAAAAAV8JAAGkAAAAAQUAAAADbGJoAgAAAAJfMAUAAAADbmlsBAAAAAdvbGREYXRhCQAEtQAAAAIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAFAAAAA3N0cgkAAAIAAAABAgAAABFkYXRhIHN0cmluZyBlcnJvcgIAAAABXwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABkQAAAAIFAAAAB29sZERhdGEAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQkAAAIAAAABAgAAAA5kYXRhIGludCBlcnJvcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABpAAAAAEJAABkAAAAAgUAAAANY3VycmVudEFtb3VudAkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AgAAAAFfCQABpAAAAAEFAAAAA2xiaAIAAAABXwkAAZEAAAACBQAAAAdvbGREYXRhAAAAAAAAAAADBQAAAANuaWwAAAAAONMywQ==", "height": 1208835, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3zzL9fNZPFsQntJj8Nf6oM35dh46uM15BBVqZs9VoKYB Next: 7AHSD4a9wtAKPXwSq3rJuBPGHmau2mGAQUKossM2X2N2 Diff:
OldNewDifferences
1111 then throw("can hodl waves only at the moment")
1212 else {
1313 let currentKey = toBase58String(i.caller.bytes)
14- let frostBlock = 10
1514 if (!(isDefined(getString(this, currentKey))))
16- then WriteSet([DataEntry(currentKey, (((((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_0"))])
15+ then WriteSet([DataEntry(currentKey, (((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_0"))])
1716 else {
1817 let oldData = split( match getString(this, currentKey) {
1918 case str: String =>
2726 case _ =>
2827 throw("data int error")
2928 }
30- WriteSet([DataEntry(currentKey, ((((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_") + oldData[3]))])
29+ WriteSet([DataEntry(currentKey, ((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + oldData[3]))])
3130 }
3231 }
3332 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func deposit () = {
88 let pmt = extract(i.payment)
99 let lbh = lastBlock.height
1010 if (isDefined(pmt.assetId))
1111 then throw("can hodl waves only at the moment")
1212 else {
1313 let currentKey = toBase58String(i.caller.bytes)
14- let frostBlock = 10
1514 if (!(isDefined(getString(this, currentKey))))
16- then WriteSet([DataEntry(currentKey, (((((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_0"))])
15+ then WriteSet([DataEntry(currentKey, (((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_0"))])
1716 else {
1817 let oldData = split( match getString(this, currentKey) {
1918 case str: String =>
2019 str
2120 case _ =>
2221 throw("data string error")
2322 }, "_")
2423 let currentAmount = match getInteger(this, oldData[0]) {
2524 case a: Int =>
2625 a
2726 case _ =>
2827 throw("data int error")
2928 }
30- WriteSet([DataEntry(currentKey, ((((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_") + oldData[3]))])
29+ WriteSet([DataEntry(currentKey, ((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + oldData[3]))])
3130 }
3231 }
3332 }
3433
3534

github/deemru/w8io/169f3d6 
27.67 ms