tx · HdFMQU7KNxKXoaXTENypBd3WPsUDDjFadAPSAeMbwB7Z
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves
2019.07.08 11:14 [576388] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{
"type": 15,
"id": "HdFMQU7KNxKXoaXTENypBd3WPsUDDjFadAPSAeMbwB7Z",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1562573683867,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"m3Sxobk3UAGhni4LmatzdmLBgM3ERtAnLvZN3jq7Jf5gWpMaXdXiTKhQb35e6CfLjoior5Qr8V65aVRbUdSfuLg"
],
"assetId": "HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn",
"script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAg/DlHc9qScGsE5r04aBUFSsMw038qXFryfVcvdFdOUR8KAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAAOc2VuZGVyQWNjZXB0ZWQJAAQbAAAAAgUAAAADS1lDCQACWAAAAAEIBQAAAAdhZGRyZXNzAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADnNlbmRlckFjY2VwdGVkCQEAAAAHZXh0cmFjdAAAAAEFAAAADnNlbmRlckFjY2VwdGVkBwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAC2Ftb3VudEFzc2V0CAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQEAAAACnByaWNlQXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AwMJAAAAAAAAAgUAAAALYW1vdW50QXNzZXQFAAAAC1Bhc3NBc3NldElkCQEAAAAOY2hlY2tXaGl0ZWxpc3QAAAABCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgYGBwe8VvRO",
"chainId": 84,
"height": 576388,
"spentComplexity": 0
}
View: original | compacted
Prev: 5yvCGTygF1LVFeXGgCg2WAN7G8m3hoWDoYpDHGBDzkre
Next: 3N1bMU75CvDBT6pVNMV6KoW5Ucka1vNnrCcHG9DLW4QN
Diff:
Old | New | | Differences |
---|
17 | 17 | | case e: ExchangeTransaction => |
---|
18 | 18 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
19 | 19 | | let priceAsset = e.sellOrder.assetPair.priceAsset |
---|
20 | | - | true |
---|
| 20 | + | if (if ((amountAsset == PassAssetId)) |
---|
| 21 | + | then checkWhitelist(e.sellOrder.sender) |
---|
| 22 | + | else true) |
---|
| 23 | + | then true |
---|
| 24 | + | else false |
---|
21 | 25 | | case _ => |
---|
22 | 26 | | false |
---|
23 | 27 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
4 | 4 | | let PassAssetId = base58'HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn' |
---|
5 | 5 | | func checkWhitelist (address) = { |
---|
6 | 6 | | let senderAccepted = getBoolean(KYC, toBase58String(address.bytes)) |
---|
7 | 7 | | if (isDefined(senderAccepted)) |
---|
8 | 8 | | then extract(senderAccepted) |
---|
9 | 9 | | else false |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
12 | 12 | | match tx { |
---|
13 | 13 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
14 | 14 | | true |
---|
15 | 15 | | case t: MassTransferTransaction|TransferTransaction => |
---|
16 | 16 | | checkWhitelist(tx.sender) |
---|
17 | 17 | | case e: ExchangeTransaction => |
---|
18 | 18 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
19 | 19 | | let priceAsset = e.sellOrder.assetPair.priceAsset |
---|
20 | | - | true |
---|
| 20 | + | if (if ((amountAsset == PassAssetId)) |
---|
| 21 | + | then checkWhitelist(e.sellOrder.sender) |
---|
| 22 | + | else true) |
---|
| 23 | + | then true |
---|
| 24 | + | else false |
---|
21 | 25 | | case _ => |
---|
22 | 26 | | false |
---|
23 | 27 | | } |
---|