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