tx · 8d9EgVFuajYsCvBpwxzGJuFaZWf8ExFbYtoeNSWT7Q3L
3PGZeXfoHHTVvxbn35Cc9WDYsJDpLVossBG: -0.01400000 Waves
2019.04.18 20:44 [1488420] smart account 3PGZeXfoHHTVvxbn35Cc9WDYsJDpLVossBG > SELF 0.00000000 Waves
{
"type": 13,
"id": "8d9EgVFuajYsCvBpwxzGJuFaZWf8ExFbYtoeNSWT7Q3L",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1555609496979,
"version": 1,
"sender": "3PGZeXfoHHTVvxbn35Cc9WDYsJDpLVossBG",
"senderPublicKey": "FLoFbkYbVTH2Bef5FHLXC7MxWMfkX8ur1aYKbvbYW6nv",
"proofs": [
"4CxLPpAwhNHixxTmPTA88ztf7UYE4wrC9MUpWuGqtfcjhSYU7HFWhmKfYc7Xmmpv7WCuVhWxLXyovcPtNCpsKm2D"
],
"script": "base64:AgQAAAAIdmVyaWZpZWQJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHIFAAAAByRtYXRjaDAEAAAABHRoaXMIBQAAAAJ0cgAAAAZzZW5kZXIEAAAADmFjY291bnRiYWxhbmNlCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQUAAAAEdGhpcwQAAAAIdHhoZWlnaHQJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAR0aGlzAgAAAAh0eGhlaWdodAQAAAAKbWluYmFsYW5jZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAAA2JhbAMDCQAAZgAAAAIFAAAACm1pbmJhbGFuY2UFAAAADmFjY291bnRiYWxhbmNlBgkAAGYAAAACBQA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LCvM2B1T
Next: DGVi2GeNFJhPiZQeJ9X1sbJ1B75adJce8sM2PRNfDeGx
Diff:
Old | New | | Differences |
---|
9 | 9 | | let minbalance = extract(getInteger(this, "bal")) |
---|
10 | 10 | | if (if ((minbalance > accountbalance)) |
---|
11 | 11 | | then true |
---|
12 | | - | else (height > txheight)) |
---|
| 12 | + | else (txheight > height)) |
---|
13 | 13 | | then throw("Transfer not allowed") |
---|
14 | 14 | | else verified |
---|
15 | 15 | | case or: Order => |
---|
16 | 16 | | let this = or.sender |
---|
17 | 17 | | let accountbalance = wavesBalance(this) |
---|
18 | | - | let txheight = extract(getInteger(this, "txheight")) |
---|
19 | | - | let minbalance = extract(getInteger(this, "bal")) |
---|
| 18 | + | let txheight = if (isDefined(getInteger(this, "txheight"))) |
---|
| 19 | + | then extract(getInteger(this, "txheight")) |
---|
| 20 | + | else 0 |
---|
| 21 | + | let minbalance = if (isDefined(getInteger(this, "bal"))) |
---|
| 22 | + | then extract(getInteger(this, "bal")) |
---|
| 23 | + | else 0 |
---|
20 | 24 | | if (if ((minbalance > accountbalance)) |
---|
21 | 25 | | then true |
---|
22 | | - | else (height > txheight)) |
---|
| 26 | + | else (txheight > height)) |
---|
23 | 27 | | then throw("Trading not allowed") |
---|
24 | 28 | | else verified |
---|
25 | 29 | | case other: ExchangeTransaction|SetScriptTransaction|DataTransaction => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let verified = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case tr: TransferTransaction => |
---|
6 | 6 | | let this = tr.sender |
---|
7 | 7 | | let accountbalance = wavesBalance(this) |
---|
8 | 8 | | let txheight = extract(getInteger(this, "txheight")) |
---|
9 | 9 | | let minbalance = extract(getInteger(this, "bal")) |
---|
10 | 10 | | if (if ((minbalance > accountbalance)) |
---|
11 | 11 | | then true |
---|
12 | | - | else (height > txheight)) |
---|
| 12 | + | else (txheight > height)) |
---|
13 | 13 | | then throw("Transfer not allowed") |
---|
14 | 14 | | else verified |
---|
15 | 15 | | case or: Order => |
---|
16 | 16 | | let this = or.sender |
---|
17 | 17 | | let accountbalance = wavesBalance(this) |
---|
18 | | - | let txheight = extract(getInteger(this, "txheight")) |
---|
19 | | - | let minbalance = extract(getInteger(this, "bal")) |
---|
| 18 | + | let txheight = if (isDefined(getInteger(this, "txheight"))) |
---|
| 19 | + | then extract(getInteger(this, "txheight")) |
---|
| 20 | + | else 0 |
---|
| 21 | + | let minbalance = if (isDefined(getInteger(this, "bal"))) |
---|
| 22 | + | then extract(getInteger(this, "bal")) |
---|
| 23 | + | else 0 |
---|
20 | 24 | | if (if ((minbalance > accountbalance)) |
---|
21 | 25 | | then true |
---|
22 | | - | else (height > txheight)) |
---|
| 26 | + | else (txheight > height)) |
---|
23 | 27 | | then throw("Trading not allowed") |
---|
24 | 28 | | else verified |
---|
25 | 29 | | case other: ExchangeTransaction|SetScriptTransaction|DataTransaction => |
---|
26 | 30 | | verified |
---|
27 | 31 | | case _ => |
---|
28 | 32 | | throw() |
---|
29 | 33 | | } |
---|