tx · DDaq8M7gkvJZPh1d3UhxodDqR3wAjpvJ4qHif4cZUnZu

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.21 13:57 [504936] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "DDaq8M7gkvJZPh1d3UhxodDqR3wAjpvJ4qHif4cZUnZu", "fee": 100000000, "feeAssetId": null, "timestamp": 1550746693225, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "5CCqTmzG3tzb2d2ve2M4NLtJK5ywbMpSbUhxCky5V9atkwABUce7USfdpjjDWKpMhVgynVjDWdoM2iJFXfsvLi1v" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAARQYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAABUJUQ0lkAQAAACDNjHhb0l53Tt6xXRrPX9r5Cadfo2P618zZJflokPoKZwQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAGgFUQtD8MSYbZxVfcEX6B5jtUtZIL2SxzzuNBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACXNlbGxPcmR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ggdHlwZQkAAAIAAAABAgAAACBZb3Ugb25seSBjYW4gdHJhbnNmZXIgdGhpcyB0b2tlbrKOMyQ=", "chainId": 84, "height": 504936, "spentComplexity": 0 } View: original | compacted Prev: ADWdYsG1ee8GWT3obozJ5FDUa9jPMkGfRMzAH3TNRP6B Next: DyGhSWaC2hojgjWg3qFXxpENH5F7rpW9kWbzeYY4BDoH Diff:
OldNewDifferences
1111 if (sell)
1212 then {
1313 let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey)
14- let balnce = assetBalance(addressFromPublicKey(tx.senderPublicKey), base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
14+ let balnce = assetBalance(addressFromPublicKey(e.senderPublicKey), BTCId)
1515 if ((price > e.sellOrder.price))
1616 then throw("you cannot sell for less than 1.00000001")
17- else if ((10 > balnce))
17+ else if ((10 >= balnce))
1818 then throw("you can sell only have at least 10 tokens")
1919 else true
2020 }
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- let balnce = assetBalance(addressFromPublicKey(tx.senderPublicKey), base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
14+ let balnce = assetBalance(addressFromPublicKey(e.senderPublicKey), BTCId)
1515 if ((price > e.sellOrder.price))
1616 then throw("you cannot sell for less than 1.00000001")
17- else if ((10 > balnce))
17+ else if ((10 >= balnce))
1818 then throw("you can sell only have at least 10 tokens")
1919 else true
2020 }
2121 else true
2222 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
2323 let transaction = transactionById(extract(mass.assetId))
2424 match transaction {
2525 case issueTx: IssueTransaction =>
2626 (mass.senderPublicKey == issueTx.senderPublicKey)
2727 case _ =>
2828 throw("Bad issue tx type")
2929 }
3030 case _ =>
3131 throw("You only can transfer this token")
3232 }

github/deemru/w8io/026f985 
37.50 ms