tx · EQz868NF4j1Wek94sqHYqCX7WxkpMkxkgQEemTx5oN6r
3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg: -0.01000000 Waves
2022.12.13 01:17 [2357697] smart account 3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg > SELF 0.00000000 Waves
{
"type": 13,
"id": "EQz868NF4j1Wek94sqHYqCX7WxkpMkxkgQEemTx5oN6r",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1670883526759,
"version": 2,
"chainId": 84,
"sender": "3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg",
"senderPublicKey": "9BT2z4pwSFbgMzyDSXcHsZoPkPzcs29Fz2WqggQWH4qX",
"proofs": [
"3TCvv3pxKzcjvs7UL68aczxdQtxDnNK9nJ51StMy4U9uZDTTDRG6kR7UXYDrpeFy9AyqrimMMxKVsbR4TNoo7Eq5"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkTgEAAAAAAAAAAAxleGNoYW5nZVJhdGUAAAAAAAAAAAUAAAAABnN0YWtlcgkBAAAAB0FkZHJlc3MAAAABAQAAAAAAAAABAAAAAWkBAAAAAWMAAAAAAwkBAAAAAiE9AAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAAEdW5pdAkAAAIAAAABAgAAABB1bmV4cGVjdGVkIGFzc2V0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50CAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAANuaWwAAAAAMz6NZg==",
"height": 2357697,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BgKFvQ2xG3aLVSCBrKUtg233SvArdmecTs9cvwngHmke
Next: 87UzGjp1oUSMKu2JFeopswsUzsVo7ZqecqNkVshtgBRA
Diff:
Old | New | | Differences |
---|
10 | 10 | | @Callable(i) |
---|
11 | 11 | | func c () = if ((i.payments[0].assetId != unit)) |
---|
12 | 12 | | then throw("unexpected asset") |
---|
13 | | - | else { |
---|
14 | | - | let r = invoke(staker, "cancelStake", [(i.payments[0].amount * exchangeRate)], nil) |
---|
15 | | - | if ((r == r)) |
---|
16 | | - | then [ScriptTransfer(i.caller, (i.payments[0].amount * exchangeRate), usdN)] |
---|
17 | | - | else throw("Strict value is not equal to itself.") |
---|
18 | | - | } |
---|
| 13 | + | else [ScriptTransfer(i.caller, i.payments[0].amount, i.payments[0].assetId)] |
---|
19 | 14 | | |
---|
20 | 15 | | |
---|
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 | 11 | | func c () = if ((i.payments[0].assetId != unit)) |
---|
12 | 12 | | then throw("unexpected asset") |
---|
13 | | - | else { |
---|
14 | | - | let r = invoke(staker, "cancelStake", [(i.payments[0].amount * exchangeRate)], nil) |
---|
15 | | - | if ((r == r)) |
---|
16 | | - | then [ScriptTransfer(i.caller, (i.payments[0].amount * exchangeRate), usdN)] |
---|
17 | | - | else throw("Strict value is not equal to itself.") |
---|
18 | | - | } |
---|
| 13 | + | else [ScriptTransfer(i.caller, i.payments[0].amount, i.payments[0].assetId)] |
---|
19 | 14 | | |
---|
20 | 15 | | |
---|