tx · ADWdYsG1ee8GWT3obozJ5FDUa9jPMkGfRMzAH3TNRP6B

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.21 13:52 [504932] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "ADWdYsG1ee8GWT3obozJ5FDUa9jPMkGfRMzAH3TNRP6B", "fee": 100000000, "feeAssetId": null, "timestamp": 1550746357968, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "4DDrqYFgzwPxjLj5YwJm4FvoFxzFfVohja2zwcec34XZPxCfzXMXvBtkvJnhnXDd6TUJQ34LwJ35rWdYtVprTZsz" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAARQYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAABUJUQ0lkAQAAACDNjHhb0l53Tt6xXRrPX9r5Cadfo2P618zZJflokPoKZwQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAGgFUQtD8MSYbZxVfcEX6B5jtUtZIL2SxzzuNBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACXNlbGxPcm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XkJAAACAAAAAQIAAAARQmFkIGlzc3VlIHR4IHR5cGUJAAACAAAAAQIAAAAgWW91IG9ubHkgY2FuIHRyYW5zZmVyIHRoaXMgdG9rZW4iDwqq", "chainId": 84, "height": 504932, "spentComplexity": 0 } View: original | compacted Prev: JA6TU5d6ZdHtRw4XZSHm4nSC1QAEV8AMBzjYHNo1iNqc Next: DDaq8M7gkvJZPh1d3UhxodDqR3wAjpvJ4qHif4cZUnZu Diff:
OldNewDifferences
1111 if (sell)
1212 then {
1313 let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey)
14- if ((e.sellOrder.price > price))
15- then throw("You can't sell it")
16- else true
14+ let balnce = assetBalance(addressFromPublicKey(tx.senderPublicKey), base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
15+ if ((price > e.sellOrder.price))
16+ then throw("you cannot sell for less than 1.00000001")
17+ else if ((10 > balnce))
18+ then throw("you can sell only have at least 10 tokens")
19+ else true
1720 }
1821 else true
1922 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let price = 100000001
44 let pricemin = 200000001
55 let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
66 let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg'
77 let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx'
88 match tx {
99 case e: ExchangeTransaction =>
1010 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1111 if (sell)
1212 then {
1313 let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey)
14- if ((e.sellOrder.price > price))
15- then throw("You can't sell it")
16- else true
14+ let balnce = assetBalance(addressFromPublicKey(tx.senderPublicKey), base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
15+ if ((price > e.sellOrder.price))
16+ then throw("you cannot sell for less than 1.00000001")
17+ else if ((10 > balnce))
18+ then throw("you can sell only have at least 10 tokens")
19+ else true
1720 }
1821 else true
1922 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
2023 let transaction = transactionById(extract(mass.assetId))
2124 match transaction {
2225 case issueTx: IssueTransaction =>
2326 (mass.senderPublicKey == issueTx.senderPublicKey)
2427 case _ =>
2528 throw("Bad issue tx type")
2629 }
2730 case _ =>
2831 throw("You only can transfer this token")
2932 }

github/deemru/w8io/169f3d6 
37.47 ms