tx · CphPHuwPgkw3Ymctw1bVX3nKg6T2eyE7yK3AMULz3ub3
3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM: -1.00000000 Waves
2019.03.23 17:37 [549114] smart asset 3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM > SELF 0.00000000 Token
{
"type": 15,
"id": "CphPHuwPgkw3Ymctw1bVX3nKg6T2eyE7yK3AMULz3ub3",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553351851092,
"version": 1,
"sender": "3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM",
"senderPublicKey": "3u3aeyi8aVT6ouJPSgpXyNzPcKAfm4eggtkD1PRJKFpi",
"proofs": [
"CVLA531XSeet8YGrx2NFEZaDKzpfSQNZiAL8TRch7P4CFDQ1rwp48q5UnEK3zLkr56Up6MoambkETYvjX7bUKgB"
],
"assetId": "5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU40mqx+iKFqCBRTN5WZYD5tUciBjTsOJ0BAAAAA5hZG1pblB1YmxpY0tleQEAAAAaAVTjSarH6IoWoIFFM3lZlgPm1RyIGNOw4nQEAAAAB2Fzc2V0SWQBAAAAIELsEaA78D7Buoy0pE9NLlaqqt8O8VcwTwOr0Mt2PeiJBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACZXgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAAhtaW5QcmljZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABmlzc3VlcgIAAAAIbWluUHJpY2UEAAAABWFsZXJ0CQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAAGaXNzdWVyAgAAAAVhbGVydAMFAAAABHNlbGwEAAAABnBlcm1pdAkAAfQAAAADCAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5hZG1pblB1YmxpY0tleQMJAQAAAAEhAAAAAQUAAAAGcGVybWl0AwkAAGYAAAACCAUAAAACZXgAAAAFcHJpY2UFAAAACG1pblByaWNlBgkAAAIAAAABBQAAAAVhbGVydAYGBjl5IWY=",
"chainId": 84,
"height": 549114,
"spentComplexity": 0
}
View: original | compacted
Prev: Fh53MsNitqj7CNjDwXEiQ4nGvBQ4oBQewBqQUKAsADB8
Next: 81bjCx6G2XuABqHwRfQg1d2jQLuwBrddXvpJSXLDR4XE
Diff:
Old | New | | Differences |
---|
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 | | - | let pair = AssetPair(assetId, unit) |
---|
10 | 9 | | let minPrice = extract(getInteger(issuer, "minPrice")) |
---|
11 | 10 | | let alert = extract(getString(issuer, "alert")) |
---|
12 | 11 | | if (sell) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | 4 | | let adminPublicKey = base58'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 | | - | let pair = AssetPair(assetId, unit) |
---|
10 | 9 | | let minPrice = extract(getInteger(issuer, "minPrice")) |
---|
11 | 10 | | let alert = extract(getString(issuer, "alert")) |
---|
12 | 11 | | if (sell) |
---|
13 | 12 | | then { |
---|
14 | 13 | | let permit = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], adminPublicKey) |
---|
15 | 14 | | if (!(permit)) |
---|
16 | 15 | | then if ((ex.price > minPrice)) |
---|
17 | 16 | | then true |
---|
18 | 17 | | else throw(alert) |
---|
19 | 18 | | else true |
---|
20 | 19 | | } |
---|
21 | 20 | | else true |
---|
22 | 21 | | case _ => |
---|
23 | 22 | | true |
---|
24 | 23 | | } |
---|