tx · BrEbnjsX3cxyDyFZqijgRdEFsuAgJQjuzJPqCM6Zsg6s
3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7: -0.00100000 Waves
2024.04.22 10:12 [3073700] smart account 3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BrEbnjsX3cxyDyFZqijgRdEFsuAgJQjuzJPqCM6Zsg6s",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1713769962463,
"version": 1,
"sender": "3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7",
"senderPublicKey": "2M25DqL2W4rGFLCFadgATboS8EPqyWAN3DjH12AH5Kdr",
"proofs": [
"AJqJWmwxqi7k99xZgsALHmsCJucV5UZqVwdNZuLHhtJLZXDQMpvAu5eXN747DXLthGZLGS5tCXga8J9b5k8851C"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkTgEAAAAAAAAAAAxleGNoYW5nZVJhdGUAAAAAAAAAAAUAAAAABnN0YWtlcgkBAAAAB0FkZHJlc3MAAAABAQAAAAAAAAABAAAAAWkBAAAAEWV4Y2hhbmdlV2F2ZXNVc2ROAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVuaXQJAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAABcgkAA/wAAAAEBQAAAAZzdGFrZXICAAAAC2NhbmNlbFN0YWtlCQAETAAAAAIJAABoAAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BQAAAAxleGNoYW5nZVJhdGUFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFyBQAAAAFyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQFAAAADGV4Y2hhbmdlUmF0ZQUAAAAEdXNkTgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAACxJx+i",
"chainId": 84,
"height": 3073700,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6yo8yhs3eqDa4vH5yV8MHFbBytWWcrxDY7pW4UAEHm9Y
Next: BVAe37HSxc11EUp8y57zxdunB5c1Z38mxspDaHPESgNs
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 exchangeWavesUsdN () = 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 | + | |
---|