tx · 3BSG184AxDHa2aSCxV3Q4SfWZ8Y64rKKpkWJssoCXUpS 3MvuSn7KBR39PoLQ9jDM117mDyzFuBJs3qy: -0.01400000 Waves 2020.01.16 16:01 [856734] smart account 3MvuSn7KBR39PoLQ9jDM117mDyzFuBJs3qy > SELF 0.00000000 Waves
{ "type": 13, "id": "3BSG184AxDHa2aSCxV3Q4SfWZ8Y64rKKpkWJssoCXUpS", "fee": 1400000, "feeAssetId": null, "timestamp": 1579179718860, "version": 1, "sender": "3MvuSn7KBR39PoLQ9jDM117mDyzFuBJs3qy", "senderPublicKey": "4hZyqjUHP9eJzVZcavLKsYDRYgGbGqXnSkJ2SFPg8oL2", "proofs": [ "2F8cmuMgU1sexo1aMCe48YanQh6nftEFPM9VnzbooEc2wB9yhesn35g1AZXqV8BN1yCaMYMrZu7uDCMSZvh65cqG" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAABAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAUAAAAHcTJzdGFydAU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entComplexity": 0 } View: original | compacted Prev: 7hCL9jWbkNpkS5bByZZYYgPWvGEpRSpHPutbQ5V23tEM Next: 9EVbfyu9V2EEVY2QM48RRzTSDopRwR8YTr1b7tdY9vTC Full:
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 | 54 | qCorrected | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func anothercoef (q,vig) = { | |
59 | 59 | let anothercoef = pow(((vig + 1000) - (100000 / q)), 0, -1, 0, 5, DOWN) | |
60 | 60 | anothercoef | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func actualNewCoefs (betAmount,debtAmount1,debtAmount2) = if ((0 > debtAmount1)) | |
65 | 65 | then { | |
66 | 66 | let k = (((1 * 1000000) - (q1start * 10000)) / riskAmount) | |
67 | 67 | let b = ((1 * 1000000) - (k * riskAmount)) | |
68 | 68 | let q1 = (((-(k) * debtAmount1) + b) / 10000) | |
69 | 69 | let q2 = anothercoef(q1, vig) | |
70 | 70 | [q1, q2] | |
71 | 71 | } | |
72 | 72 | else if ((debtAmount1 > 0)) | |
73 | 73 | then { | |
74 | 74 | let k = (((1 * 1000000) - (q2start * 10000)) / riskAmount) | |
75 | 75 | let b = ((1 * 1000000) - (k * riskAmount)) | |
76 | 76 | let q2 = (((-(k) * debtAmount2) + b) / 10000) | |
77 | 77 | let q1 = anothercoef(q2, vig) | |
78 | 78 | [q1, q2] | |
79 | 79 | } | |
80 | 80 | else { | |
81 | 81 | let q1 = q1start | |
82 | 82 | let q2 = q2start | |
83 | 83 | [q1, q2] | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(contextObj) | |
88 | 88 | func bet (event) = { | |
89 | 89 | let betAmount = match contextObj.payment { | |
90 | 90 | case p: AttachedPayment => | |
91 | 91 | if ((betMin > p.amount)) | |
92 | 92 | then throw("low payment") | |
93 | 93 | else p.amount | |
94 | 94 | case _ => | |
95 | 95 | throw("Payment not attached") | |
96 | 96 | } | |
97 | 97 | let count = if (isDefined(getInteger(this, "count"))) | |
98 | 98 | then getIntegerValue(this, "count") | |
99 | 99 | else 0 | |
100 | 100 | let event1DebtForThisPlayer = if (isDefined(getInteger(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer")))) | |
101 | 101 | then getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer")) | |
102 | 102 | else 0 | |
103 | 103 | let event2DebtForThisPlayer = if (isDefined(getInteger(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer")))) | |
104 | 104 | then getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer")) | |
105 | 105 | else 0 | |
106 | 106 | let debtAmount1 = debtAmount1Extract() | |
107 | 107 | let debtAmount2 = debtAmount2Extract() | |
108 | 108 | let q1 = q1Extract() | |
109 | 109 | let q2 = q2Extract() | |
110 | 110 | let countNew = (count + 1) | |
111 | 111 | if ((event == 1)) | |
112 | 112 | then if ((betThreshold >= betAmount)) | |
113 | 113 | then { | |
114 | 114 | let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount)) | |
115 | 115 | let debtAmount1New = ((debtAmount1 + betAmount) - ((q1 * betAmount) / 100)) | |
116 | 116 | let debtAmount2New = (debtAmount2 + betAmount) | |
117 | 117 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
118 | 118 | let q1Next = q1Nextq2Next[0] | |
119 | 119 | let q2Next = q1Nextq2Next[1] | |
120 | 120 | WriteSet([DataEntry((toString(contextObj.caller) + "_event1DebtForThisPlayer"), event1DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry("debtAmount1", debtAmount1New), DataEntry("debtAmount2", debtAmount2New), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
121 | 121 | } | |
122 | 122 | else if (if ((betAmount > betThreshold)) | |
123 | 123 | then (betMax > betAmount) | |
124 | 124 | else false) | |
125 | 125 | then { | |
126 | 126 | let q1Corrected = calcCoefIfBigBet("q1_next", betAmount, q1) | |
127 | 127 | let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount)) | |
128 | 128 | let debtAmount1New = ((debtAmount1 + betAmount) - ((q1Corrected * betAmount) / 100)) | |
129 | 129 | let debtAmount2New = (debtAmount2 + betAmount) | |
130 | 130 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
131 | 131 | let q1Next = q1Nextq2Next[0] | |
132 | 132 | let q2Next = q1Nextq2Next[1] | |
133 | 133 | WriteSet([DataEntry((toString(contextObj.caller) + "_event1DebtForThisPlayer"), event1DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_Correctedqoef1"), q1Corrected), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("debtAmount1", debtAmount1New), DataEntry("debtAmount2", debtAmount2New), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
134 | 134 | } | |
135 | 135 | else throw("incorrect bet amount") | |
136 | 136 | else if ((event == 2)) | |
137 | 137 | then if ((betThreshold >= betAmount)) | |
138 | 138 | then { | |
139 | 139 | let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount)) | |
140 | 140 | let debtAmount2New = ((debtAmount2 + betAmount) - ((q2 * betAmount) / 100)) | |
141 | 141 | let debtAmount1New = (debtAmount1 + betAmount) | |
142 | 142 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
143 | 143 | let q1Next = q1Nextq2Next[0] | |
144 | 144 | let q2Next = q1Nextq2Next[1] | |
145 | 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("debtAmount1", debtAmount1New), DataEntry("debtAmount2", debtAmount2New), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
146 | 146 | } | |
147 | 147 | else if (if ((betAmount > betThreshold)) | |
148 | 148 | then (betMax > betAmount) | |
149 | 149 | else false) | |
150 | 150 | then { | |
151 | 151 | let q2Corrected = calcCoefIfBigBet("q2_next", betAmount, q2) | |
152 | 152 | let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount)) | |
153 | 153 | let debtAmount2New = ((debtAmount2 + betAmount) - ((q2Corrected * betAmount) / 100)) | |
154 | 154 | let debtAmount1New = (debtAmount1 + betAmount) | |
155 | 155 | let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New) | |
156 | 156 | let q1Next = q1Nextq2Next[0] | |
157 | 157 | let q2Next = q1Nextq2Next[1] | |
158 | 158 | WriteSet([DataEntry((toString(contextObj.caller) + "_event2DebtForThisPlayer"), event2DebtForThisPlayerNew), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry((toString(countNew) + "_Correctedqoef2"), q2Corrected), DataEntry((toString(countNew) + "_qoef1"), q1), DataEntry((toString(countNew) + "_qoef2"), q2), DataEntry("debtAmount1", debtAmount1New), DataEntry("debtAmount2", debtAmount2New), DataEntry("q1_next", q1Next), DataEntry("q2_next", q2Next), DataEntry("count", countNew)]) | |
159 | 159 | } | |
160 | 160 | else throw("incorrect bet amount") | |
161 | 161 | else throw("incorrect event id") | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | ||
166 | 166 | @Callable(contextObj) | |
167 | 167 | func withdraw () = { | |
168 | 168 | let event1amount = match getInteger(this, (toString(contextObj.caller) + "__event1DebtForThisPlayer")) { | |
169 | 169 | case u: Unit => | |
170 | 170 | 0 | |
171 | 171 | case i: Int => | |
172 | 172 | i | |
173 | 173 | case _ => | |
174 | 174 | throw() | |
175 | 175 | } | |
176 | 176 | let event2amount = match getInteger(this, (toString(contextObj.caller) + "__event2DebtForThisPlayer")) { | |
177 | 177 | case u: Unit => | |
178 | 178 | 0 | |
179 | 179 | case i: Int => | |
180 | 180 | i | |
181 | 181 | case _ => | |
182 | 182 | throw() | |
183 | 183 | } | |
184 | 184 | let event1 = match getBoolean(this, "result_event_1") { | |
185 | 185 | case u: Unit => | |
186 | 186 | false | |
187 | 187 | case b: Boolean => | |
188 | 188 | b | |
189 | 189 | case _ => | |
190 | 190 | throw() | |
191 | 191 | } | |
192 | 192 | let event2 = match getBoolean(this, "result_event_2") { | |
193 | 193 | case u: Unit => | |
194 | 194 | false | |
195 | 195 | case b: Boolean => | |
196 | 196 | b | |
197 | 197 | case _ => | |
198 | 198 | throw() | |
199 | 199 | } | |
200 | 200 | if (event1) | |
201 | 201 | then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event1amount * 1000000), unit)])) | |
202 | 202 | else if (event2) | |
203 | 203 | then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event2amount * 1000000), unit)])) | |
204 | 204 | else throw("event did not happen or you have zero win") | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 |
github/deemru/w8io/169f3d6 60.12 ms ◑