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