tx · B1kry7xoV3iBqQaiVMGK2rHQM3fZbNgCEuefFgKKudLb

3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP:  -0.01400000 Waves

2020.01.03 15:45 [837692] smart account 3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP > SELF 0.00000000 Waves

{ "type": 13, "id": "B1kry7xoV3iBqQaiVMGK2rHQM3fZbNgCEuefFgKKudLb", "fee": 1400000, "feeAssetId": null, "timestamp": 1578055563490, "version": 1, "sender": "3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP", "senderPublicKey": "3bmZaUZ9wp3K1YZQFqTkN1oZzumQPi7WLQ9QowMaqqEZ", "proofs": [ "5FHCEB1hVnesdgBTmUc34fpVRWKuHP6oT9A1L1nUyAtZxHURV4QtaDuWubpmor9TbdzDpYykbjinjqepBaLC2jAe" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAABAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAECAAAAB3ExX25leHQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAAB3ExX25leHQFAAAAB3Exc3RhcnQFAAAAAnExAQAAAAlxMkV4dHJhY3QAAAAABAAAAAJxMgMJAQAAAAlpc0RlZmluZWQAAAABAgAAAAdxMl9uZXh0CQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAdxMl9uZXh0BQAAAAdxMnN0YXJ0BQAAAAJxMgEAAAASZGVidEFtb3VudDFFeHRyYWN0AAAAAAQAAAALZGVid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FiCQEAAAAFdGhyb3cAAAAAAwUAAAAGZXZlbnQxCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgIAAAANX2V2ZW50MWFtb3VudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDFhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAMFAAAABmV2ZW50MgkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXICAAAADV9ldmVudDJhbW91bnQAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXIJAABoAAAAAgUAAAAMZXZlbnQyYW1vdW50AAAAAAAAD0JABQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAApZXZlbnQgZGlkIG5vdCBoYXBwZW4gb3IgeW91IGhhdmUgemVybyB3aW4AAAAAzKWnPA==", "chainId": 84, "height": 837692, "spentComplexity": 0 } View: original | compacted Prev: FHtpkWkdLU7Xfq9MtSg4XdfAVY92Y36jWPpGfaAoSXsg Next: GMRP3nZnNpxGRhQ3opZNQXWrZx29TzbA4cfJ5BMfuSCa Diff:
OldNewDifferences
9898 let count = if (isDefined("count"))
9999 then getIntegerValue(this, "count")
100100 else 0
101- let event1DebtForThisPlayer = getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer"))
102- let event2DebtForThisPlayer = getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer"))
101+ let event1DebtForThisPlayer = if (isDefined((toString(contextObj.caller) + "_event1DebtForThisPlayer")))
102+ then getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer"))
103+ else 0
104+ let event2DebtForThisPlayer = if (isDefined((toString(contextObj.caller) + "_event2DebtForThisPlayer")))
105+ then getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer"))
106+ else 0
103107 let debtAmount1 = debtAmount1Extract()
104108 let debtAmount2 = debtAmount2Extract()
105109 let q1 = q1Extract()
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 = 1
1515
1616 let betMax = 100
1717
1818 func q1Extract () = {
1919 let q1 = if (isDefined("q1_next"))
2020 then getIntegerValue(this, "q1_next")
2121 else q1start
2222 q1
2323 }
2424
2525
2626 func q2Extract () = {
2727 let q2 = if (isDefined("q2_next"))
2828 then getIntegerValue(this, "q2_next")
2929 else q2start
3030 q2
3131 }
3232
3333
3434 func debtAmount1Extract () = {
3535 let debtAmount1 = if (isDefined("debtAmount1"))
3636 then getIntegerValue(this, "debtAmount1")
3737 else 0
3838 debtAmount1
3939 }
4040
4141
4242 func debtAmount2Extract () = {
4343 let debtAmount2 = if (isDefined("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("count"))
9999 then getIntegerValue(this, "count")
100100 else 0
101- let event1DebtForThisPlayer = getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer"))
102- let event2DebtForThisPlayer = getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer"))
101+ let event1DebtForThisPlayer = if (isDefined((toString(contextObj.caller) + "_event1DebtForThisPlayer")))
102+ then getIntegerValue(this, (toString(contextObj.caller) + "_event1DebtForThisPlayer"))
103+ else 0
104+ let event2DebtForThisPlayer = if (isDefined((toString(contextObj.caller) + "_event2DebtForThisPlayer")))
105+ then getIntegerValue(this, (toString(contextObj.caller) + "_event2DebtForThisPlayer"))
106+ else 0
103107 let debtAmount1 = debtAmount1Extract()
104108 let debtAmount2 = debtAmount2Extract()
105109 let q1 = q1Extract()
106110 let q2 = q2Extract()
107111 let countNew = (count + 1)
108112 if ((event == 1))
109113 then if ((betThreshold > betAmount))
110114 then {
111115 let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1 * betAmount))
112116 let debtAmount1New = (debtAmount1 - (q1 * betAmount))
113117 let debtAmount2New = (debtAmount2 + betAmount)
114118 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
115119 let q1Next = q1Nextq2Next[0]
116120 let q2Next = q1Nextq2Next[1]
117121 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)])
118122 }
119123 else if (if ((betAmount > betThreshold))
120124 then (betMax > betAmount)
121125 else false)
122126 then {
123127 let q1Corrected = calcCoefIfBigBet("q1_next", betAmount)
124128 let event1DebtForThisPlayerNew = (event1DebtForThisPlayer + (q1Corrected * betAmount))
125129 let debtAmount1New = (debtAmount1 - (q1Corrected * betAmount))
126130 let debtAmount2New = (debtAmount2 + betAmount)
127131 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
128132 let q1Next = q1Nextq2Next[0]
129133 let q2Next = q1Nextq2Next[1]
130134 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)])
131135 }
132136 else throw("incorrect bet amount")
133137 else if ((betThreshold > betAmount))
134138 then {
135139 let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2 * betAmount))
136140 let debtAmount2New = (debtAmount2 - (q2 * betAmount))
137141 let debtAmount1New = (debtAmount1 + betAmount)
138142 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
139143 let q1Next = q1Nextq2Next[0]
140144 let q2Next = q1Nextq2Next[1]
141145 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)])
142146 }
143147 else if (if ((betAmount > betThreshold))
144148 then (betMin > betAmount)
145149 else false)
146150 then {
147151 let q2Corrected = calcCoefIfBigBet("q2_next", betAmount)
148152 let event2DebtForThisPlayerNew = (event2DebtForThisPlayer + (q2Corrected * betAmount))
149153 let debtAmount2New = (debtAmount2 - (q2Corrected * betAmount))
150154 let debtAmount1New = (debtAmount1 + betAmount)
151155 let q1Nextq2Next = actualNewCoefs(betAmount, debtAmount1New, debtAmount2New)
152156 let q1Next = q1Nextq2Next[0]
153157 let q2Next = q1Nextq2Next[1]
154158 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)])
155159 }
156160 else throw("incorrect bet amount")
157161 }
158162
159163
160164
161165 @Callable(contextObj)
162166 func withdraw () = {
163167 let event1amount = match getInteger(this, (toString(contextObj.caller) + "__event1DebtForThisPlayer")) {
164168 case u: Unit =>
165169 0
166170 case i: Int =>
167171 i
168172 case _ =>
169173 throw()
170174 }
171175 let event2amount = match getInteger(this, (toString(contextObj.caller) + "__event2DebtForThisPlayer")) {
172176 case u: Unit =>
173177 0
174178 case i: Int =>
175179 i
176180 case _ =>
177181 throw()
178182 }
179183 let event1 = match getBoolean(this, "result_event_1") {
180184 case u: Unit =>
181185 false
182186 case b: Boolean =>
183187 b
184188 case _ =>
185189 throw()
186190 }
187191 let event2 = match getBoolean(this, "result_event_2") {
188192 case u: Unit =>
189193 false
190194 case b: Boolean =>
191195 b
192196 case _ =>
193197 throw()
194198 }
195199 if (event1)
196200 then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event1amount * 1000000), unit)]))
197201 else if (event2)
198202 then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event2amount * 1000000), unit)]))
199203 else throw("event did not happen or you have zero win")
200204 }
201205
202206

github/deemru/w8io/026f985 
43.05 ms