tx · 5SexWB5iMJa99VKwPcqntF1bFaJadWsJm5Hk1ZAfVyDu 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves 2019.03.14 16:45 [535859] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 oooo
{ "type": 15, "id": "5SexWB5iMJa99VKwPcqntF1bFaJadWsJm5Hk1ZAfVyDu", "fee": 100000000, "feeAssetId": null, "timestamp": 1552571251235, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "2kQ318Nyw8i8S4mdkvQovjHFcbRhpBMLPzSmhhsd5jSU6jBypeVPaVPLc4jMMwMQVuFbNNUanByUzk8ojbzumowG" ], "assetId": "6QXK7NxXhJtzvABLDKmzYH3V9NfedLAEjSb4Cnvk43wv", "script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAILPwEAAAACnN0YXJ0UHJpY2UAAAAAAACJVEAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAADwAAAAAAAAAA+gEAAAAB0FTaWduZWQCAAAAK1dIRlpMMnNlRHpjNGNnSEV5NWpUN0xTdHQ1eHBxenRWZkI1OFZ4aGhpOFQEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYEAAAABGRheXMJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAC3N0YXJ0SGVpZ2h0BQAAAAhpbnRlcnZhbAMDAwkAAG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AAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHCQAAAgAAAAECAAAAKlRyYW5zYWN0aW9uIGlzIG5vdCBhbGxvd2VkIGJ5IHRva2VuLXNjcmlwdNUtuBQ=", "chainId": 84, "height": 535859, "spentComplexity": 0 } View: original | compacted Prev: 5hPNLaNnxZd8RtAbuC11TniDEykLwLj7165tuFB6Nfbd Next: 3qmWMmG8PJVK5RV9qWP5DSDvyfj7CVr1XnTeXy428B73 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let startHeight = 535804 | |
4 | - | let startPrice = | |
4 | + | let startPrice = 9000000 | |
5 | 5 | let interval = (24 * 60) | |
6 | - | let exp = ((60 * 60) * 1000) | |
7 | - | let pass = 89900000000 | |
8 | - | let val = 9000000 | |
6 | + | let exp = ((100 * 60) * 1000) | |
9 | 7 | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" | |
10 | 8 | match tx { | |
11 | 9 | case t: ExchangeTransaction => | |
12 | 10 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
13 | 11 | then true | |
14 | 12 | else { | |
15 | - | let sell = sigVerify(t.sellOrder.bodyBytes, t.sellOrder.proofs[0], t.sellOrder.senderPublicKey) | |
16 | - | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) | |
17 | 13 | let days = ((height - startHeight) / interval) | |
18 | 14 | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) | |
19 | 15 | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let startHeight = 535804 | |
4 | - | let startPrice = | |
4 | + | let startPrice = 9000000 | |
5 | 5 | let interval = (24 * 60) | |
6 | - | let exp = ((60 * 60) * 1000) | |
7 | - | let pass = 89900000000 | |
8 | - | let val = 9000000 | |
6 | + | let exp = ((100 * 60) * 1000) | |
9 | 7 | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" | |
10 | 8 | match tx { | |
11 | 9 | case t: ExchangeTransaction => | |
12 | 10 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
13 | 11 | then true | |
14 | 12 | else { | |
15 | - | let sell = sigVerify(t.sellOrder.bodyBytes, t.sellOrder.proofs[0], t.sellOrder.senderPublicKey) | |
16 | - | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) | |
17 | 13 | let days = ((height - startHeight) / interval) | |
18 | 14 | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) | |
19 | 15 | then !(isDefined(t.sellOrder.assetPair.priceAsset)) | |
20 | 16 | else throw("001")) | |
21 | 17 | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) | |
22 | 18 | else throw("24")) | |
23 | 19 | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) | |
24 | 20 | else throw("25") | |
25 | 21 | } | |
26 | 22 | case t: TransferTransaction => | |
27 | 23 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
28 | 24 | then true | |
29 | 25 | else false | |
30 | 26 | case t: ReissueTransaction => | |
31 | 27 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
32 | 28 | then true | |
33 | 29 | else false | |
34 | 30 | case t: BurnTransaction => | |
35 | 31 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
36 | 32 | then true | |
37 | 33 | else false | |
38 | 34 | case t: MassTransferTransaction => | |
39 | 35 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
40 | 36 | then true | |
41 | 37 | else false | |
42 | 38 | case t: SetAssetScriptTransaction => | |
43 | 39 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
44 | 40 | then true | |
45 | 41 | else false | |
46 | 42 | case _ => | |
47 | 43 | throw("Transaction is not allowed by token-script") | |
48 | 44 | } |
github/deemru/w8io/026f985 32.36 ms ◑