tx · CG2TqGQzFfcu147Pp4qV2K3eHVUBKn6urjzR1j51aub1

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.21 15:04 [504999] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "CG2TqGQzFfcu147Pp4qV2K3eHVUBKn6urjzR1j51aub1", "fee": 100000000, "feeAssetId": null, "timestamp": 1550750643793, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "5ZRhphU6vJR2P6cFCm41vbWKeMf4HPkPAecmnZWRD1VmjqypaJa4kKf34y3YJveuN2GZsqon42XRR4nGrDSLtMgN" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAARQYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAADmFkbWluUHVibGljS2V5AQAAABoBVELQ/DEmG2cVX3BF+geY7VLWSC9ksc87jQQAAAAFQlRDSWQBAAAAIM2MeFvSXndO3rFdGs9f2vkJp1+jY/rXzNkl+WiQ+gpnBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAA9z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AAAQIAAAAgWW91IG9ubHkgY2FuIHRyYW5zZmVyIHRoaXMgdG9rZW4ICo4D", "chainId": 84, "height": 504999, "spentComplexity": 0 } View: original | compacted Prev: JBUoJ1fzVc2et5CyxfDSkb1rVYU3qct63bbRZWfNN7BP Next: CVAPLDCJkyPVbJxjTmwdqLyFVeFL4eSSZjv83vBJQdJo Diff:
OldNewDifferences
1111 if (sell)
1212 then {
1313 let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey)
14+ let balance = assetBalance(addressFromPublicKey(tx.senderPublicKey), base58'WTFG')
1415 if ((price > e.sellOrder.price))
1516 then throw("you cannot sell for less than 1.00000001")
16- else if ((10 >= assetBalance(addressFromPublicKey(e.senderPublicKey), base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')))
17+ else if ((10 > balance))
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 price = 100000001
44 let pricemin = 200000001
55 let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')
66 let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx'
77 let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg'
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 balance = assetBalance(addressFromPublicKey(tx.senderPublicKey), base58'WTFG')
1415 if ((price > e.sellOrder.price))
1516 then throw("you cannot sell for less than 1.00000001")
16- else if ((10 >= assetBalance(addressFromPublicKey(e.senderPublicKey), base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg')))
17+ else if ((10 > balance))
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/169f3d6 
33.60 ms