tx · HA4AQDTx27yxYWafdH7zfEK9gZM8ZUM7UkZk8PDSEWxP
3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM: -1.00000000 Waves
2019.03.23 17:56 [549132] smart asset 3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM > SELF 0.00000000 Token
{
"type": 15,
"id": "HA4AQDTx27yxYWafdH7zfEK9gZM8ZUM7UkZk8PDSEWxP",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553353001423,
"version": 1,
"sender": "3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM",
"senderPublicKey": "3u3aeyi8aVT6ouJPSgpXyNzPcKAfm4eggtkD1PRJKFpi",
"proofs": [
"5HSfLFNyqN6YYDnYWQx3TV6CbhMCc2rBLK3SYbhgZHyFRpB7Hkh1stDp5YquCZ7NMo8v8FXXoFZk1G4oqZmoDFSX"
],
"assetId": "5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU40mqx+iKFqCBRTN5WZYD5tUciBjTsOJ0BAAAAAZtYXN0ZXIJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNOQWRzUXdzRTY2eXFxS0hCdmlDNGJZcU5mYzcyUFRvMm9NBAAAAAdhc3NldElkAQAAACBC7BGgO/A+wbqMtKRPTS5WqqrfDvFXME8Dq9DLdj3oiQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARzZWxsCQAB9AAAAAMICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAIbWluUHJpY2UJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZpc3N1ZXICAAAACG1pblByaWNlBAAAAAVhbGVydAkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIFAAAABmlzc3VlcgIAAAAFYWxlcnQDBQAAAARzZWxsBAAAAAZwZXJtaXQJAAAAAAAAAggIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBQAAAAZtYXN0ZXIDCQEAAAABIQAAAAEFAAAABnBlcm1pdAMJAABmAAAAAggFAAAAAmV4AAAABXByaWNlBQAAAAhtaW5QcmljZQYJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAVhbGVydAIAAAAGc2VsbDogCQABpQAAAAEFAAAABHNlbGwCAAAAB3Blcm1pdDoJAAGlAAAAAQUAAAAGcGVybWl0BgYGwKnR8Q==",
"chainId": 84,
"height": 549132,
"spentComplexity": 0
}
View: original | compacted
Prev: ELNb86dg9F3JSgPHW3W4Rgejj5Vgan3285FnWYJ2ohok
Next: FtrxhdaJ3zV12nB6Zoicm9haACpYXPstTZQuYLhunRNG
Diff:
Old | New | | Differences |
---|
10 | 10 | | let alert = extract(getString(issuer, "alert")) |
---|
11 | 11 | | if (sell) |
---|
12 | 12 | | then { |
---|
13 | | - | let permit = (ex.sender == master) |
---|
| 13 | + | let permit = (ex.sellOrder.sender == master) |
---|
14 | 14 | | if (!(permit)) |
---|
15 | 15 | | then if ((ex.price > minPrice)) |
---|
16 | 16 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | 4 | | let master = addressFromString("3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM") |
---|
5 | 5 | | let assetId = base58'5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case ex: ExchangeTransaction => |
---|
8 | 8 | | let sell = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], ex.sellOrder.senderPublicKey) |
---|
9 | 9 | | let minPrice = extract(getInteger(issuer, "minPrice")) |
---|
10 | 10 | | let alert = extract(getString(issuer, "alert")) |
---|
11 | 11 | | if (sell) |
---|
12 | 12 | | then { |
---|
13 | | - | let permit = (ex.sender == master) |
---|
| 13 | + | let permit = (ex.sellOrder.sender == master) |
---|
14 | 14 | | if (!(permit)) |
---|
15 | 15 | | then if ((ex.price > minPrice)) |
---|
16 | 16 | | then true |
---|
17 | 17 | | else throw(((((alert + "sell: ") + toString(sell)) + "permit:") + toString(permit))) |
---|
18 | 18 | | else true |
---|
19 | 19 | | } |
---|
20 | 20 | | else true |
---|
21 | 21 | | case _ => |
---|
22 | 22 | | true |
---|
23 | 23 | | } |
---|