tx · 3qmWMmG8PJVK5RV9qWP5DSDvyfj7CVr1XnTeXy428B73
3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves
2019.03.14 17:18 [535894] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 oooo
{
"type": 15,
"id": "3qmWMmG8PJVK5RV9qWP5DSDvyfj7CVr1XnTeXy428B73",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552573079700,
"version": 1,
"sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc",
"senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T",
"proofs": [
"2mA789nE7tN2YZri6kncM2ASMsou3bikHKRwMW45P7kvHtNdjZvX8ALPfDVX8iZpbf6XSyY2ohHzrGuY9pd3phpA"
],
"assetId": "6QXK7NxXhJtzvABLDKmzYH3V9NfedLAEjSb4Cnvk43wv",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAILPwEAAAACnN0YXJ0UHJpY2UAAAAAAACJVEAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAADwAAAAAAAAAA+gEAAAABHBhc3MAAAAAFO51IwAEAAAAA3ZhbAAAAAAAAIlUQAQAAAAHQVNpZ25lZAIAAAArV0hGWkwyc2VEemM0Y2dIRXk1alQ3TFN0dDV4cHF6dFZmQjU4VnhoaGk4VAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABGRheXMJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAC3N0YXJ0SGVpZ2h0BQAAAAhpbnRlcnZhbAMJAAAAAAAAAgkAAlgAAAABCAUAAAAB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1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgcJAAACAAAAAQIAAAAqVHJhbnNhY3Rpb24gaXMgbm90IGFsbG93ZWQgYnkgdG9rZW4tc2NyaXB0Y2RvSA==",
"chainId": 84,
"height": 535894,
"spentComplexity": 0
}
View: original | compacted
Prev: 5SexWB5iMJa99VKwPcqntF1bFaJadWsJm5Hk1ZAfVyDu
Next: 5pD2pDKCmJMAA8PnVQHAQzANAXNyJPzcVMFAucj9Kkmb
Diff:
Old | New | | Differences |
---|
4 | 4 | | let startPrice = 9000000 |
---|
5 | 5 | | let interval = (24 * 60) |
---|
6 | 6 | | let exp = ((100 * 60) * 1000) |
---|
| 7 | + | let pass = 89900000000 |
---|
| 8 | + | let val = 9000000 |
---|
7 | 9 | | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" |
---|
8 | 10 | | match tx { |
---|
9 | 11 | | case t: ExchangeTransaction => |
---|
| 12 | + | let days = ((height - startHeight) / interval) |
---|
10 | 13 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
11 | 14 | | then true |
---|
12 | | - | else { |
---|
13 | | - | let days = ((height - startHeight) / interval) |
---|
14 | | - | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
15 | | - | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
16 | | - | else throw("001")) |
---|
17 | | - | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
18 | | - | else throw("24")) |
---|
19 | | - | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
20 | | - | else throw("25") |
---|
21 | | - | } |
---|
| 15 | + | else if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
| 16 | + | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
| 17 | + | else throw("001")) |
---|
| 18 | + | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
| 19 | + | else throw("24")) |
---|
| 20 | + | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
| 21 | + | else throw("25") |
---|
22 | 22 | | case t: TransferTransaction => |
---|
23 | 23 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
24 | 24 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let startHeight = 535804 |
---|
4 | 4 | | let startPrice = 9000000 |
---|
5 | 5 | | let interval = (24 * 60) |
---|
6 | 6 | | let exp = ((100 * 60) * 1000) |
---|
| 7 | + | let pass = 89900000000 |
---|
| 8 | + | let val = 9000000 |
---|
7 | 9 | | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" |
---|
8 | 10 | | match tx { |
---|
9 | 11 | | case t: ExchangeTransaction => |
---|
| 12 | + | let days = ((height - startHeight) / interval) |
---|
10 | 13 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
11 | 14 | | then true |
---|
12 | | - | else { |
---|
13 | | - | let days = ((height - startHeight) / interval) |
---|
14 | | - | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
15 | | - | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
16 | | - | else throw("001")) |
---|
17 | | - | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
18 | | - | else throw("24")) |
---|
19 | | - | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
20 | | - | else throw("25") |
---|
21 | | - | } |
---|
| 15 | + | else if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
| 16 | + | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
| 17 | + | else throw("001")) |
---|
| 18 | + | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
| 19 | + | else throw("24")) |
---|
| 20 | + | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
| 21 | + | else throw("25") |
---|
22 | 22 | | case t: TransferTransaction => |
---|
23 | 23 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
24 | 24 | | then true |
---|
25 | 25 | | else false |
---|
26 | 26 | | case t: ReissueTransaction => |
---|
27 | 27 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
28 | 28 | | then true |
---|
29 | 29 | | else false |
---|
30 | 30 | | case t: BurnTransaction => |
---|
31 | 31 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
32 | 32 | | then true |
---|
33 | 33 | | else false |
---|
34 | 34 | | case t: MassTransferTransaction => |
---|
35 | 35 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
36 | 36 | | then true |
---|
37 | 37 | | else false |
---|
38 | 38 | | case t: SetAssetScriptTransaction => |
---|
39 | 39 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
40 | 40 | | then true |
---|
41 | 41 | | else false |
---|
42 | 42 | | case _ => |
---|
43 | 43 | | throw("Transaction is not allowed by token-script") |
---|
44 | 44 | | } |
---|