tx · E71M9Mx8MS8KH4rxmnusALEAkR8X4UvEeL6Eh7nQ3r4A
3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx: -1.00000000 Waves
2019.02.21 23:37 [505507] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG
{
"type": 15,
"id": "E71M9Mx8MS8KH4rxmnusALEAkR8X4UvEeL6Eh7nQ3r4A",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550781482546,
"version": 1,
"sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx",
"senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg",
"proofs": [
"6VhG2fYBtYUUVxPxLAXqThSMNvXbF7CxgqvBN8SFcDNLp5THnNMLL1MgDiC3BTAxh6MXtWicXQu1AzEtCZwi3SF"
],
"assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg",
"script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAWWgvAAQAAAAFcHJpY2UAAAAAAAvrwgEEAAAADmFkbWluUHVibGljS2V5AQAAABoBVELQ/DEmG2cVX3BF+geY7VLWSC9ksc87jQQAAAAFQlRDSWQBAAAAIM2MeFvSXndO3rFdGs9f2vkJp1+jY/rXzNkl+WiQ+gpnBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkDBQAAAARzZWxsBAAAAAZwZXJtaXQJAAH0AAAAAwgI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ipe7CNUuhupgxm
Next: 5Kaz1HXdndaC78xcQUjvWQqGDmASGwNcYpRpCjGyktu9
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let minimumWavesBalance = 1500000000 |
---|
4 | | - | let price = 100000001 |
---|
5 | | - | let pricemin = 200000001 |
---|
| 4 | + | let price = 200000001 |
---|
6 | 5 | | let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx' |
---|
7 | 6 | | let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg' |
---|
8 | 7 | | match tx { |
---|
|
12 | 11 | | then { |
---|
13 | 12 | | let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey) |
---|
14 | 13 | | if ((minimumWavesBalance > e.sellOrder.amount)) |
---|
15 | | - | then throw("you cannot sell less than 15 tokens") |
---|
| 14 | + | then throw("To sell a token you need to buy 5 IRIS") |
---|
16 | 15 | | else if ((price > e.sellOrder.price)) |
---|
17 | | - | then throw("you cannot sell for less than 1.00000001") |
---|
| 16 | + | then throw("You cannot sell for less than 2.00000001") |
---|
18 | 17 | | else true |
---|
19 | 18 | | } |
---|
20 | 19 | | else true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let minimumWavesBalance = 1500000000 |
---|
4 | | - | let price = 100000001 |
---|
5 | | - | let pricemin = 200000001 |
---|
| 4 | + | let price = 200000001 |
---|
6 | 5 | | let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx' |
---|
7 | 6 | | let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg' |
---|
8 | 7 | | match tx { |
---|
9 | 8 | | case e: ExchangeTransaction => |
---|
10 | 9 | | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) |
---|
11 | 10 | | if (sell) |
---|
12 | 11 | | then { |
---|
13 | 12 | | let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey) |
---|
14 | 13 | | if ((minimumWavesBalance > e.sellOrder.amount)) |
---|
15 | | - | then throw("you cannot sell less than 15 tokens") |
---|
| 14 | + | then throw("To sell a token you need to buy 5 IRIS") |
---|
16 | 15 | | else if ((price > e.sellOrder.price)) |
---|
17 | | - | then throw("you cannot sell for less than 1.00000001") |
---|
| 16 | + | then throw("You cannot sell for less than 2.00000001") |
---|
18 | 17 | | else true |
---|
19 | 18 | | } |
---|
20 | 19 | | else true |
---|
21 | 20 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
22 | 21 | | let transaction = transactionById(extract(mass.assetId)) |
---|
23 | 22 | | match transaction { |
---|
24 | 23 | | case issueTx: IssueTransaction => |
---|
25 | 24 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
26 | 25 | | case _ => |
---|
27 | 26 | | throw("Bad issue tx type") |
---|
28 | 27 | | } |
---|
29 | 28 | | case _ => |
---|
30 | 29 | | throw("you cannot transfer this token") |
---|
31 | 30 | | } |
---|