tx · BgKFvQ2xG3aLVSCBrKUtg233SvArdmecTs9cvwngHmke
3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg: -0.01000000 Waves
2022.12.13 01:16 [2357696] smart account 3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg > SELF 0.00000000 Waves
{
"type": 13,
"id": "BgKFvQ2xG3aLVSCBrKUtg233SvArdmecTs9cvwngHmke",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1670883427534,
"version": 2,
"chainId": 84,
"sender": "3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg",
"senderPublicKey": "9BT2z4pwSFbgMzyDSXcHsZoPkPzcs29Fz2WqggQWH4qX",
"proofs": [
"43i9us5K1oWPx4CEsRMFp8qxTi8afXi5Jby4h1TzRQSHLHftShx1e3BuoFKxEodvZ7YYsSyhy8vpkdxFWAG3cU1B"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkTgEAAAAAAAAAAAxleGNoYW5nZVJhdGUAAAAAAAAAAAUAAAAABnN0YWtlcgkBAAAAB0FkZHJlc3MAAAABAQAAAAAAAAABAAAAAWkBAAAAAWMAAAAAAwkBAAAAAiE9AAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAAEdW5pdAkAAAIAAAABAgAAABB1bmV4cGVjdGVkIGFzc2V0BAAAAAFyCQAD/AAAAAQFAAAABnN0YWtlcgIAAAALY2FuY2VsU3Rha2UJAARMAAAAAgkAAGgAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQFAAAADGV4Y2hhbmdlUmF0ZQUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAXIFAAAAAXIJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAMZXhjaGFuZ2VSYXRlBQAAAAR1c2ROBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAHf0W6Y=",
"height": 2357696,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2LhUteRbZZEaFsZg5gvGBasXaMYgC4pkctUBeJJCjQUR
Next: EQz868NF4j1Wek94sqHYqCX7WxkpMkxkgQEemTx5oN6r
Diff:
Old | New | | Differences |
---|
8 | 8 | | let staker = Address(base58'') |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func b () = if ((i.payments[0].assetId != unit)) |
---|
| 11 | + | func c () = if ((i.payments[0].assetId != unit)) |
---|
12 | 12 | | then throw("unexpected asset") |
---|
13 | 13 | | else { |
---|
14 | 14 | | let r = invoke(staker, "cancelStake", [(i.payments[0].amount * exchangeRate)], nil) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let usdN = base58'' |
---|
5 | 5 | | |
---|
6 | 6 | | let exchangeRate = 5 |
---|
7 | 7 | | |
---|
8 | 8 | | let staker = Address(base58'') |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func b () = if ((i.payments[0].assetId != unit)) |
---|
| 11 | + | func c () = if ((i.payments[0].assetId != unit)) |
---|
12 | 12 | | then throw("unexpected asset") |
---|
13 | 13 | | else { |
---|
14 | 14 | | let r = invoke(staker, "cancelStake", [(i.payments[0].amount * exchangeRate)], nil) |
---|
15 | 15 | | if ((r == r)) |
---|
16 | 16 | | then [ScriptTransfer(i.caller, (i.payments[0].amount * exchangeRate), usdN)] |
---|
17 | 17 | | else throw("Strict value is not equal to itself.") |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|