tx · 8YZ8N7XZCXkDMCD9akkoErZCoeF5VeQHBmdDyDyYyrq
3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx: -0.01000000 Waves
2023.05.25 12:47 [2593343] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves
{
"type": 13,
"id": "8YZ8N7XZCXkDMCD9akkoErZCoeF5VeQHBmdDyDyYyrq",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685008203215,
"version": 2,
"chainId": 84,
"sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx",
"senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx",
"proofs": [
"2bbGYmfhz3yBdhLAeHib3ssbMWMGwgve8gvT8KxXtsL3KX433xkAoNrvQQoWbnatiFpLN3Ts6b3BRWWFg2YEubPy"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIBCAAAAAAAAAABAAAAAWkBAAAAE3dpdGhkcmF3UGxhdGZvcm1GZWUAAAACAAAAC3BsYXRmb3JtRmVlAAAABmFtb3VudAQAAAAFdGVhbXMBAAAAIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+BAAAAA9jb250cmFjdEFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAGgFUp3ITVc77Dng9nmjQtZOFn/gIOzPw3DyDAwMJAABnAAAAAgUAAAALcGxhdGZvcm1GZWUAAAAAAAAAAAAJAABnAAAAAgUAAAALcGxhdGZvcm1GZWUJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAAGYW1vdW50BwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAAGYW1vdW50BQAAAAV0ZWFtcwUAAAADbmlsBQAAAANuaWwAAAAAhVOMFA==",
"height": 2593343,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ENvLxrniER2kKQTQer1tKUkQP8ajD9DuNww5DzLWWFEf
Next: 8mexkUUFWQGbtJsM3ZyFp3TpGeB6jbSDddQwXeiVRTU8
Diff:
Old | New | | Differences |
---|
7 | 7 | | func withdrawPlatformFee (platformFee,amount) = { |
---|
8 | 8 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
9 | 9 | | let contractAddress = addressFromPublicKey(base58'3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx') |
---|
10 | | - | let balance = wavesBalance(this) |
---|
11 | 10 | | if (if ((platformFee >= 0)) |
---|
12 | | - | then (platformFee >= amount) |
---|
| 11 | + | then (platformFee >= parseIntValue(amount)) |
---|
13 | 12 | | else false) |
---|
14 | | - | then [ScriptTransfer(i.caller, amount, teams)] |
---|
| 13 | + | then [ScriptTransfer(i.caller, parseIntValue(amount), teams)] |
---|
15 | 14 | | else nil |
---|
16 | 15 | | } |
---|
17 | 16 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func withdrawPlatformFee (platformFee,amount) = { |
---|
8 | 8 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
9 | 9 | | let contractAddress = addressFromPublicKey(base58'3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx') |
---|
10 | | - | let balance = wavesBalance(this) |
---|
11 | 10 | | if (if ((platformFee >= 0)) |
---|
12 | | - | then (platformFee >= amount) |
---|
| 11 | + | then (platformFee >= parseIntValue(amount)) |
---|
13 | 12 | | else false) |
---|
14 | | - | then [ScriptTransfer(i.caller, amount, teams)] |
---|
| 13 | + | then [ScriptTransfer(i.caller, parseIntValue(amount), teams)] |
---|
15 | 14 | | else nil |
---|
16 | 15 | | } |
---|
17 | 16 | | |
---|
18 | 17 | | |
---|