tx · Dh4GdsfEqJ9FUhmMyhkAJPrFWhmQXGVKFVKkLzhGaF4W
3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb: -1.00000000 Waves
2019.02.12 16:31 [491998] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 tenpe
{
"type": 15,
"id": "Dh4GdsfEqJ9FUhmMyhkAJPrFWhmQXGVKFVKkLzhGaF4W",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1549978331228,
"version": 1,
"sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb",
"senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf",
"proofs": [
"3oXWd8ZPN3xt3nJWSkqdZiToZDiBS5Xbjce94USGA7e3w3ACp7A2hra4HtDw65XVyoUavjFpKbSuiitmfZSrgFHg"
],
"assetId": "EY83fPjcXEkETodcmME3LwnTnMoVTagaiXty7gXN3y34",
"script": "base64:AQQAAAAKc3RhcnRCbG9jawAAAAAAABUmlwQAAAAFUHJpY2UAAAAAAAABhqAEAAAABm9uZWRheQAAAAAAAAAFoAQAAAAIbWlucHJpY2UAAAAAAAX14QAEAAAACG1heHByaWNlAAAAAAAANu6ABAAAAAptYXhhbW1vdW50AAAAAAA7msoABAAAAAptaW5hbW1vdW50AAAAAAAF9eEABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEZGF5cwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAAKc3RhcnRCbG9jawUAAAAGb25lZGF5AwkAAGYAAAACBQAAAAptaW5hbW1vdW50CAUAAAABZQAAAAZhbW91bnQJAAACAAAAAQIAAAAqWW91IGhhdmUgdG8gcGF5IDUgV0FWRVMgdG8gYnVybiB0aGlzIHRva2VuBgMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgfjqfQB",
"chainId": 84,
"height": 491998,
"spentComplexity": 0
}
View: original | compacted
Prev: 9AjEnSVi7Sxu55pkVsMfWaVcEFtU5EUjR6T7iRr4daJC
Next: HWFHwMEAeXEd88jqin9i9en3iUX8bGYPXQfqc6eRAuV4
Diff:
Old | New | | Differences |
---|
11 | 11 | | case e: ExchangeTransaction => |
---|
12 | 12 | | let days = ((height - startBlock) / oneday) |
---|
13 | 13 | | if ((minammount > e.amount)) |
---|
14 | | - | then false |
---|
15 | | - | else if ((e.amount > maxammount)) |
---|
16 | | - | then false |
---|
17 | | - | else true |
---|
| 14 | + | then throw("You have to pay 5 WAVES to burn this token") |
---|
| 15 | + | else true |
---|
18 | 16 | | case tx: ExchangeTransaction|MassTransferTransaction|TransferTransaction|SetAssetScriptTransaction|BurnTransaction => |
---|
19 | 17 | | true |
---|
20 | 18 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let startBlock = 1386135 |
---|
4 | 4 | | let Price = 100000 |
---|
5 | 5 | | let oneday = 1440 |
---|
6 | 6 | | let minprice = 100000000 |
---|
7 | 7 | | let maxprice = 3600000 |
---|
8 | 8 | | let maxammount = 1000000000 |
---|
9 | 9 | | let minammount = 100000000 |
---|
10 | 10 | | match tx { |
---|
11 | 11 | | case e: ExchangeTransaction => |
---|
12 | 12 | | let days = ((height - startBlock) / oneday) |
---|
13 | 13 | | if ((minammount > e.amount)) |
---|
14 | | - | then false |
---|
15 | | - | else if ((e.amount > maxammount)) |
---|
16 | | - | then false |
---|
17 | | - | else true |
---|
| 14 | + | then throw("You have to pay 5 WAVES to burn this token") |
---|
| 15 | + | else true |
---|
18 | 16 | | case tx: ExchangeTransaction|MassTransferTransaction|TransferTransaction|SetAssetScriptTransaction|BurnTransaction => |
---|
19 | 17 | | true |
---|
20 | 18 | | case _ => |
---|
21 | 19 | | false |
---|
22 | 20 | | } |
---|