tx · HDkD5HjPmUWK7aEkjnvuESYi6gvFUTQTiDXXYeobQgdE

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.20 14:57 [503463] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "HDkD5HjPmUWK7aEkjnvuESYi6gvFUTQTiDXXYeobQgdE", "fee": 100000000, "feeAssetId": null, "timestamp": 1550663908301, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "5WXNAZrosp6gbk2sNJtnEECGR3c6EbCzCzgdtkwHYedmD5kKR2YRbQePbT1c2EutLHemU4Seb9QEAJVJgY51DE7s" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAAAAAABAAAAARQYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgQAAAAFcGFpcnMICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIEAAAADnRyYWRlZEZvcldhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAALYW1vdW50QXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAApwcmljZUFzc2V0AwMFAAAADnRyYWRlZEZvcldhdmVzCQAAZwAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UFAAAABXByaWNlBwkAAGcAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAFcHJpY2UFAAAACHByaWNlbWluBwMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAARtYXNzBQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAARtYXNzAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxCQAAAAAAAAIIBQAAAARtYXNzAAAAD3NlbmRlclB1YmxpY0tleQgFAAAAB2lzc3VlVHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAEUJhZCBpc3N1ZSB0eCB0eXBlCQAAAgAAAAECAAAAIFlvdSBvbmx5IGNhbiB0cmFuc2ZlciB0aGlzIHRva2VueLeWYA==", "chainId": 84, "height": 503463, "spentComplexity": 0 } View: original | compacted Prev: 2Q5L5jPrEDttr7LbLLmUHHZtVG9wSPqbkwyeQz8NB1Yp Next: EgmzbuocLbeZDyk9zHnC4qcy8nQGxMxbYdqvN3cNMWkx Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let minimumWavesBalance = 1000000000
4-let moveTimeInBlocks = 5000
5-let minimalFeeToMove = 10000000
6-let minimalFeeToBurn = 50000000
7-let price = 10000000
3+let price = 100000001
4+let pricemin = 0
5+let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
86 match tx {
97 case e: ExchangeTransaction =>
10- let pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
8+ let pair = e.sellOrder.assetPair
9+ let pairs = e.buyOrder.assetPair
1110 let tradedForWaves = if (!(isDefined(pair.amountAsset)))
1211 then true
1312 else !(isDefined(pair.priceAsset))
14- if (tradedForWaves)
15- then (e.price >= price)
13+ if (if (tradedForWaves)
14+ then (e.sellOrder.price >= price)
15+ else false)
16+ then (e.buyOrder.price >= pricemin)
1617 else false
1718 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
1819 let transaction = transactionById(extract(mass.assetId))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let minimumWavesBalance = 1000000000
4-let moveTimeInBlocks = 5000
5-let minimalFeeToMove = 10000000
6-let minimalFeeToBurn = 50000000
7-let price = 10000000
3+let price = 100000001
4+let pricemin = 0
5+let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
86 match tx {
97 case e: ExchangeTransaction =>
10- let pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
8+ let pair = e.sellOrder.assetPair
9+ let pairs = e.buyOrder.assetPair
1110 let tradedForWaves = if (!(isDefined(pair.amountAsset)))
1211 then true
1312 else !(isDefined(pair.priceAsset))
14- if (tradedForWaves)
15- then (e.price >= price)
13+ if (if (tradedForWaves)
14+ then (e.sellOrder.price >= price)
15+ else false)
16+ then (e.buyOrder.price >= pricemin)
1617 else false
1718 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
1819 let transaction = transactionById(extract(mass.assetId))
1920 match transaction {
2021 case issueTx: IssueTransaction =>
2122 (mass.senderPublicKey == issueTx.senderPublicKey)
2223 case _ =>
2324 throw("Bad issue tx type")
2425 }
2526 case _ =>
2627 throw("You only can transfer this token")
2728 }

github/deemru/w8io/169f3d6 
36.38 ms