tx · 85ux4E38a7VLiVZbznwzZ4dKfcsZxSdGJvEknFkdHyim
3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM: -1.00000000 Waves
2019.03.25 03:07 [551123] smart asset 3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM > SELF 0.00000000 Token Trade
{
"type": 15,
"id": "85ux4E38a7VLiVZbznwzZ4dKfcsZxSdGJvEknFkdHyim",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553472511920,
"version": 1,
"sender": "3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM",
"senderPublicKey": "3u3aeyi8aVT6ouJPSgpXyNzPcKAfm4eggtkD1PRJKFpi",
"proofs": [
"4sDxsGt4uFudkaiGRiWDUN8noeRZ1aKrdF6p952nm6UrM5t11RVJdQzE3KMBT7cVu2VqHJ9n693rNxCSGGyZHm5s"
],
"assetId": "GMzzn9Vm5YBba1s6pqBmUM7Vpt63vnUpnK4ZEUh2zmpV",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU40mqx+iKFqCBRTN5WZYD5tUciBjTsOJ0BAAAAAdhc3NldElkAQAAACDkQH8e64ZjMSJsA3wOy/mEyFrGPsQhPcEOwaMpyfJtKgQAAAAHV0FWRVNJZAEAAAAEE6vZMwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAADW1pblByaWNlV2F2ZXMJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZpc3N1ZXICAAAADW1pblByaWNlV2F2ZXMEAAAADW1heFByaWNlV2F2ZXMJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZpc3N1ZXICAAAADW1heFByaWNlV2F2ZXMEAAAABWFsZXJ0CQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAAGaXNzdWVyAgAAAAVhbGVydAMDBQAAAARzZWxsCQAAAAAAAAIICAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAHV0FWRVNJZAcEAAAABnBlcm1pdAkAAAAAAAACCAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAABmlzc3VlcgMJAQAAAAEhAAAAAQUAAAAGcGVybWl0AwMJAABnAAAAAggFAAAAAmV4AAAABXByaWNlBQAAAA1taW5QcmljZVdhdmVzCQAAZwAAAAIFAAAADW1heFByaWNlV2F2ZXMIBQAAAAJleAAAAAVwcmljZQcGCQAAAgAAAAEFAAAABWFsZXJ0BgYGoV7bug==",
"chainId": 84,
"height": 551123,
"spentComplexity": 0
}
View: original | compacted
Prev: DyrKFXeoeqMPeGMZsFzNAvDLfMt9UoJ67GL73cVk7QXN
Next: GRixh9HPhxheiRvippFQ1geonrXG9vRc5DRepMDMMogM
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | | - | let assetId = base58'5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p' |
---|
| 4 | + | let assetId = base58'GMzzn9Vm5YBba1s6pqBmUM7Vpt63vnUpnK4ZEUh2zmpV' |
---|
5 | 5 | | let WAVESId = base58'WAVES' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case ex: ExchangeTransaction => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | | - | let assetId = base58'5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p' |
---|
| 4 | + | let assetId = base58'GMzzn9Vm5YBba1s6pqBmUM7Vpt63vnUpnK4ZEUh2zmpV' |
---|
5 | 5 | | let WAVESId = base58'WAVES' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case ex: ExchangeTransaction => |
---|
8 | 8 | | let pair = AssetPair(assetId, unit) |
---|
9 | 9 | | let sell = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], ex.sellOrder.senderPublicKey) |
---|
10 | 10 | | let minPriceWaves = extract(getInteger(issuer, "minPriceWaves")) |
---|
11 | 11 | | let maxPriceWaves = extract(getInteger(issuer, "maxPriceWaves")) |
---|
12 | 12 | | let alert = extract(getString(issuer, "alert")) |
---|
13 | 13 | | if (if (sell) |
---|
14 | 14 | | then (ex.sellOrder.assetPair.priceAsset == WAVESId) |
---|
15 | 15 | | else false) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let permit = (ex.sellOrder.sender == issuer) |
---|
18 | 18 | | if (!(permit)) |
---|
19 | 19 | | then if (if ((ex.price >= minPriceWaves)) |
---|
20 | 20 | | then (maxPriceWaves >= ex.price) |
---|
21 | 21 | | else false) |
---|
22 | 22 | | then true |
---|
23 | 23 | | else throw(alert) |
---|
24 | 24 | | else true |
---|
25 | 25 | | } |
---|
26 | 26 | | else true |
---|
27 | 27 | | case _ => |
---|
28 | 28 | | true |
---|
29 | 29 | | } |
---|