tx · 5K8JSgAzaTUHYiAz48vTuEgBzu1VYid5nNHK19ZvbqFE
3MoyrV6fiVq6Q6999xWX6MPFreKjNx5dB3B: -0.01000000 Waves
2023.05.31 09:13 [2601771] smart account 3MoyrV6fiVq6Q6999xWX6MPFreKjNx5dB3B > SELF 0.00000000 Waves
{
"type": 13,
"id": "5K8JSgAzaTUHYiAz48vTuEgBzu1VYid5nNHK19ZvbqFE",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685513799489,
"version": 2,
"chainId": 84,
"sender": "3MoyrV6fiVq6Q6999xWX6MPFreKjNx5dB3B",
"senderPublicKey": "4NmSoLSRPQnq28qkS9UzCoWqqRHwwcwVkKVG8QbXe3uU",
"proofs": [
"3CnMMVVskDtK8i5GAnRjv8yD9e2dTz7dt5HtuMR3o8gK5AFguvTToT1PEDLsb5HoV7B9T37cvYvpdtVJU4N3BwNb"
],
"script": "base64:BgIICAISBAoCAQEAAQFpAQt3aXRoZHJhd09sZAILcGxhdGZvcm1GZWUGYW1vdW50BAVvd25lcgEaAVTtUtIUU1Fri0FIWpfzmBNloogPBC0pwfQEBXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgMJAAACCAgFAWkGY2FsbGVyBWJ5dGVzBQVvd25lcgkAAgECGXNvcnJ5ICB5b3UgaGF2ZSBubyBhY2Nlc3MDAwkAZwIFC3BsYXRmb3JtRmVlAAAJAGcCBQtwbGF0Zm9ybUZlZQUGYW1vdW50BwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIJAGgCBQZhbW91bnQAZAUFdGVhbXMFA25pbAUDbmlsAD8wuz8=",
"height": 2601771,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 4FbCg8i9oo8x9z9JvcZDraPXd19NS273ZAa8embEuY4D
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func withdrawOld (platformFee,amount) = { |
---|
| 8 | + | let owner = base58'3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw' |
---|
| 9 | + | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
| 10 | + | if ((i.caller.bytes == owner)) |
---|
| 11 | + | then throw("sorry you have no access") |
---|
| 12 | + | else if (if ((platformFee >= 0)) |
---|
| 13 | + | then (platformFee >= amount) |
---|
| 14 | + | else false) |
---|
| 15 | + | then [ScriptTransfer(i.caller, (amount * 100), teams)] |
---|
| 16 | + | else nil |
---|
| 17 | + | } |
---|
| 18 | + | |
---|
| 19 | + | |
---|