tx · CAEtwt5ZoDXBsLrTSYrFnyqyX77wBNU53GcrjersMhsb 3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w: -1.00400000 Waves 2019.02.11 23:08 [490949] smart asset 3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w > SELF 0.00000000 mytest1
{ "type": 15, "id": "CAEtwt5ZoDXBsLrTSYrFnyqyX77wBNU53GcrjersMhsb", "fee": 100400000, "feeAssetId": null, "timestamp": 1549915686985, "version": 1, "sender": "3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w", "senderPublicKey": "5NKM8mtxgaEeB89FzmujLBdJrJXkYBkftRoTffUS53f", "proofs": [ "5SNNyvSHY5n9LBBJntjkj2rVCt2rCEUGFPJxyTvwh1efcprsE7UmZQfis4QRUShJFdFteYxuYPkxHJ6mZYZnTvZx", "2vSahiZ661DLAJzsEG7zJQ6UJYwoukyGW1kx4JPyWCAQxoKyGS31Vao57bp66amCy8i39e8DqttWmg6bD8EyZ3JA", "27RSGx4pJino9tteuib6FFn5BKurN1GAs9gAezreaH8vhmkjCWgFV7cwGBRhqZQrKAEDEs7VQXYzstBdkxhgGApR", "4ESWEtM8BaAABjFnE7R884kGj9TtBiUfTahgfZva5SvNjqG8pdoXHNtryJ4BUhTKVryRiN5P3w5ek547Dbmh5aw7" ], "assetId": "FivmKRkvFdVhSHBtxQ1UFj4EmbAd87pk2hKenwnbdwsK", "script": "base64:AQQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUatQCCuE3RLHy+k6O3owtbPTUFUwOIaG2BAAAAAZzZW5kZXIJAAJYAAAAAQgJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkAAAAFYnl0ZXMEAAAACGlzRnJvemVuCQEAAAAHZXh0cmFjdAAAAAEJAAQbAAAAAgUAAAAGaXNzdWVyAgAAAAtUb2tlbkZyb3plbgQAAAANaXNPbkJsYW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QAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABcgUAAAAHJG1hdGNoMAcGlJmQOg==", "chainId": 84, "height": 490949, "spentComplexity": 0 } View: original | compacted Prev: JA5saJFBVNuAGoJHRad8fm7AAGGVwiPTJCDbJs6axHct Next: 8hBSKjpfftz9xoiDoH8uLQyKdQ8KQvDSsojsiZ5KsFRk Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000))) | |
18 | 18 | throw(WAVerrStr) | |
19 | 19 | } | |
20 | - | else if ((e.sellOrder.assetPair.priceAsset == base58' | |
20 | + | else if ((e.sellOrder.assetPair.priceAsset == base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn')) | |
21 | 21 | then if ((e.sellOrder.price >= MinBtcPrice)) | |
22 | 22 | then true | |
23 | 23 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let issuer = Address(base58'3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w') | |
4 | 4 | let sender = toBase58String(addressFromPublicKey(tx.senderPublicKey).bytes) | |
5 | 5 | let isFrozen = extract(getBoolean(issuer, "TokenFrozen")) | |
6 | 6 | let isOnBlacklist = isDefined(getBoolean(issuer, sender)) | |
7 | 7 | let MinWavesPrice = extract(getInteger(issuer, "MinWavesPrice")) | |
8 | 8 | let MinBtcPrice = extract(getInteger(issuer, "MinBtcPrice")) | |
9 | 9 | let MinEthPrice = extract(getInteger(issuer, "MinEthPrice")) | |
10 | 10 | if ((issuer == tx.sender)) | |
11 | 11 | then match tx { | |
12 | 12 | case e: ExchangeTransaction => | |
13 | 13 | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) | |
14 | 14 | then if ((e.sellOrder.price >= MinWavesPrice)) | |
15 | 15 | then true | |
16 | 16 | else { | |
17 | 17 | let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000))) | |
18 | 18 | throw(WAVerrStr) | |
19 | 19 | } | |
20 | - | else if ((e.sellOrder.assetPair.priceAsset == base58' | |
20 | + | else if ((e.sellOrder.assetPair.priceAsset == base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn')) | |
21 | 21 | then if ((e.sellOrder.price >= MinBtcPrice)) | |
22 | 22 | then true | |
23 | 23 | else { | |
24 | 24 | let BTCerrStr = ((("Minimal BTC price = " + toString((MinBtcPrice / 100000000))) + ".") + toString((MinBtcPrice % 100000000))) | |
25 | 25 | throw(BTCerrStr) | |
26 | 26 | } | |
27 | 27 | else if ((e.sellOrder.assetPair.priceAsset == base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu')) | |
28 | 28 | then if ((e.sellOrder.price >= MinEthPrice)) | |
29 | 29 | then true | |
30 | 30 | else { | |
31 | 31 | let ETHerrStr = ((("Minimal ETH price = " + toString((MinEthPrice / 100000000))) + ".") + toString((MinEthPrice % 100000000))) | |
32 | 32 | throw(ETHerrStr) | |
33 | 33 | } | |
34 | 34 | else throw("Only WAVES, BTC and ETH pairs allowed") | |
35 | 35 | case _ => | |
36 | 36 | true | |
37 | 37 | } | |
38 | 38 | else if (isFrozen) | |
39 | 39 | then match tx { | |
40 | 40 | case _ => | |
41 | 41 | false | |
42 | 42 | } | |
43 | 43 | else if (isOnBlacklist) | |
44 | 44 | then { | |
45 | 45 | let isBlocked = extract(getBoolean(issuer, sender)) | |
46 | 46 | if (isBlocked) | |
47 | 47 | then match tx { | |
48 | 48 | case _ => | |
49 | 49 | false | |
50 | 50 | } | |
51 | 51 | else match tx { | |
52 | 52 | case e: ExchangeTransaction => | |
53 | 53 | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) | |
54 | 54 | then if ((e.sellOrder.price >= MinWavesPrice)) | |
55 | 55 | then true | |
56 | 56 | else { | |
57 | 57 | let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000))) | |
58 | 58 | throw(WAVerrStr) | |
59 | 59 | } | |
60 | 60 | else if ((e.sellOrder.assetPair.priceAsset == base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS')) | |
61 | 61 | then if ((e.sellOrder.price >= MinBtcPrice)) | |
62 | 62 | then true | |
63 | 63 | else { | |
64 | 64 | let BTCerrStr = ((("Minimal BTC price = " + toString((MinBtcPrice / 100000000))) + ".") + toString((MinBtcPrice % 100000000))) | |
65 | 65 | throw(BTCerrStr) | |
66 | 66 | } | |
67 | 67 | else if ((e.sellOrder.assetPair.priceAsset == base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu')) | |
68 | 68 | then if ((e.sellOrder.price >= MinEthPrice)) | |
69 | 69 | then true | |
70 | 70 | else { | |
71 | 71 | let ETHerrStr = ((("Minimal ETH price = " + toString((MinEthPrice / 100000000))) + ".") + toString((MinEthPrice % 100000000))) | |
72 | 72 | throw(ETHerrStr) | |
73 | 73 | } | |
74 | 74 | else throw("Only WAVES, BTC and ETH pairs allowed") | |
75 | 75 | case b: BurnTransaction => | |
76 | 76 | false | |
77 | 77 | case s: SetAssetScriptTransaction => | |
78 | 78 | false | |
79 | 79 | case r: ReissueTransaction => | |
80 | 80 | false | |
81 | 81 | case _ => | |
82 | 82 | true | |
83 | 83 | } | |
84 | 84 | } | |
85 | 85 | else match tx { | |
86 | 86 | case e: ExchangeTransaction => | |
87 | 87 | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) | |
88 | 88 | then if ((e.sellOrder.price >= MinWavesPrice)) | |
89 | 89 | then true | |
90 | 90 | else { | |
91 | 91 | let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000))) | |
92 | 92 | throw(WAVerrStr) | |
93 | 93 | } | |
94 | 94 | else if ((e.sellOrder.assetPair.priceAsset == base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS')) | |
95 | 95 | then if ((e.sellOrder.price >= MinBtcPrice)) | |
96 | 96 | then true | |
97 | 97 | else { | |
98 | 98 | let BTCerrStr = ((("Minimal BTC price = " + toString((MinBtcPrice / 100000000))) + ".") + toString((MinBtcPrice % 100000000))) | |
99 | 99 | throw(BTCerrStr) | |
100 | 100 | } | |
101 | 101 | else if ((e.sellOrder.assetPair.priceAsset == base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu')) | |
102 | 102 | then if ((e.sellOrder.price >= MinEthPrice)) | |
103 | 103 | then true | |
104 | 104 | else { | |
105 | 105 | let ETHerrStr = ((("Minimal ETH price = " + toString((MinEthPrice / 100000000))) + ".") + toString((MinEthPrice % 100000000))) | |
106 | 106 | throw(ETHerrStr) | |
107 | 107 | } | |
108 | 108 | else throw("Only WAVES, BTC and ETH pairs allowed") | |
109 | 109 | case b: BurnTransaction => | |
110 | 110 | false | |
111 | 111 | case s: SetAssetScriptTransaction => | |
112 | 112 | false | |
113 | 113 | case r: ReissueTransaction => | |
114 | 114 | false | |
115 | 115 | case _ => | |
116 | 116 | true | |
117 | 117 | } |
github/deemru/w8io/026f985 42.58 ms ◑