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