tx · GYTiJAxWcCdHUiz43vDvqQBW3AxHmbBWZEAyMZ6HRbsC 3Mpfd3hihdPKUHqWqC9KYjcM18BKw91VkKe: -0.01400000 Waves 2019.01.29 10:10 [471225] smart account 3Mpfd3hihdPKUHqWqC9KYjcM18BKw91VkKe > SELF 0.00000000 Waves
{ "type": 13, "id": "GYTiJAxWcCdHUiz43vDvqQBW3AxHmbBWZEAyMZ6HRbsC", "fee": 1400000, "feeAssetId": null, "timestamp": 1548745933012, "version": 1, "sender": "3Mpfd3hihdPKUHqWqC9KYjcM18BKw91VkKe", "senderPublicKey": "4f1JNnYPBjnrCyRNwNpfg2zg6V34QG4EBF8a2o2yz9rg", "proofs": [ "3tmsuwtyEa9zf1PqtExbCkYVdCvjRX1N5zUMLdXX1MPcMcYhWRMu58wjUWPAJV2XdN1eucKqFJU8L8ie3X7zqEwb" ], "script": "base64:AQQAAAAMbWF4VGltZVRvQmV0AAAAAWinm5GoBAAAABBtaW5UaW1lVG9UcmFkaW5nAAAAAWiswe2oBAAAABBtYXhUaW1lVG9UcmFkaW5nAAAAAWiswtgIBAAAAANmZWUAAAAAAACYloAEAAAACGRlY2ltYWxzAAAAAAAAAAACBAAAAAhtdWx0aXBseQAAAAAAAAAAZAQAAAAKdG90YWxNb25leQAAAAAAAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDADAwkAAGcAAAACBQAAAAxtYXhUaW1lVG9CZXQIBQAAAAJ0eAAAAAl0aW1lc3RhbXAJAQAAAAlpc0RlZmluZWQAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAViZXRfcwcEAAAAC3BheW1lbnRUeElkCQEAAAAHZXh0cmFjdAAAAAEJAAQTAAAAAggFAAAAAmR0AAAABGRhdGECAAAAC3BheW1lbnRUeElkBwMDCQAAZgAAAAIIBQAAAAJ0eAAAAAl0aW1lc3RhbXAFAAAAEG1heFRpbWVUb1RyYWRpbmcJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAggFAAAAAnR4AAAABnNlbmRlcgIAAAALdHJhZGluZ1R4SWQHBAAAAAt0cmFkaW5nVHhJZAkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAt0cmFkaW5nVHhJZAQAAAAJdHJhZGluZ1R4CQAD6AAAAAEJAAJZAAAAAQUAAAALdHJhZGluZ1R4SWQEAAAACHByaWNlV2luCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAACHByaWNlV2luBAAAAAckbWF0Y2gxBQAAAAl0cmFkaW5nVHgDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAACGV4Y2hhbmdlBQAAAAckbWF0Y2gxAwMJAAAAAAAAAgUAAAAIcHJpY2VXaW4IBQAAAAhleGNoYW5nZQAAAAVwcmljZQkAAGcAAAACCAUAAAAIZXhjaGFuZ2UAAAAJdGltZXN0YW1wBQAAABBtaW5UaW1lVG9UcmFkaW5nBwkAAGcAAAACBQAAABBtYXhUaW1lVG9UcmFkaW5nCAUAAAAIZXhjaGFuZ2UAAAAJdGltZXN0YW1wBwcDCQEAAAAJaXNEZWZpbmVkAAAAAQkABB0AAAACCAUAAAACdHgAAAAGc2VuZGVyAgAAAAt0cmFkaW5nVHhJZAYHBuXObSQ=", "chainId": 84, "height": 471225, "spentComplexity": 0 } View: original | compacted Prev: 4gZHg2e8srLsPN9whLsPuEbeniD4gVzrnSriQKMEXo3p Next: fANYXGefpZZxfszJTVdXjxFiv7HkRrzvA6Aw3CTEL27 Diff:
Old | New | Differences | |
---|---|---|---|
14 | 14 | else false) | |
15 | 15 | then { | |
16 | 16 | let paymentTxId = extract(getString(dt.data, "paymentTxId")) | |
17 | - | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
18 | - | let betGroup = extract(getString(dt.data, "bet_s")) | |
19 | - | let dtBetSummary = extract(getInteger(dt.data, betGroup)) | |
20 | - | let betSummary = if (isDefined(getInteger(tx.sender, betGroup))) | |
21 | - | then extract(getInteger(tx.sender, betGroup)) | |
22 | - | else 0 | |
23 | - | let vBet = extract(getInteger(dt.data, "bet_v")) | |
24 | - | let iBet = extract(getInteger(dt.data, "bet_i")) | |
25 | - | let dBet = extract(getInteger(dt.data, "bet_d")) | |
26 | - | let c = (decimals - size(toString(dBet))) | |
27 | - | let tBet = (((toString(iBet) + ".") + (if ((c == 1)) | |
28 | - | then "0" | |
29 | - | else if ((c == 2)) | |
30 | - | then "00" | |
31 | - | else if ((c == 3)) | |
32 | - | then "000" | |
33 | - | else if ((c == 4)) | |
34 | - | then "0000" | |
35 | - | else if ((c == 5)) | |
36 | - | then "00000" | |
37 | - | else if ((c == 6)) | |
38 | - | then "000000" | |
39 | - | else if ((c == 7)) | |
40 | - | then "0000000" | |
41 | - | else "")) + toString(dBet)) | |
42 | - | match paymentTx { | |
43 | - | case payment: TransferTransaction => | |
44 | - | if (if (if (if (!(isDefined(getString(tx.sender, paymentTxId)))) | |
45 | - | then (payment.recipient == tx.sender) | |
46 | - | else false) | |
47 | - | then (payment.amount > fee) | |
48 | - | else false) | |
49 | - | then (extract(getInteger(dt.data, "totalMoney")) == (totalMoney + (payment.amount - fee))) | |
50 | - | else false) | |
51 | - | then (vBet == ((iBet * multiply) + dBet)) | |
52 | - | else false | |
53 | - | case _ => | |
54 | - | false | |
55 | - | } | |
17 | + | false | |
56 | 18 | } | |
57 | 19 | else if (if ((tx.timestamp > maxTimeToTrading)) | |
58 | 20 | then !(isDefined(getString(tx.sender, "tradingTxId"))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let maxTimeToBet = 1549000217000 | |
4 | 4 | let minTimeToTrading = 1549086617000 | |
5 | 5 | let maxTimeToTrading = 1549086677000 | |
6 | 6 | let fee = 10000000 | |
7 | 7 | let decimals = 2 | |
8 | 8 | let multiply = 100 | |
9 | 9 | let totalMoney = 0 | |
10 | 10 | match tx { | |
11 | 11 | case dt: DataTransaction => | |
12 | 12 | if (if ((maxTimeToBet >= tx.timestamp)) | |
13 | 13 | then isDefined(getString(dt.data, "bet_s")) | |
14 | 14 | else false) | |
15 | 15 | then { | |
16 | 16 | let paymentTxId = extract(getString(dt.data, "paymentTxId")) | |
17 | - | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
18 | - | let betGroup = extract(getString(dt.data, "bet_s")) | |
19 | - | let dtBetSummary = extract(getInteger(dt.data, betGroup)) | |
20 | - | let betSummary = if (isDefined(getInteger(tx.sender, betGroup))) | |
21 | - | then extract(getInteger(tx.sender, betGroup)) | |
22 | - | else 0 | |
23 | - | let vBet = extract(getInteger(dt.data, "bet_v")) | |
24 | - | let iBet = extract(getInteger(dt.data, "bet_i")) | |
25 | - | let dBet = extract(getInteger(dt.data, "bet_d")) | |
26 | - | let c = (decimals - size(toString(dBet))) | |
27 | - | let tBet = (((toString(iBet) + ".") + (if ((c == 1)) | |
28 | - | then "0" | |
29 | - | else if ((c == 2)) | |
30 | - | then "00" | |
31 | - | else if ((c == 3)) | |
32 | - | then "000" | |
33 | - | else if ((c == 4)) | |
34 | - | then "0000" | |
35 | - | else if ((c == 5)) | |
36 | - | then "00000" | |
37 | - | else if ((c == 6)) | |
38 | - | then "000000" | |
39 | - | else if ((c == 7)) | |
40 | - | then "0000000" | |
41 | - | else "")) + toString(dBet)) | |
42 | - | match paymentTx { | |
43 | - | case payment: TransferTransaction => | |
44 | - | if (if (if (if (!(isDefined(getString(tx.sender, paymentTxId)))) | |
45 | - | then (payment.recipient == tx.sender) | |
46 | - | else false) | |
47 | - | then (payment.amount > fee) | |
48 | - | else false) | |
49 | - | then (extract(getInteger(dt.data, "totalMoney")) == (totalMoney + (payment.amount - fee))) | |
50 | - | else false) | |
51 | - | then (vBet == ((iBet * multiply) + dBet)) | |
52 | - | else false | |
53 | - | case _ => | |
54 | - | false | |
55 | - | } | |
17 | + | false | |
56 | 18 | } | |
57 | 19 | else if (if ((tx.timestamp > maxTimeToTrading)) | |
58 | 20 | then !(isDefined(getString(tx.sender, "tradingTxId"))) | |
59 | 21 | else false) | |
60 | 22 | then { | |
61 | 23 | let tradingTxId = extract(getString(dt.data, "tradingTxId")) | |
62 | 24 | let tradingTx = transactionById(fromBase58String(tradingTxId)) | |
63 | 25 | let priceWin = extract(getInteger(dt.data, "priceWin")) | |
64 | 26 | match tradingTx { | |
65 | 27 | case exchange: ExchangeTransaction => | |
66 | 28 | if (if ((priceWin == exchange.price)) | |
67 | 29 | then (exchange.timestamp >= minTimeToTrading) | |
68 | 30 | else false) | |
69 | 31 | then (maxTimeToTrading >= exchange.timestamp) | |
70 | 32 | else false | |
71 | 33 | case _ => | |
72 | 34 | false | |
73 | 35 | } | |
74 | 36 | } | |
75 | 37 | else if (isDefined(getString(tx.sender, "tradingTxId"))) | |
76 | 38 | then true | |
77 | 39 | else false | |
78 | 40 | case _ => | |
79 | 41 | true | |
80 | 42 | } |
github/deemru/w8io/169f3d6 44.26 ms ◑