tx · 8Meps3iCGHiJDuR6VvknXuRaRA6Lqjgj77YKXe8rEScS
3Mu3rHXsZEzEFRmstTmo2ibxjvaHNd4hU6t: -0.01400000 Waves
2022.05.27 07:33 [2069605] smart account 3Mu3rHXsZEzEFRmstTmo2ibxjvaHNd4hU6t > SELF 0.00000000 Waves
{
"type": 13,
"id": "8Meps3iCGHiJDuR6VvknXuRaRA6Lqjgj77YKXe8rEScS",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1653625988746,
"version": 2,
"chainId": 84,
"sender": "3Mu3rHXsZEzEFRmstTmo2ibxjvaHNd4hU6t",
"senderPublicKey": "Cn7Ky2YAx4p6dx8e7Mcb9rTQ2Z5TD9MrRbLA8AXDsumJ",
"proofs": [
"YC1x95HAw4Ei9sVYpL4QNphWGfjEW96Gk9V5eZ9uy4CFcv8GNx4EcpNHJqTX6wWbEXHEisKDpop4LHJAYR159eh"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABQAAAAAFdG9rZW4BAAAAINtNgzVkRxuW758ML6DPfdV5nZLo4Zs1D8E/zHsCcCkLAAAAAAVscFRDSQEAAAAg3B70TzZBBKfh+mamWmC/uVmxUVSt129z+oO8ang2OaUAAAAACWlzU3RvcHBlZAcAAAAACWtleVN0YWtlZAIAAAAJU1RBS0VEX0xQAAAAAAtrZXlDb21wb3VuZAIAAAAIQ09NUE9VTkQAAAABAAAAAWkBAAAAB2RlZmF1bHQAAAAABAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAAmFtCAUAAAADcG10AAAABmFtb3VudAMJAABnAAAAAgAAAAAAAAAAAAUAAAACYW0JAAACAAAAAQIAAAAXTmVnYXRpdmUgb3IgemVybyBhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABXRva2VuCQAAAgAAAAECAAAADUludmFsaWQgdG9rZW4EAAAAAWMJAAP8AAAABAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVFlAJ5NrSynuvrGhDubcQLjPpI16DOu1DwIAAAAFc3Rha2UFAAAAA25pbAkABEwAAAACBQAAAANwbXQFAAAAA25pbAMJAAAAAAAAAgUAAAABYwUAAAABYwQAAAAHc2V0RGF0YQkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACWtleVN0YWtlZAUAAAACYW0JAARMAAAAAgUAAAAHc2V0RGF0YQUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Bn7zSg==",
"height": 2069605,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6Hd7vkKp58BefPyNroyyapyrMGDQsWpBaBWUxhBLFKRj
Next: 4yEFNrXitLRCPT7qGQUjxmcFdNua4vPiXREGixMd6vJD
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let token = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS' |
---|
5 | 5 | | |
---|
6 | | - | let lpTCI = base58'DKuHxDzSRjVW5MUhnHqPZDeztYcXvEzpAYNNLDWtb39c' |
---|
| 6 | + | let lpTCI = base58'FpG53PqcPPUmMwjHd2SQrpLPMXYHUBpdoM1ynBbMzsAk' |
---|
7 | 7 | | |
---|
8 | 8 | | let isStopped = false |
---|
9 | 9 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let token = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS' |
---|
5 | 5 | | |
---|
6 | | - | let lpTCI = base58'DKuHxDzSRjVW5MUhnHqPZDeztYcXvEzpAYNNLDWtb39c' |
---|
| 6 | + | let lpTCI = base58'FpG53PqcPPUmMwjHd2SQrpLPMXYHUBpdoM1ynBbMzsAk' |
---|
7 | 7 | | |
---|
8 | 8 | | let isStopped = false |
---|
9 | 9 | | |
---|
10 | 10 | | let keyStaked = "STAKED_LP" |
---|
11 | 11 | | |
---|
12 | 12 | | let keyCompound = "COMPOUND" |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | 15 | | func default () = { |
---|
16 | 16 | | let pmt = i.payments[0] |
---|
17 | 17 | | let am = pmt.amount |
---|
18 | 18 | | if ((0 >= am)) |
---|
19 | 19 | | then throw("Negative or zero amount") |
---|
20 | 20 | | else if ((pmt.assetId != token)) |
---|
21 | 21 | | then throw("Invalid token") |
---|
22 | 22 | | else { |
---|
23 | 23 | | let c = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt]) |
---|
24 | 24 | | if ((c == c)) |
---|
25 | 25 | | then { |
---|
26 | 26 | | let setData = IntegerEntry(keyStaked, am) |
---|
27 | 27 | | [setData] |
---|
28 | 28 | | } |
---|
29 | 29 | | else throw("Strict value is not equal to itself.") |
---|
30 | 30 | | } |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | @Verifier(tx) |
---|
35 | 35 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
36 | 36 | | |
---|