tx · yo4Sr4CNvzfEbRSXpMJBNSD7CS37bbW4X2jquHWVJhC
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves
2019.07.04 11:51 [570460] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{
"type": 15,
"id": "yo4Sr4CNvzfEbRSXpMJBNSD7CS37bbW4X2jquHWVJhC",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1562230303364,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"44DwyCrh2ptfjcQWEwLnTvqLvmLrvKLBHbRg4LpuuJR4tkF71BzgMVimyj6TraEtsRyZAGKkjafCULxdutvJs14R"
],
"assetId": "7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29",
"script": "base64:AwQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIEWL9bYTPmjYp+f8WUAtz6DaJ6KrIAyb2bOoFYKH1nAPBAAAAANLWUMJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTWNCDJr/AdVJ/HdBovhu37oPuYKPc8PVMEAAAAC1Bhc3NBc3NldElkAQAAACBg/bKkSalvO39oSPndnvUn1DFYSTpsagMRseVLRWFZYgoBAAAABWNoZWNrAAAAAQAAAAdhZGRyZXNzBAAAAA5zZW5kZXJBY2NlcHRlZAkABBsAAAACBQAAAANLWUMJAAJYAAAAAQgFAAAAB2FkZHJlc3MAAAAFYnl0ZXMDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAOc2VuZGVyQWNjZXB0ZWQJAQAAAAdleHRyYWN0AAAAAQUAAAAOc2VuZGVyQWNjZXB0ZWQHBAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAA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BQAAAAtQYXNzQXNzZXRJZAkBAAAABWNoZWNrAAAAAQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAZzZW5kZXIGBwMJAAAAAAAAAgUAAAAKcHJpY2VBc3NldAUAAAALUGFzc0Fzc2V0SWQJAQAAAAVjaGVjawAAAAEICAUAAAABZQAAAAhidXlPcmRlcgAAAAZzZW5kZXIGBwdy98JH",
"chainId": 84,
"height": 570460,
"spentComplexity": 0
}
View: original | compacted
Prev: 6DMN3YWjw2nEPob1TqKyawh3x6dBR98oarHVJNaJEBAp
Next: 7HndnUo4r4edQDa6scege6mrUouGD7dkEh97QXF8w9uK
Diff:
Old | New | | Differences |
---|
17 | 17 | | let key = toBase58String(tx.sender.bytes) |
---|
18 | 18 | | getBooleanValue(KYC, key) |
---|
19 | 19 | | case e: ExchangeTransaction => |
---|
| 20 | + | let sellMatcherFeeAsset = e.sellOrder.matcherFeeAssetId |
---|
| 21 | + | let buyMatcherFeeAsset = e.buyOrder.matcherFeeAssetId |
---|
20 | 22 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
21 | | - | if ((amountAsset == PassAssetId)) |
---|
| 23 | + | let priceAsset = e.sellOrder.assetPair.priceAsset |
---|
| 24 | + | if (if (if (if ((sellMatcherFeeAsset == PassAssetId)) |
---|
22 | 25 | | then check(e.sellOrder.sender) |
---|
23 | | - | else true |
---|
| 26 | + | else true) |
---|
| 27 | + | then if ((buyMatcherFeeAsset == PassAssetId)) |
---|
| 28 | + | then check(e.buyOrder.sender) |
---|
| 29 | + | else true |
---|
| 30 | + | else false) |
---|
| 31 | + | then if ((amountAsset == PassAssetId)) |
---|
| 32 | + | then check(e.sellOrder.sender) |
---|
| 33 | + | else true |
---|
| 34 | + | else false) |
---|
| 35 | + | then if ((priceAsset == PassAssetId)) |
---|
| 36 | + | then check(e.buyOrder.sender) |
---|
| 37 | + | else true |
---|
| 38 | + | else false |
---|
24 | 39 | | case _ => |
---|
25 | 40 | | false |
---|
26 | 41 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
4 | 4 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
5 | 5 | | let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29' |
---|
6 | 6 | | func check (address) = { |
---|
7 | 7 | | let senderAccepted = getBoolean(KYC, toBase58String(address.bytes)) |
---|
8 | 8 | | if (isDefined(senderAccepted)) |
---|
9 | 9 | | then extract(senderAccepted) |
---|
10 | 10 | | else false |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | match tx { |
---|
14 | 14 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
15 | 15 | | true |
---|
16 | 16 | | case t: MassTransferTransaction|TransferTransaction => |
---|
17 | 17 | | let key = toBase58String(tx.sender.bytes) |
---|
18 | 18 | | getBooleanValue(KYC, key) |
---|
19 | 19 | | case e: ExchangeTransaction => |
---|
| 20 | + | let sellMatcherFeeAsset = e.sellOrder.matcherFeeAssetId |
---|
| 21 | + | let buyMatcherFeeAsset = e.buyOrder.matcherFeeAssetId |
---|
20 | 22 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
21 | | - | if ((amountAsset == PassAssetId)) |
---|
| 23 | + | let priceAsset = e.sellOrder.assetPair.priceAsset |
---|
| 24 | + | if (if (if (if ((sellMatcherFeeAsset == PassAssetId)) |
---|
22 | 25 | | then check(e.sellOrder.sender) |
---|
23 | | - | else true |
---|
| 26 | + | else true) |
---|
| 27 | + | then if ((buyMatcherFeeAsset == PassAssetId)) |
---|
| 28 | + | then check(e.buyOrder.sender) |
---|
| 29 | + | else true |
---|
| 30 | + | else false) |
---|
| 31 | + | then if ((amountAsset == PassAssetId)) |
---|
| 32 | + | then check(e.sellOrder.sender) |
---|
| 33 | + | else true |
---|
| 34 | + | else false) |
---|
| 35 | + | then if ((priceAsset == PassAssetId)) |
---|
| 36 | + | then check(e.buyOrder.sender) |
---|
| 37 | + | else true |
---|
| 38 | + | else false |
---|
24 | 39 | | case _ => |
---|
25 | 40 | | false |
---|
26 | 41 | | } |
---|