tx · GeSP1yTE6J4sADrjTpUPKsuKUT8hFNZxu4aeConErxaH

3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF:  -1.00000000 Waves

2020.04.18 23:06 [960396] smart asset 3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF > SELF 0 SUPER

{ "type": 15, "id": "GeSP1yTE6J4sADrjTpUPKsuKUT8hFNZxu4aeConErxaH", "fee": 100000000, "feeAssetId": null, "timestamp": 1587240386137, "version": 1, "sender": "3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF", "senderPublicKey": "B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk", "proofs": [ "5ZqPzrxjfFpREReMtDPjrjuqjAD5f98yfWY31soJRtHvzJpXRiY9VK5zebm9vCYGhhgF5qERXzcq58YbyTEoGvFJ" ], "assetId": "DHKgdp6r2f6tpFb2fd3aTtBFQAwXgd3jogPMgniLZaDN", "script": "base64:AgQAAAAHYWRtaW5QSwEAAAAglsSJz6KFUcFtfApcMGPSTcbUtji15ZrrZdwT1HPy9xsEAAAACnNlbGxBbW91bnQJAABoAAAAAgAAAAAAAAAnEAAAAAAABfXhAAQAAAAJc2VsbFByaWNlCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAX14QAEAAAACGJ1eVByaWNlCQAAaAAAAAIAAAAAAAAAAFoAAAAAAAX14QAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAZzZW5kZXIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBAAAAARzZWxsCQAB9AAAAAMICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAAD3Nlb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IAAAAJIHdhdmVsZXRzBgkAAAIAAAABAgAAABZzb21ldGhpbmcgYmFkIGhhcHBlbmVkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GBrzcMrE=", "chainId": 84, "height": 960396, "spentComplexity": 0 } View: original | compacted Prev: 7thrdA1512gsjK2dUR74vVazhBHpiTLWXMa8LkvnriEG Next: none Diff:
OldNewDifferences
2626 else true
2727 else throw("something bad happened")
2828 case _: BurnTransaction =>
29- false
29+ true
3030 case _ =>
3131 true
3232 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let adminPK = base58'B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk'
44 let sellAmount = (10000 * 100000000)
55 let sellPrice = (100 * 100000000)
66 let buyPrice = (90 * 100000000)
77 match tx {
88 case e: ExchangeTransaction =>
99 let sender = e.sellOrder.sender
1010 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1111 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
1212 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1313 if (admin)
1414 then true
1515 else if (isDefined(e.sellOrder.assetPair.priceAsset))
1616 then throw("Only waves accepted")
1717 else if (sell)
1818 then if ((sellAmount > e.sellOrder.amount))
1919 then throw(("Sell amount must be greater or equal to " + toString((sellAmount / 100000000))))
2020 else if ((sellPrice >= e.sellOrder.price))
2121 then throw((("Sell price must be greater than " + toString(sellPrice)) + " wavelets"))
2222 else true
2323 else if (buy)
2424 then if ((buyPrice >= e.sellOrder.price))
2525 then throw((("Buy price must be greater then " + toString(buyPrice)) + " wavelets"))
2626 else true
2727 else throw("something bad happened")
2828 case _: BurnTransaction =>
29- false
29+ true
3030 case _ =>
3131 true
3232 }

github/deemru/w8io/169f3d6 
24.01 ms