tx · 2LhUteRbZZEaFsZg5gvGBasXaMYgC4pkctUBeJJCjQUR
3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg: -0.01000000 Waves
2022.12.13 01:16 [2357695] smart account 3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg > SELF 0.00000000 Waves
{
"type": 13,
"id": "2LhUteRbZZEaFsZg5gvGBasXaMYgC4pkctUBeJJCjQUR",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1670883392274,
"version": 2,
"chainId": 84,
"sender": "3Mt5iKEfiATrrSsi5VhxmAPRtESbd2Zzimg",
"senderPublicKey": "9BT2z4pwSFbgMzyDSXcHsZoPkPzcs29Fz2WqggQWH4qX",
"proofs": [
"6anmspP1QwTCW8dj21VffmzAZw1qR6mSyAFbkt6F8hNnGKnVGsJJA4j4VEyF9J4oLM2btKFFHpxHRhVdP4Pt23t"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkTgEAAAAAAAAAAAxleGNoYW5nZVJhdGUAAAAAAAAAAAUAAAAABnN0YWtlcgkBAAAAB0FkZHJlc3MAAAABAQAAAAAAAAABAAAAAWkBAAAAAWIAAAAAAwkBAAAAAiE9AAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAAEdW5pdAkAAAIAAAABAgAAABB1bmV4cGVjdGVkIGFzc2V0BAAAAAFyCQAD/AAAAAQFAAAABnN0YWtlcgIAAAALY2FuY2VsU3Rha2UJAARMAAAAAgkAAGgAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQFAAAADGV4Y2hhbmdlUmF0ZQUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAXIFAAAAAXIJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAMZXhjaGFuZ2VSYXRlBQAAAAR1c2ROBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAGb4Vmg=",
"height": 2357695,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: BgKFvQ2xG3aLVSCBrKUtg233SvArdmecTs9cvwngHmke
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let usdN = base58'' |
---|
| 5 | + | |
---|
| 6 | + | let exchangeRate = 5 |
---|
| 7 | + | |
---|
| 8 | + | let staker = Address(base58'') |
---|
| 9 | + | |
---|
| 10 | + | @Callable(i) |
---|
| 11 | + | func b () = if ((i.payments[0].assetId != unit)) |
---|
| 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 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|