tx · AS21FHojCnJNcmwuQvLzY6Zqs1SxbtcpC9zVW5BDU2oe

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.20 20:32 [503848] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "AS21FHojCnJNcmwuQvLzY6Zqs1SxbtcpC9zVW5BDU2oe", "fee": 100000000, "feeAssetId": null, "timestamp": 1550684030791, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "JHcEdsvZkQYqXgPiHm7xCBacGGsoepAGgTh3bFdxP8t7t3zq5iuyH53qp9tbJNdSkPwY6VrDQCVa776KSDA25P5" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAAGcHJpY2V2AAAAAAAF9eEBBAAAAAhwcmljZW1pbgAAAAAAC+vCAQQAAAAEUGFpcgkBAAAACUFzc2V0UGFpcgAAAAIFAAAABHVuaXQBAAAAIM2MeFvSXndO3rFdGs9f2vkJp1+jY/rXzNkl+WiQ+gpnBAAAABNtaW5pbXVtV2F2ZXNCYWxhbmNlAAAAAAA7msoABAAAAAlJc3NldG5hbWUBAAAAIM2MeFvSXndO3rFdGs9f2vkJp1+jY/rXzNkl+WiQ+gpnBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEcGFpcggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIEAAAABXBhaXJzCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAcDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAApwcmljZUFzc2V0BgYDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAEbWFzcwUAAAAHJG1hdGNoMAQAAAALdHJhbnNhY3Rpb24JAAPoAAAAAQkBAAAAB2V4dHJhY3QAAAABCAUAAAAEbWFzcwAAAAdhc3NldElkBAAAAAckbWF0Y2gxBQAAAAt0cmFuc2FjdGlvbgMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAAQSXNzdWVUcmFuc2FjdGlvbgQAAAAHaXNzdWVUeAUAAAAHJG1hdGNoMQkAAAAAAAACCAUAAAAEbWFzcwAAAA9zZW5kZXJQdWJsaWNLZXkIBQAAAAdpc3N1ZVR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAABFCYWQgaXNzdWUgdHggdHlwZQkAAAIAAAABAgAAACBZb3Ugb25seSBjYW4gdHJhbnNmZXIgdGhpcyB0b2tlbjxfMTM=", "chainId": 84, "height": 503848, "spentComplexity": 0 } View: original | compacted Prev: GVCLVkfkcRn4Y4KxBazoMCHXLJuMRPXpZC8KXfFCeUxG Next: HfwoB7n57uUGGyVAmEcaU57bWJ94krzwdanxR1tdmrXB Diff:
OldNewDifferences
99 case e: ExchangeTransaction =>
1010 let pair = e.sellOrder.assetPair
1111 let pairs = e.buyOrder.assetPair
12- if (isDefined(pair.amountAsset))
12+ if (!(isDefined(pair.priceAsset)))
1313 then false
14- else if (isDefined(pair.priceAsset))
14+ else if (!(isDefined(pair.priceAsset)))
1515 then true
1616 else true
1717 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let pricev = 100000001
44 let pricemin = 200000001
55 let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
66 let minimumWavesBalance = 1000000000
77 let Issetname = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg'
88 match tx {
99 case e: ExchangeTransaction =>
1010 let pair = e.sellOrder.assetPair
1111 let pairs = e.buyOrder.assetPair
12- if (isDefined(pair.amountAsset))
12+ if (!(isDefined(pair.priceAsset)))
1313 then false
14- else if (isDefined(pair.priceAsset))
14+ else if (!(isDefined(pair.priceAsset)))
1515 then true
1616 else true
1717 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
1818 let transaction = transactionById(extract(mass.assetId))
1919 match transaction {
2020 case issueTx: IssueTransaction =>
2121 (mass.senderPublicKey == issueTx.senderPublicKey)
2222 case _ =>
2323 throw("Bad issue tx type")
2424 }
2525 case _ =>
2626 throw("You only can transfer this token")
2727 }

github/deemru/w8io/169f3d6 
42.81 ms