tx · 7uouXWNjPXskm2GAdmV9ykMndJT9yCrfjmCeRiVhGKwh
3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW: -0.01000000 Waves
2022.04.01 22:32 [1989947] smart account 3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW > SELF 0.00000000 Waves
{
"type": 13,
"id": "7uouXWNjPXskm2GAdmV9ykMndJT9yCrfjmCeRiVhGKwh",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1648841548260,
"version": 2,
"chainId": 84,
"sender": "3MtgeA4XXgXJ8JUcFnX7U4X5GFzisbnoZcW",
"senderPublicKey": "3JY9vAw1X3RjuU83Lkd7Yq6JhZPkbNeuXbuE2pyvEnB3",
"proofs": [
"4KEbZPtASp9g6Pj7B2pWewwvb6iqbPVw2mJdzZUsnpfSrPh6t9EwSeSUbmW3fy5a78yhnycjXTJmQHoQQjyQ5BRV"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQAAAAAEdXNkTgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAABAAAAAWkBAAAABXN0YWtlAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVzZE4JAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAAQY3VycmVudExpcXVpZGl0eQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAAQAAAAMbmV3TGlxdWlkaXR5CQAAZAAAAAIFAAAAEGN1cnJlbnRMaXF1aWRpdHkICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgUAAAAMbmV3TGlxdWlkaXR5BQAAAANuaWwFAAAADG5ld0xpcXVpZGl0eQAAAABXtF8K",
"height": 1989947,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: DbVP2cPsh6EWpsU2o9XbWjLxjWmKieewrLeoRFHWuzFx
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let usdN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func stake () = if ((i.payments[0].assetId != usdN)) |
---|
| 8 | + | then throw("unexpected asset") |
---|
| 9 | + | else { |
---|
| 10 | + | let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0) |
---|
| 11 | + | let newLiquidity = (currentLiquidity + i.payments[0].amount) |
---|
| 12 | + | $Tuple2([IntegerEntry(toString(i.originCaller), newLiquidity)], newLiquidity) |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
| 15 | + | |
---|