tx · 2zNAKVCXGKPro2J9oxC3Nb3QQAnwsBKpihZoq36d1ypu

3N6mVEULck7uViUaDo1wi98wch9XzYNXriv:  -1.00000000 Waves

2019.02.22 07:35 [506004] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 exchange

{ "type": 15, "id": "2zNAKVCXGKPro2J9oxC3Nb3QQAnwsBKpihZoq36d1ypu", "fee": 100000000, "feeAssetId": null, "timestamp": 1550810134901, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "5jKpAtbx7WfPacfsbnnQ5Q2tp8Bahv5ZJLHptAgF7ur6Szgmdr4YgQ6fW7X4Jij8KEL2d6nrY2ktGMy8Hw53Ht4A" ], "assetId": "CdAw5Uu1A9RT6jafc9cQSUy16naaYjzYgcVWDY8xGw8z", "script": "base64:AQQAAAAKaGVpZ2h0RGlmZgAAAAAAAAAAAwQAAAAOcHJpY2VEaWZmQ29uc3QAAAAAAAACisgEAAAAD2V4cGlyYXRpb25Ib3VycwAAAAAAAAAAGAQAAAANbWF4RXhwaXJhdGlvbgkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAPZXhwaXJhdGlvbkhvdXJzAAAAAAAAAAA8AAAAAAAAAAA8AAAAAAAAAAPoBAAAAAtzdGFydEhlaWdodAAAAAAAAAe4iwQAAAAGY3ljbGVzAAAAAAAAAAADBAAAAAlwcmljZURpZmYJAABoAAAAAgUAAAAOcHJpY2VEaWZmQ29uc3QFAAAABmN5Y2xlcwQAAAANc3RhcnRCdXlQcmljZQAAAAAAAP5P6AQAAAALbWluQnV5UHJpY2UJAABkAAAAAgUAAAANc3RhcnRCdXlQcmljZQUAAAAJcHJpY2VEaWZmBAAAAAxtYXhCdXlBbW91bnQAAAAAD4GrWgAEAAAADnN0YXJ0U2VsbFByaWNlAAAAAAAA/lEUBAAAAAxtaW5T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QAAAARzZWxsAwkAAGYAAAACBQAAAA1taW5TZWxsQW1vdW50CAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABmFtb3VudAkAAAIAAAABBQAAAA9zZWxsQW1vdW50RXJyb3IDAwkAAGYAAAACBQAAAAxtaW5TZWxsUHJpY2UICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UGCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQJAAACAAAAAQUAAAAOc2VsbFByaWNlRXJyb3IGAwUAAAADYnV5AwkAAGYAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGYW1vdW50BQAAAAxtYXhCdXlBbW91bnQJAAACAAAAAQUAAAAOYnV5QW1vdW50RXJyb3IDAwkAAGYAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAFcHJpY2UFAAAAC21pbkJ1eVByaWNlBgkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQJAAACAAAAAQUAAAANYnV5UHJpY2VFcnJvcgYHAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGBiVOKPQ=", "chainId": 84, "height": 506004, "spentComplexity": 0 } View: original | compacted Prev: DKReoPU7wSiW9c17WrusTAtcrMb7VhUhJ11Yg4WoCjX Next: HXmNFK74wj5RfHyAhJww1mcp11oTh6Ry4CBu2BUtUMRW Diff:
OldNewDifferences
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
77 let startHeight = 505995
8-let cycles = ((height - startHeight) / heightDiff)
8+let cycles = 3
99 let priceDiff = (priceDiffConst * cycles)
1010 let startBuyPrice = 16666600
1111 let minBuyPrice = (startBuyPrice + priceDiff)
1414 let minSellPrice = (startSellPrice + priceDiff)
1515 let minSellAmount = 600000000
1616 let expirationError = "Expiration must be <= 24 hours"
17-let buyAmountError = ("Buy amount must be <= " + toString((maxBuyAmount / 100000000)))
18-let buyPriceError = (((("Buy price must be <= " + toString(minBuyPrice)) + " wavelets (cycles: ") + toString(cycles)) + ")")
19-let sellAmountError = ("Sell amount must be >= " + toString((minSellAmount / 100000000)))
20-let sellPriceError = (((("Sell price must be >= " + toString(minSellPrice)) + " wavelets (cycles: ") + toString(cycles)) + ")")
17+let buyAmountError = "Buy amount must be <= "
18+let buyPriceError = "Buy price must be <= "
19+let sellAmountError = "Sell amount must be >= "
20+let sellPriceError = "Sell price must be >= "
2121 match tx {
2222 case e: ExchangeTransaction =>
2323 if (((e.sellOrder.expiration - e.sellOrder.timestamp) > maxExpiration))
4343 else true
4444 else false
4545 }
46+ case t: MassTransferTransaction|BurnTransaction|TransferTransaction =>
47+ true
4648 case _ =>
4749 true
4850 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let heightDiff = 3
44 let priceDiffConst = 166600
55 let expirationHours = 24
66 let maxExpiration = (((expirationHours * 60) * 60) * 1000)
77 let startHeight = 505995
8-let cycles = ((height - startHeight) / heightDiff)
8+let cycles = 3
99 let priceDiff = (priceDiffConst * cycles)
1010 let startBuyPrice = 16666600
1111 let minBuyPrice = (startBuyPrice + priceDiff)
1212 let maxBuyAmount = 66600000000
1313 let startSellPrice = 16666900
1414 let minSellPrice = (startSellPrice + priceDiff)
1515 let minSellAmount = 600000000
1616 let expirationError = "Expiration must be <= 24 hours"
17-let buyAmountError = ("Buy amount must be <= " + toString((maxBuyAmount / 100000000)))
18-let buyPriceError = (((("Buy price must be <= " + toString(minBuyPrice)) + " wavelets (cycles: ") + toString(cycles)) + ")")
19-let sellAmountError = ("Sell amount must be >= " + toString((minSellAmount / 100000000)))
20-let sellPriceError = (((("Sell price must be >= " + toString(minSellPrice)) + " wavelets (cycles: ") + toString(cycles)) + ")")
17+let buyAmountError = "Buy amount must be <= "
18+let buyPriceError = "Buy price must be <= "
19+let sellAmountError = "Sell amount must be >= "
20+let sellPriceError = "Sell price must be >= "
2121 match tx {
2222 case e: ExchangeTransaction =>
2323 if (((e.sellOrder.expiration - e.sellOrder.timestamp) > maxExpiration))
2424 then throw(expirationError)
2525 else {
2626 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2727 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2828 if (sell)
2929 then if ((minSellAmount > e.sellOrder.amount))
3030 then throw(sellAmountError)
3131 else if (if ((minSellPrice > e.sellOrder.price))
3232 then true
3333 else isDefined(e.sellOrder.assetPair.priceAsset))
3434 then throw(sellPriceError)
3535 else true
3636 else if (buy)
3737 then if ((e.buyOrder.amount > maxBuyAmount))
3838 then throw(buyAmountError)
3939 else if (if ((e.buyOrder.price > minBuyPrice))
4040 then true
4141 else isDefined(e.buyOrder.assetPair.priceAsset))
4242 then throw(buyPriceError)
4343 else true
4444 else false
4545 }
46+ case t: MassTransferTransaction|BurnTransaction|TransferTransaction =>
47+ true
4648 case _ =>
4749 true
4850 }

github/deemru/w8io/169f3d6 
30.74 ms