tx · 3FsXhrKyuNfYPvf3FpK6nrfMW7DMzwHkotdGvX9riUdd

3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn:  -0.01400000 Waves

2020.01.04 16:56 [839224] smart account 3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn > SELF 0.00000000 Waves

{ "type": 13, "id": "3FsXhrKyuNfYPvf3FpK6nrfMW7DMzwHkotdGvX9riUdd", "fee": 1400000, "feeAssetId": null, "timestamp": 1578146241662, "version": 1, "sender": "3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn", "senderPublicKey": "6ZjaNmnAvx6D1PtkZEHppdJPoEJ9mhBhRTq8fcTT59Xd", "proofs": [ "5BsjYvFocfr1x6few6ABn8Z714hENrWSJA82t9hAnhdpGSx6p8TniCXUjfMH5bHo52s5Vjc376PHj9eZm5FobWGd" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAACAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAUAAAAHcTJzdGFydAUAAAAHcTJzdGFydAUAAAACcTIBAAAAEmRlYnRBbW91bnQxRXh0cmFjdAAAAAAEAAAAC2RlYnRBbW91bnQxAwkBAAAACWlzRGVmaW5lZAAAAA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AAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAF1BQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgkBAAAABXRocm93AAAAAAMFAAAABmV2ZW50MQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXICAAAADV9ldmVudDFhbW91bnQAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXIJAABoAAAAAgUAAAAMZXZlbnQxYW1vdW50AAAAAAAAD0JABQAAAAR1bml0BQAAAANuaWwDBQAAAAZldmVudDIJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyAgAAAA1fZXZlbnQyYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyCQAAaAAAAAIFAAAADGV2ZW50MmFtb3VudAAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAECAAAAKWV2ZW50IGRpZCBub3QgaGFwcGVuIG9yIHlvdSBoYXZlIHplcm8gd2luAAAAAJD4iSQ=", "chainId": 84, "height": 839224, "spentComplexity": 0 } View: original | compacted Prev: gLttkNWJ5yLZfDnVtmpDQDP5Z8LRJpijTHTLG6my7dK Next: none Diff:
OldNewDifferences
109109 let q1 = q1Extract()
110110 let q2 = q2Extract()
111111 let countNew = (count + 1)
112- if (true)
113- then throw(toString(countNew))
114- else if ((event == 1))
115- then if ((betThreshold >= betAmount))
112+ if ((event == 1))
113+ then if ((betThreshold >= betAmount))
114+ then {
115+ let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount))
116+ let debtAmount1New = (debtAmount1 - (q1 * betAmount))
117+ let debtAmount2New = (debtAmount2 + betAmount)
118+ let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
119+ let q1Next = q1Nextq2Next[0]
120+ let q2Next = q1Nextq2Next[1]
121+ if (true)
122+ then throw(toString(q1Next))
123+ else 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)])
124+ }
125+ else if (if ((betAmount > betThreshold))
126+ then (betMax > betAmount)
127+ else false)
116128 then {
117- let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount))
118- let debtAmount1New = (debtAmount1 - (q1 * betAmount))
129+ let q1Corrected = calcCoefIfBigBet("q1_next", betAmount)
130+ let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount))
131+ let debtAmount1New = (debtAmount1 - (q1Corrected * betAmount))
119132 let debtAmount2New = (debtAmount2 + betAmount)
120133 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
121134 let q1Next = q1Nextq2Next[0]
122135 let q2Next = q1Nextq2Next[1]
123136 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)])
124137 }
125- else if (if ((betAmount > betThreshold))
126- then (betMax > betAmount)
127- else false)
128- then {
129- let q1Corrected = calcCoefIfBigBet("q1_next", betAmount)
130- let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount))
131- let debtAmount1New = (debtAmount1 - (q1Corrected * betAmount))
132- let debtAmount2New = (debtAmount2 + betAmount)
133- let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
134- let q1Next = q1Nextq2Next[0]
135- let q2Next = q1Nextq2Next[1]
136- 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)])
137- }
138- else throw("incorrect bet amount")
139- else if ((betThreshold >= betAmount))
138+ else throw("incorrect bet amount")
139+ else if ((betThreshold >= betAmount))
140+ then {
141+ let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount))
142+ let debtAmount2New = (debtAmount2 - (q2 * betAmount))
143+ let debtAmount1New = (debtAmount1 + betAmount)
144+ let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
145+ let q1Next = q1Nextq2Next[0]
146+ let q2Next = q1Nextq2Next[1]
147+ 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+ }
149+ else if (if ((betAmount > betThreshold))
150+ then (betMin > betAmount)
151+ else false)
140152 then {
141- let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount))
142- let debtAmount2New = (debtAmount2 - (q2 * betAmount))
153+ let q2Corrected = calcCoefIfBigBet("q2_next", betAmount)
154+ let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount))
155+ let debtAmount2New = (debtAmount2 - (q2Corrected * betAmount))
143156 let debtAmount1New = (debtAmount1 + betAmount)
144157 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
145158 let q1Next = q1Nextq2Next[0]
146159 let q2Next = q1Nextq2Next[1]
147160 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)])
148161 }
149- else if (if ((betAmount > betThreshold))
150- then (betMin > betAmount)
151- else false)
152- then {
153- let q2Corrected = calcCoefIfBigBet("q2_next", betAmount)
154- let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount))
155- let debtAmount2New = (debtAmount2 - (q2Corrected * betAmount))
156- let debtAmount1New = (debtAmount1 + betAmount)
157- let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
158- let q1Next = q1Nextq2Next[0]
159- 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)])
161- }
162- else throw("incorrect bet amount")
162+ else throw("incorrect bet amount")
163163 }
164164
165165
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let q1start = 190
55
66 let q2start = 190
77
88 let vig = 52
99
1010 let riskAmount = 1000
1111
1212 let betThreshold = 10
1313
1414 let betMin = 2
1515
1616 let betMax = 100
1717
1818 func q1Extract () = {
1919 let q1 = if (isDefined(getInteger(this, "q1_next")))
2020 then q1start
2121 else q1start
2222 q1
2323 }
2424
2525
2626 func q2Extract () = {
2727 let q2 = if (isDefined(getInteger(this, "q2_next")))
2828 then q2start
2929 else q2start
3030 q2
3131 }
3232
3333
3434 func debtAmount1Extract () = {
3535 let debtAmount1 = if (isDefined(getInteger(this, "debtAmount1")))
3636 then getIntegerValue(this, "debtAmount1")
3737 else 0
3838 debtAmount1
3939 }
4040
4141
4242 func debtAmount2Extract () = {
4343 let debtAmount2 = if (isDefined(getInteger(this, "debtAmount2")))
4444 then getIntegerValue(this, "debtAmount2")
4545 else 0
4646 debtAmount2
4747 }
4848
4949
5050 func calcCoefIfBigBet (event,betAmount) = {
5151 let q = getIntegerValue(this, event)
5252 let k = (((1 * 100000) - (q * 1000)) / (betMax - betThreshold))
5353 let b = ((1 * 100000) - (k * betMax))
5454 let qCorrected = (((betAmount * k) + b) / 1000)
5555 qCorrected
5656 }
5757
5858
5959 func anothercoef (q,vig) = {
6060 let anothercoef = pow(((vig + 1000) - (100000 / q)), 0, -1, 0, 5, DOWN)
6161 anothercoef
6262 }
6363
6464
6565 func actualNewCoefs (betAmount,debtAmount1,debtAmount2) = if ((0 > debtAmount1))
6666 then {
6767 let k = (((1 * 1000000) - (q1start * 10000)) / riskAmount)
6868 let b = ((1 * 1000000) - (k * riskAmount))
6969 let q1 = ((-(k) * debtAmount1) + (b / 1000))
7070 let q2 = anothercoef(q1, vig)
7171 [q1, q2]
7272 }
7373 else if ((debtAmount1 > 0))
7474 then {
7575 let k = (((1 * 1000000) - (q1start * 10000)) / riskAmount)
7676 let b = ((1 * 1000000) - (k * riskAmount))
7777 let q2 = ((-(k) * debtAmount2) + (b / 1000))
7878 let q1 = anothercoef(q2, vig)
7979 [q1, q2]
8080 }
8181 else {
8282 let q1 = q1start
8383 let q2 = q2start
8484 [q1, q2]
8585 }
8686
8787
8888 @Callable(contextObj)
8989 func bet (event) = {
9090 let betAmount = match contextObj.payment {
9191 case p: AttachedPayment =>
9292 if ((betMin > p.amount))
9393 then throw("low payment")
9494 else p.amount
9595 case _ =>
9696 throw("Payment not attached")
9797 }
9898 let count = if (isDefined(getInteger(this, "count")))
9999 then getIntegerValue(this, "count")
100100 else 0
101101 let event1DebtForThisPlayer = if (isDefined(getInteger(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer"))))
102102 then getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer"))
103103 else 0
104104 let event2DebtForThisPlayer = if (isDefined(getInteger(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer"))))
105105 then getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer"))
106106 else 0
107107 let debtAmount1 = debtAmount1Extract()
108108 let debtAmount2 = debtAmount2Extract()
109109 let q1 = q1Extract()
110110 let q2 = q2Extract()
111111 let countNew = (count + 1)
112- if (true)
113- then throw(toString(countNew))
114- else if ((event == 1))
115- then if ((betThreshold >= betAmount))
112+ if ((event == 1))
113+ then if ((betThreshold >= betAmount))
114+ then {
115+ let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount))
116+ let debtAmount1New = (debtAmount1 - (q1 * betAmount))
117+ let debtAmount2New = (debtAmount2 + betAmount)
118+ let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
119+ let q1Next = q1Nextq2Next[0]
120+ let q2Next = q1Nextq2Next[1]
121+ if (true)
122+ then throw(toString(q1Next))
123+ else 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)])
124+ }
125+ else if (if ((betAmount > betThreshold))
126+ then (betMax > betAmount)
127+ else false)
116128 then {
117- let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount))
118- let debtAmount1New = (debtAmount1 - (q1 * betAmount))
129+ let q1Corrected = calcCoefIfBigBet("q1_next", betAmount)
130+ let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount))
131+ let debtAmount1New = (debtAmount1 - (q1Corrected * betAmount))
119132 let debtAmount2New = (debtAmount2 + betAmount)
120133 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
121134 let q1Next = q1Nextq2Next[0]
122135 let q2Next = q1Nextq2Next[1]
123136 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)])
124137 }
125- else if (if ((betAmount > betThreshold))
126- then (betMax > betAmount)
127- else false)
128- then {
129- let q1Corrected = calcCoefIfBigBet("q1_next", betAmount)
130- let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount))
131- let debtAmount1New = (debtAmount1 - (q1Corrected * betAmount))
132- let debtAmount2New = (debtAmount2 + betAmount)
133- let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
134- let q1Next = q1Nextq2Next[0]
135- let q2Next = q1Nextq2Next[1]
136- 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)])
137- }
138- else throw("incorrect bet amount")
139- else if ((betThreshold >= betAmount))
138+ else throw("incorrect bet amount")
139+ else if ((betThreshold >= betAmount))
140+ then {
141+ let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount))
142+ let debtAmount2New = (debtAmount2 - (q2 * betAmount))
143+ let debtAmount1New = (debtAmount1 + betAmount)
144+ let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
145+ let q1Next = q1Nextq2Next[0]
146+ let q2Next = q1Nextq2Next[1]
147+ 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+ }
149+ else if (if ((betAmount > betThreshold))
150+ then (betMin > betAmount)
151+ else false)
140152 then {
141- let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount))
142- let debtAmount2New = (debtAmount2 - (q2 * betAmount))
153+ let q2Corrected = calcCoefIfBigBet("q2_next", betAmount)
154+ let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount))
155+ let debtAmount2New = (debtAmount2 - (q2Corrected * betAmount))
143156 let debtAmount1New = (debtAmount1 + betAmount)
144157 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
145158 let q1Next = q1Nextq2Next[0]
146159 let q2Next = q1Nextq2Next[1]
147160 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)])
148161 }
149- else if (if ((betAmount > betThreshold))
150- then (betMin > betAmount)
151- else false)
152- then {
153- let q2Corrected = calcCoefIfBigBet("q2_next", betAmount)
154- let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount))
155- let debtAmount2New = (debtAmount2 - (q2Corrected * betAmount))
156- let debtAmount1New = (debtAmount1 + betAmount)
157- let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
158- let q1Next = q1Nextq2Next[0]
159- 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)])
161- }
162- else throw("incorrect bet amount")
162+ else throw("incorrect bet amount")
163163 }
164164
165165
166166
167167 @Callable(contextObj)
168168 func withdraw () = {
169169 let event1amount = match getInteger(this, (toString(contextObj.caller) + "__event1DebtForThisPlayer")) {
170170 case u: Unit =>
171171 0
172172 case i: Int =>
173173 i
174174 case _ =>
175175 throw()
176176 }
177177 let event2amount = match getInteger(this, (toString(contextObj.caller) + "__event2DebtForThisPlayer")) {
178178 case u: Unit =>
179179 0
180180 case i: Int =>
181181 i
182182 case _ =>
183183 throw()
184184 }
185185 let event1 = match getBoolean(this, "result_event_1") {
186186 case u: Unit =>
187187 false
188188 case b: Boolean =>
189189 b
190190 case _ =>
191191 throw()
192192 }
193193 let event2 = match getBoolean(this, "result_event_2") {
194194 case u: Unit =>
195195 false
196196 case b: Boolean =>
197197 b
198198 case _ =>
199199 throw()
200200 }
201201 if (event1)
202202 then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event1amount * 1000000), unit)]))
203203 else if (event2)
204204 then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event2amount * 1000000), unit)]))
205205 else throw("event did not happen or you have zero win")
206206 }
207207
208208

github/deemru/w8io/026f985 
35.84 ms