tx · AwrbsmENbva4WCUyZYUAH6CXi7p5idnQg5avPRWVDUGn

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.05.27 16:11 [1016842] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 MOITOKEN

{ "type": 15, "id": "AwrbsmENbva4WCUyZYUAH6CXi7p5idnQg5avPRWVDUGn", "fee": 100000000, "feeAssetId": null, "timestamp": 1590585145897, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "4riz9MiUtj9PR9anboNXnicBazzPJ31hzoZSam6K65Bh1VNqjkEhcTX8mbjWxGijUTg7jDLQj1MKp9SV2sGStyZ4" ], "assetId": "3tqknScoCegnWpFYGvYGiUM68iWC1Fw9KPgHdYgi8ZWc", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAALc3RhcnRIZWlnaHQAAAAAAAAPgMAEAAAADmludGVydmFsSGVpZ2h0AAAAAAAAAAXcBAAAAA1pbnRlcnZhbFByaWNlAAAAAAAAAAPoBAAAAApzdGFydFByaWNlAAAAAAAAAAPoBAAAAARkYXlzCQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAAOaW50ZXJ2YWxIZWlnaHQEAAAAA3N1bQkAAGQAAAACBQAAAApzdGFydFByaWNlCQAAaAAAAAIFAAAADWludGVydmFsUHJpY2UFAAAABGRheXMEAAAACXNlbGxQcmljZQUAAAADc3VtBAAAAAhidXlQcmljZQkAAGUAAAACBQAAAANzdW0AAAAAAAAA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": 1016842, "spentComplexity": 0 } View: original | compacted Prev: 8CDzaLU9CxbooxYVxMdoxWaMKEXqSHzdc5fdPPSJ6qu5 Next: 43ZD4PsA1AoRi6ZTjCEnRYju4UWpUd7W6cSSMnskqsAN Diff:
OldNewDifferences
88 let startPrice = 1000
99 let days = ((height - startHeight) / intervalHeight)
1010 let sum = (startPrice + (intervalPrice * days))
11-let sellPrice = (sum * 100000000)
12-let buyPrice = ((sum - 500) * 100000000)
13-let sellPricee = (sellPrice / 100000000)
14-let buyPricee = (buyPrice / 100000000)
11+let sellPrice = sum
12+let buyPrice = (sum - 500)
13+let sellPricee = sellPrice
14+let buyPricee = buyPrice
1515 match tx {
1616 case tx: BurnTransaction =>
1717 true
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))
11-let sellPrice = (sum * 100000000)
12-let buyPrice = ((sum - 500) * 100000000)
13-let sellPricee = (sellPrice / 100000000)
14-let buyPricee = (buyPrice / 100000000)
11+let sellPrice = sum
12+let buyPrice = (sum - 500)
13+let sellPricee = sellPrice
14+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 =>
2727 let sender = e.sellOrder.sender
2828 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2929 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
3030 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
3131 if (admin)
3232 then true
3333 else if (isDefined(e.sellOrder.assetPair.priceAsset))
3434 then throw("Only Waves accepted")
3535 else if (sell)
3636 then if ((sellPrice >= e.sellOrder.price))
3737 then throw((("-= Selling price should be higher " + toString(sellPricee)) + " Wavelets "))
3838 else if (((e.sellOrder.expiration - e.sellOrder.timestamp) >= 6000000))
3939 then throw("-= The term of the order should not exceed 1 hour")
4040 else true
4141 else if (buy)
4242 then if ((buyPrice >= e.sellOrder.price))
4343 then throw((("-= Purchase price must be higher " + toString(buyPricee)) + " Wavelets "))
4444 else true
4545 else throw("Something bad happened")
4646 case _ =>
4747 false
4848 }

github/deemru/w8io/169f3d6 
37.32 ms