tx · A59m9TkWsdq8XMLuAPkp5J3tmyLxHnrkBBBJe1j1iJVE 3N1zSHip5wWfsPb99VmKFraNCK8PDYNMs9q: -0.01400000 Waves 2020.01.04 20:42 [839448] smart account 3N1zSHip5wWfsPb99VmKFraNCK8PDYNMs9q > SELF 0.00000000 Waves
{ "type": 13, "id": "A59m9TkWsdq8XMLuAPkp5J3tmyLxHnrkBBBJe1j1iJVE", "fee": 1400000, "feeAssetId": null, "timestamp": 1578159739880, "version": 1, "sender": "3N1zSHip5wWfsPb99VmKFraNCK8PDYNMs9q", "senderPublicKey": "EKfJMPRBrxRDCdVMUpFWBz7yEsWevK5TiGhmgLQ5XBrN", "proofs": [ "3fTUePbwy2tUyhtar5ZNbCMSwQrLkjH1YA656oJJgvtA2XAouZ5WYL1rM8vdpmxAy7Uq3anr1GVv9dsgsX1AatKM" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAABAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAUAAAAHcTJzdGFydAU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BQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDJhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAClldmVudCBkaWQgbm90IGhhcHBlbiBvciB5b3UgaGF2ZSB6ZXJvIHdpbgAAAAAoWhWx", "chainId": 84, "height": 839448, "spentComplexity": 0 } View: original | compacted Prev: DnfLmb52u64y3KYkUy1oLsCN6yJ8GtZqinFBY6H9WQLD Next: B88YEHk2ViGK3rqsEyWJ8wNxHWZSZYFaBABfiqoPmUw4 Diff:
Old | New | Differences | |
---|---|---|---|
51 | 51 | let k = (((1 * 100000) - (q * 1000)) / (betMax - betThreshold)) | |
52 | 52 | let b = ((1 * 100000) - (k * betMax)) | |
53 | 53 | let qCorrected = (((betAmount * k) + b) / 1000) | |
54 | - | if (true) | |
55 | - | then throw(toString(qCorrected)) | |
56 | - | else qCorrected | |
54 | + | qCorrected | |
57 | 55 | } | |
58 | 56 | ||
59 | 57 | ||
157 | 155 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
158 | 156 | let q1Next = q1Nextq2Next[0] | |
159 | 157 | let q2Next = q1Nextq2Next[1] | |
160 | - | WriteSet([DataEntry((toString(contextObj.caller) + "_event2DebtForThisPlayer"), event2DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
158 | + | if (true) | |
159 | + | then throw(toString(q1Next)) | |
160 | + | else WriteSet([DataEntry((toString(contextObj.caller) + "_event2DebtForThisPlayer"), event2DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
161 | 161 | } | |
162 | 162 | else throw("incorrect bet amount") | |
163 | 163 | else throw("incorrect event id") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let q1start = 190 | |
5 | 5 | ||
6 | 6 | let q2start = 190 | |
7 | 7 | ||
8 | 8 | let vig = 52 | |
9 | 9 | ||
10 | 10 | let riskAmount = 1000 | |
11 | 11 | ||
12 | 12 | let betThreshold = 10 | |
13 | 13 | ||
14 | 14 | let betMin = 1 | |
15 | 15 | ||
16 | 16 | let betMax = 100 | |
17 | 17 | ||
18 | 18 | func q1Extract () = { | |
19 | 19 | let q1 = if (isDefined(getInteger(this, "q1_next"))) | |
20 | 20 | then getIntegerValue(this, "q1_next") | |
21 | 21 | else q1start | |
22 | 22 | q1 | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func q2Extract () = { | |
27 | 27 | let q2 = if (isDefined(getInteger(this, "q2_next"))) | |
28 | 28 | then getIntegerValue(this, "q2_next") | |
29 | 29 | else q2start | |
30 | 30 | q2 | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func debtAmount1Extract () = { | |
35 | 35 | let debtAmount1 = if (isDefined(getInteger(this, "debtAmount1"))) | |
36 | 36 | then getIntegerValue(this, "debtAmount1") | |
37 | 37 | else 0 | |
38 | 38 | debtAmount1 | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func debtAmount2Extract () = { | |
43 | 43 | let debtAmount2 = if (isDefined(getInteger(this, "debtAmount2"))) | |
44 | 44 | then getIntegerValue(this, "debtAmount2") | |
45 | 45 | else 0 | |
46 | 46 | debtAmount2 | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func calcCoefIfBigBet (event,betAmount,q) = { | |
51 | 51 | let k = (((1 * 100000) - (q * 1000)) / (betMax - betThreshold)) | |
52 | 52 | let b = ((1 * 100000) - (k * betMax)) | |
53 | 53 | let qCorrected = (((betAmount * k) + b) / 1000) | |
54 | - | if (true) | |
55 | - | then throw(toString(qCorrected)) | |
56 | - | else qCorrected | |
54 | + | qCorrected | |
57 | 55 | } | |
58 | 56 | ||
59 | 57 | ||
60 | 58 | func anothercoef (q,vig) = { | |
61 | 59 | let anothercoef = pow(((vig + 1000) - (100000 / q)), 0, -1, 0, 5, DOWN) | |
62 | 60 | anothercoef | |
63 | 61 | } | |
64 | 62 | ||
65 | 63 | ||
66 | 64 | func actualNewCoefs (betAmount,debtAmount1,debtAmount2) = if ((0 > debtAmount1)) | |
67 | 65 | then { | |
68 | 66 | let k = (((1 * 1000000) - (q1start * 10000)) / riskAmount) | |
69 | 67 | let b = ((1 * 1000000) - (k * riskAmount)) | |
70 | 68 | let q1 = (((-(k) * debtAmount1) + b) / 10000) | |
71 | 69 | let q2 = anothercoef(q1, vig) | |
72 | 70 | [q1, q2] | |
73 | 71 | } | |
74 | 72 | else if ((debtAmount1 > 0)) | |
75 | 73 | then { | |
76 | 74 | let k = (((1 * 1000000) - (q2start * 10000)) / riskAmount) | |
77 | 75 | let b = ((1 * 1000000) - (k * riskAmount)) | |
78 | 76 | let q2 = (((-(k) * debtAmount2) + b) / 10000) | |
79 | 77 | let q1 = anothercoef(q2, vig) | |
80 | 78 | [q1, q2] | |
81 | 79 | } | |
82 | 80 | else { | |
83 | 81 | let q1 = q1start | |
84 | 82 | let q2 = q2start | |
85 | 83 | [q1, q2] | |
86 | 84 | } | |
87 | 85 | ||
88 | 86 | ||
89 | 87 | @Callable(contextObj) | |
90 | 88 | func bet (event) = { | |
91 | 89 | let betAmount = match contextObj.payment { | |
92 | 90 | case p: AttachedPayment => | |
93 | 91 | if ((betMin > p.amount)) | |
94 | 92 | then throw("low payment") | |
95 | 93 | else p.amount | |
96 | 94 | case _ => | |
97 | 95 | throw("Payment not attached") | |
98 | 96 | } | |
99 | 97 | let count = if (isDefined(getInteger(this, "count"))) | |
100 | 98 | then getIntegerValue(this, "count") | |
101 | 99 | else 0 | |
102 | 100 | let event1DebtForThisPlayer = if (isDefined(getInteger(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer")))) | |
103 | 101 | then getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer")) | |
104 | 102 | else 0 | |
105 | 103 | let event2DebtForThisPlayer = if (isDefined(getInteger(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer")))) | |
106 | 104 | then getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer")) | |
107 | 105 | else 0 | |
108 | 106 | let debtAmount1 = debtAmount1Extract() | |
109 | 107 | let debtAmount2 = debtAmount2Extract() | |
110 | 108 | let q1 = q1Extract() | |
111 | 109 | let q2 = q2Extract() | |
112 | 110 | let countNew = (count + 1) | |
113 | 111 | if ((event == 1)) | |
114 | 112 | then if ((betThreshold >= betAmount)) | |
115 | 113 | then { | |
116 | 114 | let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount)) | |
117 | 115 | let debtAmount1New = ((debtAmount1 + betAmount) - ((q1 * betAmount) / 100)) | |
118 | 116 | let debtAmount2New = (debtAmount2 + betAmount) | |
119 | 117 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
120 | 118 | let q1Next = q1Nextq2Next[0] | |
121 | 119 | let q2Next = q1Nextq2Next[1] | |
122 | 120 | WriteSet([DataEntry((toString(contextObj.caller) + "_event1DebtForThisPlayer"), event1DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
123 | 121 | } | |
124 | 122 | else if (if ((betAmount > betThreshold)) | |
125 | 123 | then (betMax > betAmount) | |
126 | 124 | else false) | |
127 | 125 | then { | |
128 | 126 | let q1Corrected = calcCoefIfBigBet("q1_next", betAmount, q1) | |
129 | 127 | let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount)) | |
130 | 128 | let debtAmount1New = ((debtAmount1 + betAmount) - (q1Corrected * betAmount)) | |
131 | 129 | let debtAmount2New = (debtAmount2 + betAmount) | |
132 | 130 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
133 | 131 | let q1Next = q1Nextq2Next[0] | |
134 | 132 | let q2Next = q1Nextq2Next[1] | |
135 | 133 | WriteSet([DataEntry((toString(contextObj.caller) + "_event1DebtForThisPlayer"), event1DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
136 | 134 | } | |
137 | 135 | else throw("incorrect bet amount") | |
138 | 136 | else if ((event == 2)) | |
139 | 137 | then if ((betThreshold >= betAmount)) | |
140 | 138 | then { | |
141 | 139 | let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount)) | |
142 | 140 | let debtAmount2New = ((debtAmount2 + betAmount) - ((q2 * betAmount) / 100)) | |
143 | 141 | let debtAmount1New = (debtAmount1 + betAmount) | |
144 | 142 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
145 | 143 | let q1Next = q1Nextq2Next[0] | |
146 | 144 | let q2Next = q1Nextq2Next[1] | |
147 | 145 | WriteSet([DataEntry((toString(contextObj.caller) + "_event2DebtForThisPlayer"), event2DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
148 | 146 | } | |
149 | 147 | else if (if ((betAmount > betThreshold)) | |
150 | 148 | then (betMax > betAmount) | |
151 | 149 | else false) | |
152 | 150 | then { | |
153 | 151 | let q2Corrected = calcCoefIfBigBet("q2_next", betAmount, q2) | |
154 | 152 | let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount)) | |
155 | 153 | let debtAmount2New = ((debtAmount2 + betAmount) - (q2Corrected * betAmount)) | |
156 | 154 | let debtAmount1New = (debtAmount1 + betAmount) | |
157 | 155 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
158 | 156 | let q1Next = q1Nextq2Next[0] | |
159 | 157 | let q2Next = q1Nextq2Next[1] | |
160 | - | WriteSet([DataEntry((toString(contextObj.caller) + "_event2DebtForThisPlayer"), event2DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
158 | + | if (true) | |
159 | + | then throw(toString(q1Next)) | |
160 | + | else WriteSet([DataEntry((toString(contextObj.caller) + "_event2DebtForThisPlayer"), event2DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
161 | 161 | } | |
162 | 162 | else throw("incorrect bet amount") | |
163 | 163 | else throw("incorrect event id") | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | ||
168 | 168 | @Callable(contextObj) | |
169 | 169 | func withdraw () = { | |
170 | 170 | let event1amount = match getInteger(this, (toString(contextObj.caller) + "__event1DebtForThisPlayer")) { | |
171 | 171 | case u: Unit => | |
172 | 172 | 0 | |
173 | 173 | case i: Int => | |
174 | 174 | i | |
175 | 175 | case _ => | |
176 | 176 | throw() | |
177 | 177 | } | |
178 | 178 | let event2amount = match getInteger(this, (toString(contextObj.caller) + "__event2DebtForThisPlayer")) { | |
179 | 179 | case u: Unit => | |
180 | 180 | 0 | |
181 | 181 | case i: Int => | |
182 | 182 | i | |
183 | 183 | case _ => | |
184 | 184 | throw() | |
185 | 185 | } | |
186 | 186 | let event1 = match getBoolean(this, "result_event_1") { | |
187 | 187 | case u: Unit => | |
188 | 188 | false | |
189 | 189 | case b: Boolean => | |
190 | 190 | b | |
191 | 191 | case _ => | |
192 | 192 | throw() | |
193 | 193 | } | |
194 | 194 | let event2 = match getBoolean(this, "result_event_2") { | |
195 | 195 | case u: Unit => | |
196 | 196 | false | |
197 | 197 | case b: Boolean => | |
198 | 198 | b | |
199 | 199 | case _ => | |
200 | 200 | throw() | |
201 | 201 | } | |
202 | 202 | if (event1) | |
203 | 203 | then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event1amount * 1000000), unit)])) | |
204 | 204 | else if (event2) | |
205 | 205 | then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event2amount * 1000000), unit)])) | |
206 | 206 | else throw("event did not happen or you have zero win") | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 |
github/deemru/w8io/169f3d6 50.13 ms ◑