tx · FgRKmwBWbK5duirG2QVx6o4Ceb8SJon7QfXeKuGfDLKG

3N5ZhGLzDmoMwHsWKAoTqkFvVYuditKPyvY:  -0.01000000 Waves

2022.11.14 16:03 [2316836] smart account 3N5ZhGLzDmoMwHsWKAoTqkFvVYuditKPyvY > SELF 0.00000000 Waves

{ "type": 13, "id": "FgRKmwBWbK5duirG2QVx6o4Ceb8SJon7QfXeKuGfDLKG", "fee": 1000000, "feeAssetId": null, "timestamp": 1668431075293, "version": 2, "chainId": 84, "sender": "3N5ZhGLzDmoMwHsWKAoTqkFvVYuditKPyvY", "senderPublicKey": "7mgUaX6yf7mFk48Gus7kVGRUwCZXtr2CKWJW6KoukPiW", "proofs": [ "2gYaeCBeKbcNJTJCndnGhZSFMSSFokBQ6BZGK8Di7uE2TVtrRHpavyVbD33qXHuQ5u6aMzjgekhZ7R9zKqNpBdQT" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEgMKAQESAwoBAQAAAAEAAAAABnVzZG5JRAEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAADAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABmNhbGxlcgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABnVzZG5JRAkAAAIAAAABAgAAAA1JbnZhbGlkIGFzc2V0BAAAAAlkZXBvc2l0ZWQJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAAGY2FsbGVyAAAAAAAAAAAABAAAAAFzCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAGY2FsbGVyCQAAZAAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAlkZXBvc2l0ZWQEAAAAB29uU3Rha2UJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJA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ALZm9yV2l0aGRyYXcJAAACAAAAAQIAAAATTm90IGVub3VnaCB0byBjbGFpbQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAAZjYWxsZXICAAAACV93aXRoZHJhdwkAAGUAAAACBQAAAAtmb3JXaXRoZHJhdwUAAAAGYW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAZ1c2RuSUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5MC6gng==", "height": 2316836, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5K9e9dPw2NV47zr2VdqywautqEdcNbE78gJVyGQe8yCg Next: none Diff:
OldNewDifferences
1212 else {
1313 let e = valueOrElse(getInteger(this, d), 0)
1414 let f = IntegerEntry(d, (c.amount + e))
15- let g = valueOrElse(getInteger(this, "_tresury"), 0)
15+ let g = valueOrElse(getInteger(this, "_treasury"), 0)
1616 let h = IntegerEntry("_treasury", (c.amount + g))
1717 [f, h]
1818 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
66 @Callable(b)
77 func deposit () = {
88 let c = b.payments[0]
99 let d = toString(b.caller)
1010 if ((c.assetId != a))
1111 then throw("Invalid asset")
1212 else {
1313 let e = valueOrElse(getInteger(this, d), 0)
1414 let f = IntegerEntry(d, (c.amount + e))
15- let g = valueOrElse(getInteger(this, "_tresury"), 0)
15+ let g = valueOrElse(getInteger(this, "_treasury"), 0)
1616 let h = IntegerEntry("_treasury", (c.amount + g))
1717 [f, h]
1818 }
1919 }
2020
2121
2222
2323 @Callable(b)
2424 func withdraw (i) = {
2525 let d = toString(b.caller)
2626 let c = b.payments[0]
2727 let j = valueOrElse(getInteger(this, d), 0)
2828 if ((j == 0))
2929 then throw("Nothing to withdraw")
3030 else if ((0 >= i))
3131 then throw("Invalid input")
3232 else [IntegerEntry(d, (j - c.amount)), ScriptTransfer(b.caller, c.amount, a)]
3333 }
3434
3535
3636
3737 @Callable(b)
3838 func claim (i) = {
3939 let d = toString(b.caller)
4040 let k = getIntegerValue(this, d)
4141 if ((i > k))
4242 then throw("Not enough to claim")
4343 else [IntegerEntry((d + "_withdraw"), (k - i)), ScriptTransfer(b.caller, i, a)]
4444 }
4545
4646
4747 @Verifier(l)
4848 func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
4949

github/deemru/w8io/169f3d6 
22.32 ms