tx · FumyFjDaneGVYFUyws6rNV28bCBmbF5EgthQ9j9k9vuB 3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF: -1.00000000 Waves 2020.04.18 22:32 [960363] smart asset 3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF > SELF 0 SUPER
{ "type": 15, "id": "FumyFjDaneGVYFUyws6rNV28bCBmbF5EgthQ9j9k9vuB", "fee": 100000000, "feeAssetId": null, "timestamp": 1587238349322, "version": 1, "sender": "3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF", "senderPublicKey": "B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk", "proofs": [ "27JxFTMZKwdpzyEQGvPJEVby8uDj4tMX4HLszgztNGe7SThiYJCJ1d529HJu8dkxurygPDJcyC5ejKMtKZZ8wsxg" ], "assetId": "DHKgdp6r2f6tpFb2fd3aTtBFQAwXgd3jogPMgniLZaDN", "script": "base64:AgQAAAAHYWRtaW5QSwEAAAAglsSJz6KFUcFtfApcMGPSTcbUtji15ZrrZdwT1HPy9xsEAAAACnNlbGxBbW91bnQAAAAAADuaygAEAAAACXNlbGxQcmljZQkAAGkAAAACAAAAAAAAAABkAAAAAAAF9eEABAAAAAhidXlQcmljZQkAAGkAAAACAAAAAAAAAABaAAAAAAAF9eEABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAGc2VuZGVyCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAA2J1eQk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AQIAAAAWc29tZXRoaW5nIGJhZCBoYXBwZW5lZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBwZAExdz", "chainId": 84, "height": 960363, "spentComplexity": 0 } View: original | compacted Prev: 56G5HzeC7QDi91DrEnYZqqccByGH8rfEQifHrvJeJQ5k Next: DGdn4bHBRkdH6kSnaFm3VfxqFfbNKNA5DMpTz7Dq3k9t Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let adminPK = base58'B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk' | |
4 | 4 | let sellAmount = 1000000000 | |
5 | - | let sellPrice = 100 | |
6 | - | let buyPrice = 90 | |
5 | + | let sellPrice = (100 / 100000000) | |
6 | + | let buyPrice = (90 / 100000000) | |
7 | 7 | match tx { | |
8 | 8 | case e: ExchangeTransaction => | |
9 | 9 | let sender = e.sellOrder.sender |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let adminPK = base58'B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk' | |
4 | 4 | let sellAmount = 1000000000 | |
5 | - | let sellPrice = 100 | |
6 | - | let buyPrice = 90 | |
5 | + | let sellPrice = (100 / 100000000) | |
6 | + | let buyPrice = (90 / 100000000) | |
7 | 7 | match tx { | |
8 | 8 | case e: ExchangeTransaction => | |
9 | 9 | let sender = e.sellOrder.sender | |
10 | 10 | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
11 | 11 | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
12 | 12 | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) | |
13 | 13 | if (admin) | |
14 | 14 | then true | |
15 | 15 | else if (isDefined(e.sellOrder.assetPair.priceAsset)) | |
16 | 16 | then throw("Only waves accepted") | |
17 | 17 | else if (sell) | |
18 | 18 | then if ((sellAmount > e.sellOrder.amount)) | |
19 | 19 | then throw(("Sell amount must be greater or equal to " + toString((sellAmount / 100000000)))) | |
20 | 20 | else if ((sellPrice >= e.sellOrder.price)) | |
21 | 21 | then throw((("Sell price must be greater than " + toString(sellPrice)) + " wavelets")) | |
22 | 22 | else true | |
23 | 23 | else if (buy) | |
24 | 24 | then if ((buyPrice >= e.sellOrder.price)) | |
25 | 25 | then throw((("Buy price must be greater then " + toString(buyPrice)) + " wavelets")) | |
26 | 26 | else true | |
27 | 27 | else throw("something bad happened") | |
28 | 28 | case _: BurnTransaction => | |
29 | 29 | false | |
30 | 30 | case _ => | |
31 | 31 | true | |
32 | 32 | } |
github/deemru/w8io/169f3d6 41.00 ms ◑