tx · 61bMNybR9NQKsbBL7qVotQnAuxjwygLS8o86ADjeTz2e

3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE:  -1.00400000 Waves

2019.07.08 11:09 [576383] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS

{ "type": 15, "id": "61bMNybR9NQKsbBL7qVotQnAuxjwygLS8o86ADjeTz2e", "fee": 100400000, "feeAssetId": null, "timestamp": 1562573410365, "version": 1, "sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE", "senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES", "proofs": [ "2y4NLp1mJdodMW52p97f4d5KHVJuQoqAgkDRwxru2AktxnvVJQissNay28UFfH4AM98cxRPvX4NBL5wkefG4CHP7" ], "assetId": "HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAg/DlHc9qScGsE5r04aBUFSsMw038qXFryfVcvdFdOUR8KAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAAOc2VuZGVyQWNjZXB0ZWQJAAQbAAAAAgUAAAADS1lDCQACWAAAAAEIBQAAAAdhZGRyZXNzAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADnNlbmRlckFjY2VwdGVkCQEAAAAHZXh0cmFjdAAAAAEFAAAADnNlbmRlckFjY2VwdGVkBwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAC2Ftb3VudEFzc2V0CAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQEAAAACnByaWNlQXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AwkAAAAAAAACBQAAAAthbW91bnRBc3NldAUAAAALUGFzc0Fzc2V0SWQJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBgeztwz9", "chainId": 84, "height": 576383, "spentComplexity": 0 } View: original | compacted Prev: HLcBobGnkdkbPuf2eY7SGX6W5VhWyUXUdY97UTVYZPaU Next: 5yvCGTygF1LVFeXGgCg2WAN7G8m3hoWDoYpDHGBDzkre Diff:
OldNewDifferences
1717 case e: ExchangeTransaction =>
1818 let amountAsset = e.sellOrder.assetPair.amountAsset
1919 let priceAsset = e.sellOrder.assetPair.priceAsset
20- if (if ((amountAsset == PassAssetId))
20+ if ((amountAsset == PassAssetId))
2121 then checkWhitelist(e.sellOrder.sender)
22- else true)
23- then if ((priceAsset == PassAssetId))
24- then checkWhitelist(e.buyOrder.sender)
25- else true
26- else false
22+ else true
2723 case _ =>
2824 false
2925 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE')
44 let PassAssetId = base58'HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn'
55 func checkWhitelist (address) = {
66 let senderAccepted = getBoolean(KYC, toBase58String(address.bytes))
77 if (isDefined(senderAccepted))
88 then extract(senderAccepted)
99 else false
1010 }
1111
1212 match tx {
1313 case s: SetAssetScriptTransaction|ReissueTransaction =>
1414 true
1515 case t: MassTransferTransaction|TransferTransaction =>
1616 checkWhitelist(tx.sender)
1717 case e: ExchangeTransaction =>
1818 let amountAsset = e.sellOrder.assetPair.amountAsset
1919 let priceAsset = e.sellOrder.assetPair.priceAsset
20- if (if ((amountAsset == PassAssetId))
20+ if ((amountAsset == PassAssetId))
2121 then checkWhitelist(e.sellOrder.sender)
22- else true)
23- then if ((priceAsset == PassAssetId))
24- then checkWhitelist(e.buyOrder.sender)
25- else true
26- else false
22+ else true
2723 case _ =>
2824 false
2925 }

github/deemru/w8io/026f985 
36.66 ms