tx · Ac7CPt1w8vNhRu7zpN4TetfHoLhybbvUcGvf7uT1kxGB
3Mz7a57rADDtRecm7MDRaqUgHMCcGJ2acKf: -0.05000000 Waves
2022.12.20 10:23 [2368305] smart account 3Mz7a57rADDtRecm7MDRaqUgHMCcGJ2acKf > SELF 0.00000000 Waves
{
"type": 13,
"id": "Ac7CPt1w8vNhRu7zpN4TetfHoLhybbvUcGvf7uT1kxGB",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1671521103434,
"version": 2,
"chainId": 84,
"sender": "3Mz7a57rADDtRecm7MDRaqUgHMCcGJ2acKf",
"senderPublicKey": "6UfqzdFKp882zVyUTkmsrHe8n7qWMPhoVhBHkh18kmWH",
"proofs": [
"2mC8sLYcnjNbMZtgkqeHNSgWCUbRAEQEMKf57VjGunY4kab3EGCFa5M2D1QUWNGQERZfU358gqEi3DwiFkRu4fUW"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAHZGVmYXVsdAAAAAAEAAAAC2RBcHBBZGRyZXNzAgAAACMzTXRNWlBWb2hSeXhja1JrMTFSWk00Z2V1bjZpdFNobWNYeQQAAAAFdHhGZWUIBQAAAAFpAAAAA2ZlZQQAAAALdXNkbkFzc2V0SWQBAAAAIPd26vf3g8pl224T7gI7z1gplanB0Y3yS9ps2B1igMjeBAAAAAZhbW91bnQAAAAAAAAAAAoDCQAAAAAAAAIFAAAABXR4RmVlAAAAAAAADbugBAAAAAF5CQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAC2RBcHBBZGRyZXNzAgAAABBpbmNyZWFzZVBvc2l0aW9uCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAJiWgAkABEwAAAACAAAAAAAANPXbCQAETAAAAAICAAAAAAUAAAADbmlsCQAETAAAAAIJAQAAAA9BdHRhY2hlZFBheW1lbnQAAAACBQAAAAt1c2RuQXNzZXRJZAkAAGgAAAACBQAAAAZhbW91bnQAAAAAAAAPQkAFAAAAA25pbAMJAAAAAAAAAgUAAAABeQUAAAABeQUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgMJAAAAAAAAAgUAAAAFdHhGZWUAAAAAAAANu6EEAAAAAXkJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAALZEFwcEFkZHJlc3MCAAAAEGluY3JlYXNlUG9zaXRpb24JAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAmJaACQAETAAAAAIAAAAAAAA09dsJAARMAAAAAgIAAAAABQAAAANuaWwJAARMAAAAAgkBAAAAD0F0dGFjaGVkUGF5bWVudAAAAAIFAAAAC3VzZG5Bc3NldElkCQAAaAAAAAIFAAAABmFtb3VudAAAAAAAAA9CQAUAAAADbmlsAwkAAAAAAAACBQAAAAF5BQAAAAF5BQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAABmVycm9yIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5uWlwew==",
"height": 2368305,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AHcRpA8N7iqAoL7q5fJqeREQheKUAa5pyb71DjtfFhMJ
Next: Ahr4DgX3dHR9zGwbYzBjfcSLGE2TWYeHZw1ZoPKbKRsM
Diff:
Old | New | | Differences |
---|
8 | 8 | | let dAppAddress = "3MtMZPVohRyxckRk11RZM4geun6itShmcXy" |
---|
9 | 9 | | let txFee = i.fee |
---|
10 | 10 | | let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' |
---|
11 | | - | let amount = 100 |
---|
| 11 | + | let amount = 10 |
---|
12 | 12 | | if ((txFee == 900000)) |
---|
13 | 13 | | then { |
---|
14 | | - | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [1, 5000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
| 14 | + | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [1, 10000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
15 | 15 | | if ((y == y)) |
---|
16 | 16 | | then nil |
---|
17 | 17 | | else throw("Strict value is not equal to itself.") |
---|
18 | 18 | | } |
---|
19 | 19 | | else if ((txFee == 900001)) |
---|
20 | 20 | | then { |
---|
21 | | - | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [2, 5000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
| 21 | + | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [2, 10000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
22 | 22 | | if ((y == y)) |
---|
23 | 23 | | then nil |
---|
24 | 24 | | else throw("Strict value is not equal to itself.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func default () = { |
---|
8 | 8 | | let dAppAddress = "3MtMZPVohRyxckRk11RZM4geun6itShmcXy" |
---|
9 | 9 | | let txFee = i.fee |
---|
10 | 10 | | let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' |
---|
11 | | - | let amount = 100 |
---|
| 11 | + | let amount = 10 |
---|
12 | 12 | | if ((txFee == 900000)) |
---|
13 | 13 | | then { |
---|
14 | | - | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [1, 5000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
| 14 | + | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [1, 10000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
15 | 15 | | if ((y == y)) |
---|
16 | 16 | | then nil |
---|
17 | 17 | | else throw("Strict value is not equal to itself.") |
---|
18 | 18 | | } |
---|
19 | 19 | | else if ((txFee == 900001)) |
---|
20 | 20 | | then { |
---|
21 | | - | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [2, 5000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
| 21 | + | let y = invoke(addressFromStringValue(dAppAddress), "increasePosition", [2, 10000000, 3470811, ""], [AttachedPayment(usdnAssetId, (amount * 1000000))]) |
---|
22 | 22 | | if ((y == y)) |
---|
23 | 23 | | then nil |
---|
24 | 24 | | else throw("Strict value is not equal to itself.") |
---|
25 | 25 | | } |
---|
26 | 26 | | else throw("error!") |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | @Verifier(tx) |
---|
31 | 31 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
32 | 32 | | |
---|