tx · Bm8zogQDaWbV6e7uHXVKGLRKBdQJ2b7xXUqcVHeH1mbe
3N2sti8sAvV7haGoDhq7hJZP2izFXqjJbLd: -0.01000000 Waves
2023.06.01 14:00 [2603500] smart account 3N2sti8sAvV7haGoDhq7hJZP2izFXqjJbLd > SELF 0.00000000 Waves
{
"type": 13,
"id": "Bm8zogQDaWbV6e7uHXVKGLRKBdQJ2b7xXUqcVHeH1mbe",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685617399838,
"version": 2,
"chainId": 84,
"sender": "3N2sti8sAvV7haGoDhq7hJZP2izFXqjJbLd",
"senderPublicKey": "H6AD1jFLBQhAMmEhb7sYbpjG7DXeqFw3BxfJXkUGhac5",
"proofs": [
"4KztBS8H7sGgzyMJhQhJZHujSRdG3UX4tj3gC7CmRSK7qDFYZzEa2L5na7AC9FtHPqwBHH4PPgsh863ChMStJSJj"
],
"script": "base64:BgIICAISBAoCAQEAAQFpAQt3aXRoZHJhd09sZAILcGxhdGZvcm1GZWUGYW1vdW50BAVvd25lcgEaAVTtUtIUU1Fri0FIWpfzmBNloogPBC0pwfQEBXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgMJAQIhPQIICAUBaQZjYWxsZXIFYnl0ZXMFBW93bmVyCQACAQIZc29ycnkgIHlvdSBoYXZlIG5vIGFjY2VzcwMDCQBnAgULcGxhdGZvcm1GZWUAAAkAZwIFC3BsYXRmb3JtRmVlBQZhbW91bnQHCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgkAaAIFBmFtb3VudABkBQV0ZWFtcwUDbmlsBQNuaWwBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQLc2V0U2NyaXB0VHgFByRtYXRjaDAGB6zHfT0=",
"height": 2603500,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 5oPxT4McgmavbAGNGDBygzw9qq8V8KLgEcVpJb8Equ3m
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 | + | |
---|
| 20 | + | @Verifier(tx) |
---|
| 21 | + | func verify () = match tx { |
---|
| 22 | + | case setScriptTx: SetScriptTransaction => |
---|
| 23 | + | true |
---|
| 24 | + | case _ => |
---|
| 25 | + | false |
---|
| 26 | + | } |
---|
| 27 | + | |
---|