tx · AyrhTCHqnx3CujdjpR2gmXnZDwmfC7bSNYHHTDR7uC4X

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.21 15:24 [505019] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "AyrhTCHqnx3CujdjpR2gmXnZDwmfC7bSNYHHTDR7uC4X", "fee": 100000000, "feeAssetId": null, "timestamp": 1550751898697, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "kRLy8CCBDVHsRkcSWCYWBbR3At5G9rqb1DB9iVjE9P9yT9J7D6rwZQ6oxMHdSgZjuk1hZ4h6sLrXryQWYSy2aJ1" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAO5rKAAQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAA5hZG1pblB1YmxpY0tleQEAAAAaAVRC0PwxJhtnFV9wRfoHmO1S1kgvZLHPO40EAAAABUJUQ0lkAQAAACDNjHhb0l53Tt6xXRrPX9r5Cadfo2P618zZJflokPoKZwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAF2N1cnJlbnRSZWNpcGllbnRCYWxhbmNlCQAD6wAAAAIIBQAAAAFlAAAABnNlbmRlcgUAAAAFQlRDSWQEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAZwcm9vZnMAAAAA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Fuc2ZlciB0aGlzIHRva2VuL4EK4w==", "chainId": 84, "height": 505019, "spentComplexity": 0 } View: original | compacted Prev: FxYrr1u17yDvTf8kFNeYYqbuwtZfz4PebWRtsw8kC6cr Next: ApFKAEp4h93gvTQBC5XH38be48KzwmpkKH74Hb28WxqZ Diff:
OldNewDifferences
44 let price = 100000001
55 let pricemin = 200000001
66 let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx'
7+let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg'
78 match tx {
89 case e: ExchangeTransaction =>
9- let balance = assetBalance(addressFromPublicKey(e.senderPublicKey), base58'')
10+ let currentRecipientBalance = assetBalance(e.sender, BTCId)
1011 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1112 if (sell)
1213 then {
1314 let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey)
1415 if ((price > e.sellOrder.price))
1516 then throw("you cannot sell for less than 1.00000001")
16- else if ((minimumWavesBalance > balance))
17+ else if ((minimumWavesBalance > currentRecipientBalance))
1718 then throw("you can sell only have at least 10 tokens")
1819 else true
1920 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let minimumWavesBalance = 1000000000
44 let price = 100000001
55 let pricemin = 200000001
66 let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx'
7+let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg'
78 match tx {
89 case e: ExchangeTransaction =>
9- let balance = assetBalance(addressFromPublicKey(e.senderPublicKey), base58'')
10+ let currentRecipientBalance = assetBalance(e.sender, BTCId)
1011 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
1112 if (sell)
1213 then {
1314 let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey)
1415 if ((price > e.sellOrder.price))
1516 then throw("you cannot sell for less than 1.00000001")
16- else if ((minimumWavesBalance > balance))
17+ else if ((minimumWavesBalance > currentRecipientBalance))
1718 then throw("you can sell only have at least 10 tokens")
1819 else true
1920 }
2021 else true
2122 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
2223 let transaction = transactionById(extract(mass.assetId))
2324 match transaction {
2425 case issueTx: IssueTransaction =>
2526 (mass.senderPublicKey == issueTx.senderPublicKey)
2627 case _ =>
2728 throw("Bad issue tx type")
2829 }
2930 case _ =>
3031 throw("You only can transfer this token")
3132 }

github/deemru/w8io/026f985 
43.00 ms