tx · FxYrr1u17yDvTf8kFNeYYqbuwtZfz4PebWRtsw8kC6cr

3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx:  -1.00000000 Waves

2019.02.21 15:14 [505010] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG

{ "type": 15, "id": "FxYrr1u17yDvTf8kFNeYYqbuwtZfz4PebWRtsw8kC6cr", "fee": 100000000, "feeAssetId": null, "timestamp": 1550751357032, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "4wxLNqYZQftach46XybQXUdjrz8vH3V6ASGYatrGxfgGmJwr1mFqZxCUjTwKY5d1Yqg1pUbSKeahN6GmMYDHo8ev" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAO5rKAAQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAA5hZG1pblB1YmxpY0tleQEAAAAaAVRC0PwxJhtnFV9wRfoHmO1S1kgvZLHPO40EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAdiYWxhbmNlCQAD6wAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFlAAAAD3NlbmRlclB1YmxpY0tleQEAAAAABAAAAARzZWxsCQAB9AAAAAMICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAAD3NlbmRlcl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compacted Prev: EE3mVDWKminZ3pj5qqDE8je51tbxWdinsBx6UPT4buvi Next: AyrhTCHqnx3CujdjpR2gmXnZDwmfC7bSNYHHTDR7uC4X 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'
77 match tx {
88 case e: ExchangeTransaction =>
99 let balance = assetBalance(addressFromPublicKey(e.senderPublicKey), base58'')
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)
1414 if ((price > e.sellOrder.price))
1515 then throw("you cannot sell for less than 1.00000001")
1616 else if ((minimumWavesBalance > balance))
1717 then throw("you can sell only have at least 10 tokens")
1818 else true
1919 }
2020 else true
2121 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
2222 let transaction = transactionById(extract(mass.assetId))
2323 match transaction {
2424 case issueTx: IssueTransaction =>
2525 (mass.senderPublicKey == issueTx.senderPublicKey)
2626 case _ =>
2727 throw("Bad issue tx type")
2828 }
2929 case _ =>
3030 throw("You only can transfer this token")
3131 }

github/deemru/w8io/026f985 
30.34 ms