tx · 83CRM8gcbQV4SwTYJSDm8FqKM5crAQY5Pp3GSQRsQn4y 3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7: -0.01400000 Waves 2019.08.20 16:32 [639521] smart account 3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7 > SELF 0.00000000 Waves
{ "type": 13, "id": "83CRM8gcbQV4SwTYJSDm8FqKM5crAQY5Pp3GSQRsQn4y", "fee": 1400000, "feeAssetId": null, "timestamp": 1566308022154, "version": 1, "sender": "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7", "senderPublicKey": "Gxi9GKByT2CYHqPr6ZTohMDmHRGAgE8uBM6R4QXfvtxK", "proofs": [ "4b3VPTuLy5pw38HbW9FmkJQDRYrL9FUWkM8hMLAgoxfj9SsYTjbnitkcC57hvKRu4LsbEJUou8AfwHetutof3ogG" ], "script": "base64:AAIDAAAAAAAAAAAAAAARAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAIQ0FOQ0VMRUQCAAAACENBTkNFTEVEAAAAAAlEQVBQT1dORVICAAAAIzNONW13dXFUNmRYcGJxd1Q1VktEWHpHSko2YzE0cktxeFM3AAAAAAxPUkFDTEVXQUxMRVQCAAAAIzNOQWNvZVdkVVRXbjhjc1hKUEc0N3YxRmp0amNmcXhiNXR1AAAAAA1XTFRCVVJOV0FMTEVUAgAAACMzTXBDYkREamtTcmZTMVhrUHBtNzFpWmo1RFExUnBCUlJodAAAAAAOV0FWRVNLSVRXQUxMRVQCAAAAIzNNcVBwYldQUnNaRm9UOVg3NHFXb2NVNEJweXBHRVBoaUNuAAAAABFEQVBQQVVUSE9STldBTExFVAIAAAAjM04xeFFlUWNzclk4VXJtNFJkcm1MMmRmb1pBUDRVTHBIMVMAAAAABVdBVkVTAgAAAAVXQVZFUwAAAAAETk9ORQIAAAAETk9ORQAAAAADRkVFAAAAAAAADbugAAAAAANXTFQBAAAAIF3NWDI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ACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYGZR+Xhw==", "chainId": 84, "height": 639521, "spentComplexity": 0 } View: original | compacted Prev: 6JCt3hYKrWfdvC5mqJxXUEawnA8WbHwzxpUnb5LYWKhd Next: 3XoVZ8MtkJErTNwkhHJuv77QgWTAsYo2sDNqZ8N5r75E Diff:
Old | New | Differences | |
---|---|---|---|
100 | 100 | let u = m("contest_currentnumber") | |
101 | 101 | let E = r((("contest_" + toString(u)) + "_status")) | |
102 | 102 | let F = (u + 1) | |
103 | - | let G = (((wavesBalance(this) / 25) / 5000000) * 100000) | |
103 | + | let G = wavesBalance(this) | |
104 | + | let H = (((G / 25) / 5000000) * 100000) | |
104 | 105 | if ((D != d)) | |
105 | 106 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + D) + " dapp owner: ") + d)) | |
106 | 107 | else if ((E == a)) | |
107 | 108 | then throw(("You cannot configure a new Contest while old Contest status is: " + E)) | |
108 | - | else { | |
109 | - | let H = (height + (6 * 1440)) | |
110 | - | WriteSet([DataEntry("contest_currentnumber", F), DataEntry((("contest_" + toString(F)) + "_finishheight"), H), DataEntry((("contest_" + toString(F)) + "_status"), a), DataEntry((("contest_" + toString(F)) + "_betcounter"), 0), DataEntry((("contest_" + toString(F)) + "_betcost"), G)]) | |
111 | - | } | |
109 | + | else if ((100000000 > G)) | |
110 | + | then throw("Balance too low, cannot start a contest.") | |
111 | + | else { | |
112 | + | let I = (height + (6 * 1440)) | |
113 | + | WriteSet([DataEntry("contest_currentnumber", F), DataEntry((("contest_" + toString(F)) + "_finishheight"), I), DataEntry((("contest_" + toString(F)) + "_status"), a), DataEntry((("contest_" + toString(F)) + "_betcounter"), 0), DataEntry((("contest_" + toString(F)) + "_betcost"), H)]) | |
114 | + | } | |
112 | 115 | } | |
113 | 116 | ||
114 | 117 | ||
115 | 118 | ||
116 | 119 | @Callable(A) | |
117 | - | func bet ( | |
120 | + | func bet (J) = { | |
118 | 121 | let D = toBase58String(A.caller.bytes) | |
119 | - | let | |
122 | + | let K = extract(A.payment) | |
120 | 123 | let u = m("contest_currentnumber") | |
121 | - | let | |
122 | - | let | |
124 | + | let L = m((("contest_" + toString(u)) + "_startheight")) | |
125 | + | let I = m((("contest_" + toString(u)) + "_finishheight")) | |
123 | 126 | let E = r((("contest_" + toString(u)) + "_status")) | |
124 | - | let | |
127 | + | let M = m((("contest_" + toString(u)) + "_betcost")) | |
125 | 128 | let C = r((("contest_" + toString(u)) + "_status")) | |
126 | - | let | |
127 | - | if ((height > ( | |
129 | + | let N = r(((("bet_" + toString(u)) + "_") + toString(J))) | |
130 | + | if ((height > (I - (2 * 1440)))) | |
128 | 131 | then throw("You cannot bet anymore at this height.") | |
129 | 132 | else if ((E != a)) | |
130 | 133 | then throw(("Invalid status: you cannot bet now, contest status is: " + E)) | |
131 | - | else if (if (( | |
134 | + | else if (if ((K.assetId != l)) | |
132 | 135 | then true | |
133 | - | else ( | |
134 | - | then throw(((("You must pay at least: " + toString( | |
135 | - | else if (if (( | |
136 | - | then ( | |
136 | + | else (K.amount != M)) | |
137 | + | then throw(((("You must pay at least: " + toString(M)) + " WLT to bet. You paid: ") + toString(K.amount))) | |
138 | + | else if (if ((N != j)) | |
139 | + | then (N != D) | |
137 | 140 | else false) | |
138 | - | then throw((("Another user: " + | |
139 | - | else WriteSet([DataEntry(((("bet_" + toString(u)) + "_") + toString( | |
141 | + | then throw((("Another user: " + N) + " did bet already on this rate.")) | |
142 | + | else WriteSet([DataEntry(((("bet_" + toString(u)) + "_") + toString(J)), D)]) | |
140 | 143 | } | |
141 | 144 | ||
142 | 145 | ||
143 | 146 | ||
144 | 147 | @Callable(A) | |
145 | 148 | func closecontest () = { | |
146 | - | let | |
149 | + | let O = x() | |
147 | 150 | let u = m("contest_currentnumber") | |
148 | - | let | |
149 | - | let | |
151 | + | let P = r(((("bet_" + toString(u)) + "_") + toString(O))) | |
152 | + | let I = m((("contest_" + toString(u)) + "_finishheight")) | |
150 | 153 | let D = toBase58String(A.caller.bytes) | |
151 | - | let | |
154 | + | let G = wavesBalance(this) | |
152 | 155 | let E = r((("contest_" + toString(u)) + "_status")) | |
153 | 156 | let Q = ((assetBalance(this, l) * 85) / 100) | |
154 | 157 | if ((D != d)) | |
155 | 158 | then throw("Only dAPP Owner can Close Contest.") | |
156 | - | else if (if (( | |
159 | + | else if (if ((I > height)) | |
157 | 160 | then (D != d) | |
158 | 161 | else false) | |
159 | - | then throw(((("account: " + D) + ": Cannot close the contest before height:") + toString( | |
162 | + | then throw(((("account: " + D) + ": Cannot close the contest before height:") + toString(I))) | |
160 | 163 | else if ((E != a)) | |
161 | 164 | then throw(("Cannot close a contest in status: " + E)) | |
162 | - | else if (( | |
165 | + | else if ((P != j)) | |
163 | 166 | then { | |
164 | 167 | let R = ((assetBalance(this, l) * 5) / 100) | |
165 | 168 | let S = ((wavesBalance(this) * 99) / 100) | |
166 | - | let T = TransferSet([ScriptTransfer(extract(addressFromString( | |
167 | - | ScriptResult(WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), | |
169 | + | let T = TransferSet([ScriptTransfer(extract(addressFromString(P)), S, unit), ScriptTransfer(extract(addressFromString(e)), R, l), ScriptTransfer(extract(addressFromString(g)), R, l), ScriptTransfer(extract(addressFromString(f)), Q, l), ScriptTransfer(extract(addressFromString(h)), Q, l)]) | |
170 | + | ScriptResult(WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), P), DataEntry((("contest_" + toString(u)) + "_currencyrate"), O), DataEntry((("contest_" + toString(u)) + "_prize"), S), DataEntry((("contest_" + toString(u)) + "_wltburned"), Q)]), T) | |
168 | 171 | } | |
169 | - | else WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), | |
172 | + | else WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), P), DataEntry((("contest_" + toString(u)) + "_currencyrate"), O), DataEntry((("contest_" + toString(u)) + "_prize"), 0), DataEntry((("contest_" + toString(u)) + "_wltburned"), Q)]) | |
170 | 173 | } | |
171 | 174 | ||
172 | 175 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "RUNNING" | |
5 | 5 | ||
6 | 6 | let b = "CLOSED" | |
7 | 7 | ||
8 | 8 | let c = "CANCELED" | |
9 | 9 | ||
10 | 10 | let d = "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7" | |
11 | 11 | ||
12 | 12 | let e = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu" | |
13 | 13 | ||
14 | 14 | let f = "3MpCbDDjkSrfS1XkPpm71iZj5DQ1RpBRRht" | |
15 | 15 | ||
16 | 16 | let g = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn" | |
17 | 17 | ||
18 | 18 | let h = "3N1xQeQcsrY8Urm4RdrmL2dfoZAP4ULpH1S" | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "NONE" | |
23 | 23 | ||
24 | 24 | let k = 900000 | |
25 | 25 | ||
26 | 26 | let l = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7' | |
27 | 27 | ||
28 | 28 | func m (n) = { | |
29 | 29 | let o = { | |
30 | 30 | let p = getInteger(this, n) | |
31 | 31 | if ($isInstanceOf(p, "Int")) | |
32 | 32 | then { | |
33 | 33 | let q = p | |
34 | 34 | q | |
35 | 35 | } | |
36 | 36 | else 0 | |
37 | 37 | } | |
38 | 38 | o | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func r (n) = { | |
43 | 43 | let s = { | |
44 | 44 | let p = getString(this, n) | |
45 | 45 | if ($isInstanceOf(p, "String")) | |
46 | 46 | then { | |
47 | 47 | let q = p | |
48 | 48 | q | |
49 | 49 | } | |
50 | 50 | else j | |
51 | 51 | } | |
52 | 52 | s | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func t () = { | |
57 | 57 | let u = m("contest_currentnumber") | |
58 | 58 | r((("contest_" + toString(u)) + "_status")) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func v (w) = { | |
63 | 63 | let u = m("contest_currentnumber") | |
64 | 64 | r((((("bet_" + toString(u)) + "_") + toString(w)) + "_owner")) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func x () = { | |
69 | 69 | let y = extract(addressFromString(e)) | |
70 | 70 | let z = { | |
71 | 71 | let p = getInteger(y, "waves_usd_2") | |
72 | 72 | if ($isInstanceOf(p, "Int")) | |
73 | 73 | then { | |
74 | 74 | let q = p | |
75 | 75 | q | |
76 | 76 | } | |
77 | 77 | else 0 | |
78 | 78 | } | |
79 | 79 | z | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | @Callable(A) | |
84 | 84 | func setContestStatus (B,C) = { | |
85 | 85 | let D = toBase58String(A.caller.bytes) | |
86 | 86 | if ((D != d)) | |
87 | 87 | then throw("Only dAPP Owner can set Contest Status.") | |
88 | 88 | else if (if ((C != c)) | |
89 | 89 | then (C != b) | |
90 | 90 | else false) | |
91 | 91 | then throw(("Invalid status: " + C)) | |
92 | 92 | else WriteSet([DataEntry((("contest_" + toString(B)) + "_status"), C)]) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(A) | |
98 | 98 | func setContestConfiguration () = { | |
99 | 99 | let D = toBase58String(A.caller.bytes) | |
100 | 100 | let u = m("contest_currentnumber") | |
101 | 101 | let E = r((("contest_" + toString(u)) + "_status")) | |
102 | 102 | let F = (u + 1) | |
103 | - | let G = (((wavesBalance(this) / 25) / 5000000) * 100000) | |
103 | + | let G = wavesBalance(this) | |
104 | + | let H = (((G / 25) / 5000000) * 100000) | |
104 | 105 | if ((D != d)) | |
105 | 106 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + D) + " dapp owner: ") + d)) | |
106 | 107 | else if ((E == a)) | |
107 | 108 | then throw(("You cannot configure a new Contest while old Contest status is: " + E)) | |
108 | - | else { | |
109 | - | let H = (height + (6 * 1440)) | |
110 | - | WriteSet([DataEntry("contest_currentnumber", F), DataEntry((("contest_" + toString(F)) + "_finishheight"), H), DataEntry((("contest_" + toString(F)) + "_status"), a), DataEntry((("contest_" + toString(F)) + "_betcounter"), 0), DataEntry((("contest_" + toString(F)) + "_betcost"), G)]) | |
111 | - | } | |
109 | + | else if ((100000000 > G)) | |
110 | + | then throw("Balance too low, cannot start a contest.") | |
111 | + | else { | |
112 | + | let I = (height + (6 * 1440)) | |
113 | + | WriteSet([DataEntry("contest_currentnumber", F), DataEntry((("contest_" + toString(F)) + "_finishheight"), I), DataEntry((("contest_" + toString(F)) + "_status"), a), DataEntry((("contest_" + toString(F)) + "_betcounter"), 0), DataEntry((("contest_" + toString(F)) + "_betcost"), H)]) | |
114 | + | } | |
112 | 115 | } | |
113 | 116 | ||
114 | 117 | ||
115 | 118 | ||
116 | 119 | @Callable(A) | |
117 | - | func bet ( | |
120 | + | func bet (J) = { | |
118 | 121 | let D = toBase58String(A.caller.bytes) | |
119 | - | let | |
122 | + | let K = extract(A.payment) | |
120 | 123 | let u = m("contest_currentnumber") | |
121 | - | let | |
122 | - | let | |
124 | + | let L = m((("contest_" + toString(u)) + "_startheight")) | |
125 | + | let I = m((("contest_" + toString(u)) + "_finishheight")) | |
123 | 126 | let E = r((("contest_" + toString(u)) + "_status")) | |
124 | - | let | |
127 | + | let M = m((("contest_" + toString(u)) + "_betcost")) | |
125 | 128 | let C = r((("contest_" + toString(u)) + "_status")) | |
126 | - | let | |
127 | - | if ((height > ( | |
129 | + | let N = r(((("bet_" + toString(u)) + "_") + toString(J))) | |
130 | + | if ((height > (I - (2 * 1440)))) | |
128 | 131 | then throw("You cannot bet anymore at this height.") | |
129 | 132 | else if ((E != a)) | |
130 | 133 | then throw(("Invalid status: you cannot bet now, contest status is: " + E)) | |
131 | - | else if (if (( | |
134 | + | else if (if ((K.assetId != l)) | |
132 | 135 | then true | |
133 | - | else ( | |
134 | - | then throw(((("You must pay at least: " + toString( | |
135 | - | else if (if (( | |
136 | - | then ( | |
136 | + | else (K.amount != M)) | |
137 | + | then throw(((("You must pay at least: " + toString(M)) + " WLT to bet. You paid: ") + toString(K.amount))) | |
138 | + | else if (if ((N != j)) | |
139 | + | then (N != D) | |
137 | 140 | else false) | |
138 | - | then throw((("Another user: " + | |
139 | - | else WriteSet([DataEntry(((("bet_" + toString(u)) + "_") + toString( | |
141 | + | then throw((("Another user: " + N) + " did bet already on this rate.")) | |
142 | + | else WriteSet([DataEntry(((("bet_" + toString(u)) + "_") + toString(J)), D)]) | |
140 | 143 | } | |
141 | 144 | ||
142 | 145 | ||
143 | 146 | ||
144 | 147 | @Callable(A) | |
145 | 148 | func closecontest () = { | |
146 | - | let | |
149 | + | let O = x() | |
147 | 150 | let u = m("contest_currentnumber") | |
148 | - | let | |
149 | - | let | |
151 | + | let P = r(((("bet_" + toString(u)) + "_") + toString(O))) | |
152 | + | let I = m((("contest_" + toString(u)) + "_finishheight")) | |
150 | 153 | let D = toBase58String(A.caller.bytes) | |
151 | - | let | |
154 | + | let G = wavesBalance(this) | |
152 | 155 | let E = r((("contest_" + toString(u)) + "_status")) | |
153 | 156 | let Q = ((assetBalance(this, l) * 85) / 100) | |
154 | 157 | if ((D != d)) | |
155 | 158 | then throw("Only dAPP Owner can Close Contest.") | |
156 | - | else if (if (( | |
159 | + | else if (if ((I > height)) | |
157 | 160 | then (D != d) | |
158 | 161 | else false) | |
159 | - | then throw(((("account: " + D) + ": Cannot close the contest before height:") + toString( | |
162 | + | then throw(((("account: " + D) + ": Cannot close the contest before height:") + toString(I))) | |
160 | 163 | else if ((E != a)) | |
161 | 164 | then throw(("Cannot close a contest in status: " + E)) | |
162 | - | else if (( | |
165 | + | else if ((P != j)) | |
163 | 166 | then { | |
164 | 167 | let R = ((assetBalance(this, l) * 5) / 100) | |
165 | 168 | let S = ((wavesBalance(this) * 99) / 100) | |
166 | - | let T = TransferSet([ScriptTransfer(extract(addressFromString( | |
167 | - | ScriptResult(WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), | |
169 | + | let T = TransferSet([ScriptTransfer(extract(addressFromString(P)), S, unit), ScriptTransfer(extract(addressFromString(e)), R, l), ScriptTransfer(extract(addressFromString(g)), R, l), ScriptTransfer(extract(addressFromString(f)), Q, l), ScriptTransfer(extract(addressFromString(h)), Q, l)]) | |
170 | + | ScriptResult(WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), P), DataEntry((("contest_" + toString(u)) + "_currencyrate"), O), DataEntry((("contest_" + toString(u)) + "_prize"), S), DataEntry((("contest_" + toString(u)) + "_wltburned"), Q)]), T) | |
168 | 171 | } | |
169 | - | else WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), | |
172 | + | else WriteSet([DataEntry((("contest_" + toString(u)) + "_status"), b), DataEntry((("contest_" + toString(u)) + "_winner"), P), DataEntry((("contest_" + toString(u)) + "_currencyrate"), O), DataEntry((("contest_" + toString(u)) + "_prize"), 0), DataEntry((("contest_" + toString(u)) + "_wltburned"), Q)]) | |
170 | 173 | } | |
171 | 174 | ||
172 | 175 | ||
173 | 176 | @Verifier(U) | |
174 | 177 | func V () = { | |
175 | 178 | let p = U | |
176 | 179 | if (if ($isInstanceOf(p, "SetScriptTransaction")) | |
177 | 180 | then true | |
178 | 181 | else $isInstanceOf(p, "DataTransaction")) | |
179 | 182 | then sigVerify(U.bodyBytes, U.proofs[0], U.senderPublicKey) | |
180 | 183 | else if ($isInstanceOf(p, "InvokeScriptTransaction")) | |
181 | 184 | then true | |
182 | 185 | else true | |
183 | 186 | } | |
184 | 187 |
github/deemru/w8io/169f3d6 86.28 ms ◑