tx · 61wbXoycyYDgwuih88mLHX5fKQfDAaAZxTFKtCx6fZ6Q
3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ: -0.00900000 Waves
2022.09.15 18:13 [2230395] smart account 3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "61wbXoycyYDgwuih88mLHX5fKQfDAaAZxTFKtCx6fZ6Q",
"fee": 900000,
"feeAssetId": null,
"timestamp": 1663254868498,
"version": 2,
"chainId": 84,
"sender": "3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ",
"senderPublicKey": "DG81iJnTHiW65E3LH7birSpxT7WWregC8134iCotF6ur",
"proofs": [
"22iWP3q5TEvmcBJnV7BgjiqqPTTjuRvGk1hR5yDa6hjfzU477AvCKzwxAp1BSQcNvhT2YaNk7G6BwL37XUjB6Xz2"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEEAAAAAgAAAAAEVVNETgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAACmZlZUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRN4ZyNCrFnIo+y6NX20ZPI4iW2M835D+AAAAABAAAAAWkBAAAACHVzZG5fMTAwAAAAAQAAAARyZWd1BAAAAAVhZG1pbgIAAAAjM013MXQ1VE1aSnhMdkdqQUZhM1JFckVxUHlvWFBMNE44QTMDCQEAAAACIT0AAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAFYWRtaW4JAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAEXVzZG5BbW91bnRPblN0YXJ0CQAD8AAAAAIFAAAABHRoaXMFAAAABFVTRE4DCQAAAAAAAAIFAAAAEXVzZG5BbW91bnRPblN0YXJ0BQAAABF1c2RuQW1vdW50T25TdGFydAQAAAADaW52CQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNd0dYdXdB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AAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleS0mxOE=",
"height": 2230395,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9piDFvNKtEWH3AvpXgCnbx6399shPGh2FButJCHyiW36
Next: E4HikDtd81EmwiryQRwa1TUXw1tcku7zNHWDetjqrvyT
Diff:
Old | New | | Differences |
---|
22 | 22 | | then { |
---|
23 | 23 | | let i = (h - f) |
---|
24 | 24 | | let j = fraction(i, 5, 100) |
---|
25 | | - | [IntegerEntry("fees", (valueOrElse(getInteger("paidFee"), 0) + j)), IntegerEntry("withawals", (valueOrElse(getInteger("Withawals"), 0) + 1)), ScriptTransfer(b, j, a)] |
---|
| 25 | + | [IntegerEntry("fees", (valueOrElse(getInteger("paidFee"), 0) + j)), IntegerEntry("withdrawals", (valueOrElse(getInteger("withdrawals"), 0) + 1)), ScriptTransfer(b, j, a)] |
---|
26 | 26 | | } |
---|
27 | 27 | | else throw("Strict value is not equal to itself.") |
---|
28 | 28 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = Address(base58'3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3') |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func usdn_100 (d) = { |
---|
10 | 10 | | let e = "3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3" |
---|
11 | 11 | | if ((toString(c.caller) != e)) |
---|
12 | 12 | | then throw("only admin can do") |
---|
13 | 13 | | else { |
---|
14 | 14 | | let f = assetBalance(this, a) |
---|
15 | 15 | | if ((f == f)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let g = invoke(addressFromStringValue("3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8"), "wVI", [false, true], nil) |
---|
18 | 18 | | if ((g == g)) |
---|
19 | 19 | | then { |
---|
20 | 20 | | let h = assetBalance(this, a) |
---|
21 | 21 | | if ((h == h)) |
---|
22 | 22 | | then { |
---|
23 | 23 | | let i = (h - f) |
---|
24 | 24 | | let j = fraction(i, 5, 100) |
---|
25 | | - | [IntegerEntry("fees", (valueOrElse(getInteger("paidFee"), 0) + j)), IntegerEntry("withawals", (valueOrElse(getInteger("Withawals"), 0) + 1)), ScriptTransfer(b, j, a)] |
---|
| 25 | + | [IntegerEntry("fees", (valueOrElse(getInteger("paidFee"), 0) + j)), IntegerEntry("withdrawals", (valueOrElse(getInteger("withdrawals"), 0) + 1)), ScriptTransfer(b, j, a)] |
---|
26 | 26 | | } |
---|
27 | 27 | | else throw("Strict value is not equal to itself.") |
---|
28 | 28 | | } |
---|
29 | 29 | | else throw("Strict value is not equal to itself.") |
---|
30 | 30 | | } |
---|
31 | 31 | | else throw("Strict value is not equal to itself.") |
---|
32 | 32 | | } |
---|
33 | 33 | | } |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Verifier(k) |
---|
37 | 37 | | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
38 | 38 | | |
---|