tx · 3q3J7J37iArnHUg77tz4xC6XsUhV9PnPQWRNtLhfEZ9T

3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE:  -1.00400000 Waves

2019.07.08 13:39 [576530] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS

{ "type": 15, "id": "3q3J7J37iArnHUg77tz4xC6XsUhV9PnPQWRNtLhfEZ9T", "fee": 100400000, "feeAssetId": null, "timestamp": 1562582365957, "version": 1, "sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE", "senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES", "proofs": [ "5s4xRU5CP7Z7CQb7ne8nLVgpFWfSPxyJw55DrWbdGuy3p8Mhwk7i72LsBPDvbVZfSChWxpTgo1vmaGqUrCdHDe3y" ], "assetId": "6hT7FXhqbfavkJaoPVjZpQgZ7KDa1kTj3rda8V4r3R9q", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAgVKcv6IAUWZVN3kw1JnxMKPPRkmtt8Y+PQJB4fVcECCAKAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAASYWRkcmVzc0luV2hpdGVsaXN0CQAEGwAAAAIFAAAAA0tZQwkAAlgAAAABCAUAAAAHYWRkcmVzcwAAAAVieXRlcwMJAQAAAAlpc0RlZmluZWQAAAABBQAAABJhZGRyZXNzSW5XaGl0ZWxpc3QJAQAAAAdleHRyYWN0AAAAAQUAAAASYWRkcmVzc0luV2hpdGVsaXN0BwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24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DpH2thREupHVU Diff:
OldNewDifferences
1717 case e: ExchangeTransaction =>
1818 let amountAsset = e.sellOrder.assetPair.amountAsset
1919 let priceAsset = e.sellOrder.assetPair.priceAsset
20- if ((e.sellOrder.sender == e.buyOrder.sender))
20+ if (if ((e.sellOrder.sender == e.buyOrder.sender))
2121 then true
2222 else if ((amountAsset == PassAssetId))
2323 then checkWhitelist(e.sellOrder.sender)
24- else true
24+ else true)
25+ then if ((e.sellOrder.sender == e.buyOrder.sender))
26+ then true
27+ else if ((priceAsset == PassAssetId))
28+ then checkWhitelist(e.buyOrder.sender)
29+ else true
30+ else false
2531 case _ =>
2632 false
2733 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE')
44 let PassAssetId = base58'6hT7FXhqbfavkJaoPVjZpQgZ7KDa1kTj3rda8V4r3R9q'
55 func checkWhitelist (address) = {
66 let addressInWhitelist = getBoolean(KYC, toBase58String(address.bytes))
77 if (isDefined(addressInWhitelist))
88 then extract(addressInWhitelist)
99 else false
1010 }
1111
1212 match tx {
1313 case s: SetAssetScriptTransaction|ReissueTransaction =>
1414 true
1515 case t: MassTransferTransaction|TransferTransaction =>
1616 checkWhitelist(t.sender)
1717 case e: ExchangeTransaction =>
1818 let amountAsset = e.sellOrder.assetPair.amountAsset
1919 let priceAsset = e.sellOrder.assetPair.priceAsset
20- if ((e.sellOrder.sender == e.buyOrder.sender))
20+ if (if ((e.sellOrder.sender == e.buyOrder.sender))
2121 then true
2222 else if ((amountAsset == PassAssetId))
2323 then checkWhitelist(e.sellOrder.sender)
24- else true
24+ else true)
25+ then if ((e.sellOrder.sender == e.buyOrder.sender))
26+ then true
27+ else if ((priceAsset == PassAssetId))
28+ then checkWhitelist(e.buyOrder.sender)
29+ else true
30+ else false
2531 case _ =>
2632 false
2733 }

github/deemru/w8io/026f985 
20.70 ms