tx · 2w111uPCKJdnF5f9DxUGwdCuNFLJfZHG2EpwYSqVHRaL

3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF:  -1.00000000 Waves

2020.04.23 11:09 [966858] smart asset 3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF > SELF 0 Goldmine6

{ "type": 15, "id": "2w111uPCKJdnF5f9DxUGwdCuNFLJfZHG2EpwYSqVHRaL", "fee": 100000000, "feeAssetId": null, "timestamp": 1587629364664, "version": 1, "sender": "3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF", "senderPublicKey": "B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk", "proofs": [ "pW1Yr3V9gBYVmaGjhaKfPedzAzKQ2DLqg8fNzGPbRDBHsnWid4cyjkEcV62hcQ942JGnLadsbsa5KPCGWdcxrCT" ], "assetId": "7xFACXkXqa1tXkHN5vAW5rQeWPXXK4PvzEEBwMAQJGnW", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNONUVyeVgzVHVjYndVcG5qcnlaQjNXTGczWURUY0M5QmJGBAAAAAdhZG1pblBLAQAAACCWxInPooVRwW18ClwwY9JNxtS2OLXlmutl3BPUc/L3GwQAAAAKc2VsbEFtb3VudAAAAAAAAAAnEAQAAAAJc2VsbFByaWNlCQAAaAAAAAIAAAAAAAAAJxAAAAAAAAX14QAEAAAACGJ1eVByaWNlCQAAaAAAAAIAAAAAAAAAIygAAAAAAAX14QAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAAC2RBcHBBZGRyZXNzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckb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T3JkZXIAAAAGc2VuZGVyCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAAdhZG1pblBLAwUAAAAFYWRtaW4GAwkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0CQAAAgAAAAECAAAAE09ubHkgd2F2ZXMgYWNjZXB0ZWQDBQAAAARzZWxsAwkAAGYAAAACBQAAAApzZWxsQW1vdW50CAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABmFtb3VudAkAAAIAAAABCQABLAAAAAICAAAAKFNlbGwgYW1vdW50IG11c3QgYmUgZ3JlYXRlciBvciBlcXVhbCB0byAJAAGkAAAAAQkAAGkAAAACBQAAAApzZWxsQW1vdW50AAAAAAAF9eEAAwkAAGcAAAACBQAAAAlzZWxsUHJpY2UICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAIFNlbGwgcHJpY2UgbXVzdCBiZSBncmVhdGVyIHRoYW4gCQABpAAAAAEFAAAACXNlbGxQcmljZQIAAAAJIHdhdmVsZXRzBgMFAAAAA2J1eQMJAABnAAAAAgUAAAAIYnV5UHJpY2UICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAH0J1eSBwcmljZSBtdXN0IGJlIGdyZWF0ZXIgdGhlbiAJAAGkAAAAAQUAAAAIYnV5UHJpY2UCAAAACSB3YXZlbGV0cwYJAAACAAAAAQIAAAAWc29tZXRoaW5nIGJhZCBoYXBwZW5lZAf7FzM4", "chainId": 84, "height": 966858, "spentComplexity": 0 } View: original | compacted Prev: 2V7C5zhQS14FwU2rAnCRXJiW4RT2T7iVJzQxFUttiNPb Next: 9gFK4HEvcBKC7pEue1vB3YfvgX7NmhLLXquyBupwubMa Diff:
OldNewDifferences
33 let dAppAddress = addressFromString("3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF")
44 let adminPK = base58'B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk'
55 let sellAmount = 10000
6-let sellPrice = (10000 / 100000000)
7-let buyPrice = (9000 / 100000000)
6+let sellPrice = (10000 * 100000000)
7+let buyPrice = (9000 * 100000000)
88 match tx {
99 case tx: BurnTransaction =>
1010 (tx.sender == dAppAddress)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3N5EryX3TucbwUpnjryZB3WLg3YDTcC9BbF")
44 let adminPK = base58'B9XyW4GriR4NKr6yyp8ZS5BmRzTXAhBn9jybWtpDhQKk'
55 let sellAmount = 10000
6-let sellPrice = (10000 / 100000000)
7-let buyPrice = (9000 / 100000000)
6+let sellPrice = (10000 * 100000000)
7+let buyPrice = (9000 * 100000000)
88 match tx {
99 case tx: BurnTransaction =>
1010 (tx.sender == dAppAddress)
1111 case tx: ReissueTransaction =>
1212 (tx.sender == dAppAddress)
1313 case tx: SetAssetScriptTransaction =>
1414 (tx.sender == dAppAddress)
1515 case tx: MassTransferTransaction =>
1616 (tx.sender == dAppAddress)
1717 case tx: TransferTransaction =>
1818 (tx.sender == dAppAddress)
1919 case e: ExchangeTransaction =>
2020 let sender = e.sellOrder.sender
2121 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2222 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2323 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
2424 if (admin)
2525 then true
2626 else if (isDefined(e.sellOrder.assetPair.priceAsset))
2727 then throw("Only waves accepted")
2828 else if (sell)
2929 then if ((sellAmount > e.sellOrder.amount))
3030 then throw(("Sell amount must be greater or equal to " + toString((sellAmount / 100000000))))
3131 else if ((sellPrice >= e.sellOrder.price))
3232 then throw((("Sell price must be greater than " + toString(sellPrice)) + " wavelets"))
3333 else true
3434 else if (buy)
3535 then if ((buyPrice >= e.sellOrder.price))
3636 then throw((("Buy price must be greater then " + toString(buyPrice)) + " wavelets"))
3737 else true
3838 else throw("something bad happened")
3939 case _ =>
4040 false
4141 }

github/deemru/w8io/026f985 
30.03 ms