tx · FYMWDZXTWXDLoVJdB7o6f7vP2e8NnP2ix6y3Fs3ZsPsY
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves
2019.07.04 11:27 [570439] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{
"type": 15,
"id": "FYMWDZXTWXDLoVJdB7o6f7vP2e8NnP2ix6y3Fs3ZsPsY",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1562228856141,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"5FPt94cwr2VLJR79vyc4EtUimS5QnGjGkeh4j3g2ohk4mzR8Uz6CKtSnyNwQyMY9eA4jG1kdd22Nz9KRYZaJMwan"
],
"assetId": "7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29",
"script": "base64:AwQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIEWL9bYTPmjYp+f8WUAtz6DaJ6KrIAyb2bOoFYKH1nAPBAAAAANLWUMJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTWNCDJr/AdVJ/HdBovhu37oPuYKPc8PVMEAAAAC1Bhc3NBc3NldElkAQAAACBg/bKkSalvO39oSPndnvUn1DFYSTpsagMRseVLRWFZYgQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAAA2tleQkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwkBAAAAEUBleHRyTmF0aXZlKDEwNTEpAAAAAgUAAAADS1lDBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAC2Ftb3VudEFzc2V0CAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQDCQAAAAAAAAIFAAAAC2Ftb3VudEFzc2V0BQAAAAtQYXNzQXNzZXRJZAkBAAAAEUBleHRyTmF0aXZlKDEwNTEpAAAAAgUAAAADS1lDCQACWAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgAAAAVieXRlcwYHEuugVA==",
"chainId": 84,
"height": 570439,
"spentComplexity": 0
}
View: original | compacted
Prev: AYZqmAHo4WC3XUcXz6CwYwTKDUBdvC5wnfgm126F6Q92
Next: HeTR599L8udrhk5b8TnUnF39oU2LLJgkoPnh4sujoNht
Diff:
Old | New | | Differences |
---|
10 | 10 | | let key = toBase58String(tx.sender.bytes) |
---|
11 | 11 | | getBooleanValue(KYC, key) |
---|
12 | 12 | | case e: ExchangeTransaction => |
---|
13 | | - | true |
---|
| 13 | + | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
| 14 | + | if ((amountAsset == PassAssetId)) |
---|
| 15 | + | then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes)) |
---|
| 16 | + | else true |
---|
14 | 17 | | case _ => |
---|
15 | 18 | | false |
---|
16 | 19 | | } |
---|
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 | | match tx { |
---|
7 | 7 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
8 | 8 | | true |
---|
9 | 9 | | case t: MassTransferTransaction|TransferTransaction => |
---|
10 | 10 | | let key = toBase58String(tx.sender.bytes) |
---|
11 | 11 | | getBooleanValue(KYC, key) |
---|
12 | 12 | | case e: ExchangeTransaction => |
---|
13 | | - | true |
---|
| 13 | + | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
| 14 | + | if ((amountAsset == PassAssetId)) |
---|
| 15 | + | then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes)) |
---|
| 16 | + | else true |
---|
14 | 17 | | case _ => |
---|
15 | 18 | | false |
---|
16 | 19 | | } |
---|