tx · 43ZD4PsA1AoRi6ZTjCEnRYju4UWpUd7W6cSSMnskqsAN

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.27 16:22 [1016849] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "43ZD4PsA1AoRi6ZTjCEnRYju4UWpUd7W6cSSMnskqsAN", "fee": 100000000, "feeAssetId": null, "timestamp": 1590585762212, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "3eaPve5Hra7MM8CyAAm8LZtvZ2WJ9X3vrbaWziHhcedNnLLZ3jx5eVivHeVxoJL1bASrRiKsZi55PWWwVx7Dmgo5" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAALc3RhcnRIZWlnaHQAAAAAAAAPgMAEAAAADmludGVydmFsSGVpZ2h0AAAAAAAAAAXcBAAAAA1pbnRlcnZhbFByaWNlAAAAAAAAAAPoBAAAAApzdGFydFByaWNlAAAAAAAAAAPoBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAOaW50ZXJ2YWxIZWlnaHQEAAAAA3N1bQkAAGQAAAACBQAAAApzdGFydFByaWNlCQAAaAAAAAIFAAAADWludGVydmFsUHJpY2UFAAAABGRheXMEAAAACXNlbGxQcmljZQUAAAADc3VtBAAAAAhidXlQcmljZQkAAGUAAAACBQAAAANz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va4WCUyZYUAH6CXi7p5idnQg5avPRWVDUGn Next: AoujyRNgyyDBWkLRG75QR87qaFMfiRWQkCxutSCugkTH Diff:
OldNewDifferences
2424 case tx: TransferTransaction =>
2525 true
2626 case e: ExchangeTransaction =>
27- let sender = e.sellOrder.sender
2827 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2928 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
3029 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
3130 if (admin)
3231 then true
3332 else if (isDefined(e.sellOrder.assetPair.priceAsset))
34- then throw("Only Waves accepted")
33+ then throw(" Only Waves accepted ")
3534 else if (sell)
36- then if ((sellPrice >= e.sellOrder.price))
37- then throw((("-= Selling price should be higher " + toString(sellPricee)) + " Wavelets "))
35+ then if ((sellPrice > e.sellOrder.price))
36+ then throw(((" Selling price should be higher " + toString(sellPricee)) + " Wavelets "))
3837 else if (((e.sellOrder.expiration - e.sellOrder.timestamp) >= 6000000))
39- then throw("-= The term of the order should not exceed 1 hour")
38+ then throw(" The term of the order should not exceed 1 hour ")
4039 else true
4140 else if (buy)
42- then if ((buyPrice >= e.sellOrder.price))
43- then throw((("-= Purchase price must be higher " + toString(buyPricee)) + " Wavelets "))
41+ then if ((buyPrice > e.sellOrder.price))
42+ then throw(((" Purchase price must be higher " + toString(buyPricee)) + " Wavelets "))
4443 else true
45- else throw("Something bad happened")
44+ else throw(" Something bad happened ")
4645 case _ =>
4746 false
4847 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let startHeight = 1016000
66 let intervalHeight = 1500
77 let intervalPrice = 1000
88 let startPrice = 1000
99 let days = ((height - startHeight) / intervalHeight)
1010 let sum = (startPrice + (intervalPrice * days))
1111 let sellPrice = sum
1212 let buyPrice = (sum - 500)
1313 let sellPricee = sellPrice
1414 let buyPricee = buyPrice
1515 match tx {
1616 case tx: BurnTransaction =>
1717 true
1818 case tx: ReissueTransaction =>
1919 (tx.sender == dAppAddress)
2020 case tx: SetAssetScriptTransaction =>
2121 (tx.sender == dAppAddress)
2222 case tx: MassTransferTransaction =>
2323 true
2424 case tx: TransferTransaction =>
2525 true
2626 case e: ExchangeTransaction =>
27- let sender = e.sellOrder.sender
2827 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2928 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
3029 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
3130 if (admin)
3231 then true
3332 else if (isDefined(e.sellOrder.assetPair.priceAsset))
34- then throw("Only Waves accepted")
33+ then throw(" Only Waves accepted ")
3534 else if (sell)
36- then if ((sellPrice >= e.sellOrder.price))
37- then throw((("-= Selling price should be higher " + toString(sellPricee)) + " Wavelets "))
35+ then if ((sellPrice > e.sellOrder.price))
36+ then throw(((" Selling price should be higher " + toString(sellPricee)) + " Wavelets "))
3837 else if (((e.sellOrder.expiration - e.sellOrder.timestamp) >= 6000000))
39- then throw("-= The term of the order should not exceed 1 hour")
38+ then throw(" The term of the order should not exceed 1 hour ")
4039 else true
4140 else if (buy)
42- then if ((buyPrice >= e.sellOrder.price))
43- then throw((("-= Purchase price must be higher " + toString(buyPricee)) + " Wavelets "))
41+ then if ((buyPrice > e.sellOrder.price))
42+ then throw(((" Purchase price must be higher " + toString(buyPricee)) + " Wavelets "))
4443 else true
45- else throw("Something bad happened")
44+ else throw(" Something bad happened ")
4645 case _ =>
4746 false
4847 }

github/deemru/w8io/169f3d6 
98.88 ms