tx · 8t2b9XsRCUPfWJN7xz2VdiPX4eSAUvo8QWpYRrGPxCbD 3MyPxvC5pvRWe8KtXn35Vjcw8b1DLLXpDxu: -0.01400000 Waves 2019.09.20 16:04 [684677] smart account 3MyPxvC5pvRWe8KtXn35Vjcw8b1DLLXpDxu > SELF 0.00000000 Waves
{ "type": 13, "id": "8t2b9XsRCUPfWJN7xz2VdiPX4eSAUvo8QWpYRrGPxCbD", "fee": 1400000, "feeAssetId": null, "timestamp": 1568984612945, "version": 1, "sender": "3MyPxvC5pvRWe8KtXn35Vjcw8b1DLLXpDxu", "senderPublicKey": "58gE6BwC4kdEuM8Q5jAP95JTzWwtCqAm352WZe4bHcDE", "proofs": [ "3omeGUxwNt1eLcXppazTZs82PS1cyRfcw8cBT4XSNZRMN4sJ8L3VfyAgrE3FHsMSuuRE2FJZ9ekTExJotfQiuJTt" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAFzAAAAAAAAAAAKAQAAAARjb2VmAAAAAgAAAAFxAAAAA2RpZgkAAGkAAAACCQAAaAAAAAIFAAAAAXEJAABkAAAAAgkAAGgAAAACCQAAaAAAAAIA/////////9EFAAAAA2RpZgUAAAADZGlmAAAAAAAAACcQAAAAAAAAACcQAQAAAAthbm90aGVyY29lZgAAAAEAAAABcQQAAAADdmlnAAAAAAAAAAA0CQAAbAAAAAYJAABlAAAAAgkAAGQAAAACBQAAAAN2aWcAAAAAAAAAA+gJAABpAAAAAgAAAAAAAAGGoAUAAAABcQAAAAAAAAAAAAD//////////wAAAAAAAAAAAAAAAAAAAAAABQUAAAAERE9XTgAAAAIAAAAKY29udGV4dE9iagEAAAADYmV0AAAAAQAAAAVldmVudAQAAAAHcGF5bWVudAQAAAAHJG1hdGNoMAgFAAAACmNvbnRleHRPYmoAAAAHcGF5bWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQXR0Y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EAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgIAAAANX2V2ZW50MWFtb3VudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDFhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAMFAAAABmV2ZW50MgkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXICAAAADV9ldmVudDJhbW91bnQAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXIJAABoAAAAAgUAAAAMZXZlbnQyYW1vdW50AAAAAAAAD0JABQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAApZXZlbnQgZGlkIG5vdCBoYXBwZW4gb3IgeW91IGhhdmUgemVybyB3aW4AAAAAPyJjFA==", "chainId": 84, "height": 684677, "spentComplexity": 0 } View: original | compacted Prev: 7xpWCWWMbjM8U9yAwMhMsgJePnzi558y7Q7xRb6prFQF Next: CXKxmAD58gd2EsciJZG73Dmke4dve3UwcegaiRuKS8sz Diff:
Old | New | Differences | |
---|---|---|---|
50 | 50 | then { | |
51 | 51 | let q1next = coef(q1start, ((n + 1) - m)) | |
52 | 52 | let q2next = anothercoef(q1next) | |
53 | - | if (if ((100 > | |
53 | + | if (if ((100 > q1next)) | |
54 | 54 | then true | |
55 | - | else (100 > | |
55 | + | else (100 > q2next)) | |
56 | 56 | then throw(("to low coef q1 = " + toString(coef(q1start, ((n + 1) - m))))) | |
57 | 57 | else { | |
58 | 58 | let nNew = (n + 1) | |
63 | 63 | else { | |
64 | 64 | let q1next = coef(q1start, ((n - 1) - m)) | |
65 | 65 | let q2next = anothercoef(q1next) | |
66 | - | if (if ((100 > | |
66 | + | if (if ((100 > q1next)) | |
67 | 67 | then true | |
68 | - | else (100 > | |
68 | + | else (100 > q2next)) | |
69 | 69 | then throw(("to low coef q2 = " + toString(anothercoef(coef(q1start, ((n - m) - 1)))))) | |
70 | 70 | else { | |
71 | 71 | let mNew = (m + 1) |
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 s = 10 | |
9 | 9 | ||
10 | 10 | func coef (q,dif) = ((q * (((-47 * dif) * dif) + 10000)) / 10000) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func anothercoef (q) = { | |
14 | 14 | let vig = 52 | |
15 | 15 | pow(((vig + 1000) - (100000 / q)), 0, -1, 0, 5, DOWN) | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(contextObj) | |
20 | 20 | func bet (event) = { | |
21 | 21 | let payment = match contextObj.payment { | |
22 | 22 | case p: AttachedPayment => | |
23 | 23 | if ((100000000 > p.amount)) | |
24 | 24 | then throw("low payment") | |
25 | 25 | else p | |
26 | 26 | case _ => | |
27 | 27 | throw("Payment not attached") | |
28 | 28 | } | |
29 | 29 | let n = getIntegerValue(this, "n") | |
30 | 30 | let m = getIntegerValue(this, "m") | |
31 | 31 | let count = getIntegerValue(this, "count") | |
32 | 32 | let dif = (n - m) | |
33 | 33 | let event1amount = match getInteger(this, (toString(contextObj.caller) + "_event1amount")) { | |
34 | 34 | case u: Unit => | |
35 | 35 | 0 | |
36 | 36 | case i: Int => | |
37 | 37 | i | |
38 | 38 | case _ => | |
39 | 39 | throw() | |
40 | 40 | } | |
41 | 41 | let event2amount = match getInteger(this, (toString(contextObj.caller) + "_event2amount")) { | |
42 | 42 | case u: Unit => | |
43 | 43 | 0 | |
44 | 44 | case i: Int => | |
45 | 45 | i | |
46 | 46 | case _ => | |
47 | 47 | throw() | |
48 | 48 | } | |
49 | 49 | if ((event == 1)) | |
50 | 50 | then { | |
51 | 51 | let q1next = coef(q1start, ((n + 1) - m)) | |
52 | 52 | let q2next = anothercoef(q1next) | |
53 | - | if (if ((100 > | |
53 | + | if (if ((100 > q1next)) | |
54 | 54 | then true | |
55 | - | else (100 > | |
55 | + | else (100 > q2next)) | |
56 | 56 | then throw(("to low coef q1 = " + toString(coef(q1start, ((n + 1) - m))))) | |
57 | 57 | else { | |
58 | 58 | let nNew = (n + 1) | |
59 | 59 | let countNew = (count + 1) | |
60 | 60 | WriteSet([DataEntry((toString(contextObj.caller) + "_event1amount"), (event1amount + coef(q1start, (n - m)))), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef1"), coef(q1start, (n - m))), DataEntry((toString(countNew) + "_qoef2"), anothercoef(coef(q1start, (n - m)))), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1next), DataEntry("q2_next", q2next), DataEntry("n", nNew), DataEntry("count", countNew)]) | |
61 | 61 | } | |
62 | 62 | } | |
63 | 63 | else { | |
64 | 64 | let q1next = coef(q1start, ((n - 1) - m)) | |
65 | 65 | let q2next = anothercoef(q1next) | |
66 | - | if (if ((100 > | |
66 | + | if (if ((100 > q1next)) | |
67 | 67 | then true | |
68 | - | else (100 > | |
68 | + | else (100 > q2next)) | |
69 | 69 | then throw(("to low coef q2 = " + toString(anothercoef(coef(q1start, ((n - m) - 1)))))) | |
70 | 70 | else { | |
71 | 71 | let mNew = (m + 1) | |
72 | 72 | let countNew = (count + 1) | |
73 | 73 | WriteSet([DataEntry((toString(contextObj.caller) + "_event2amount"), (event2amount + anothercoef(coef(q1start, (n - m))))), DataEntry((toString(countNew) + "_event"), event), DataEntry((toString(countNew) + "_qoef2"), anothercoef(coef(q1start, (n - m)))), DataEntry((toString(countNew) + "_bettor"), toString(contextObj.caller)), DataEntry("q1_next", q1next), DataEntry("q2_next", q2next), DataEntry((toString(countNew) + "_qoef1"), coef(q1start, (n - m))), DataEntry("m", mNew), DataEntry("count", countNew)]) | |
74 | 74 | } | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | ||
80 | 80 | @Callable(contextObj) | |
81 | 81 | func withdraw () = { | |
82 | 82 | let event1amount = match getInteger(this, (toString(contextObj.caller) + "_event1amount")) { | |
83 | 83 | case u: Unit => | |
84 | 84 | 0 | |
85 | 85 | case i: Int => | |
86 | 86 | i | |
87 | 87 | case _ => | |
88 | 88 | throw() | |
89 | 89 | } | |
90 | 90 | let event2amount = match getInteger(this, (toString(contextObj.caller) + "_event2amount")) { | |
91 | 91 | case u: Unit => | |
92 | 92 | 0 | |
93 | 93 | case i: Int => | |
94 | 94 | i | |
95 | 95 | case _ => | |
96 | 96 | throw() | |
97 | 97 | } | |
98 | 98 | let event1 = match getBoolean(this, "result_event_1") { | |
99 | 99 | case u: Unit => | |
100 | 100 | false | |
101 | 101 | case b: Boolean => | |
102 | 102 | b | |
103 | 103 | case _ => | |
104 | 104 | throw() | |
105 | 105 | } | |
106 | 106 | let event2 = match getBoolean(this, "result_event_2") { | |
107 | 107 | case u: Unit => | |
108 | 108 | false | |
109 | 109 | case b: Boolean => | |
110 | 110 | b | |
111 | 111 | case _ => | |
112 | 112 | throw() | |
113 | 113 | } | |
114 | 114 | if (event1) | |
115 | 115 | then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event1amount * 1000000), unit)])) | |
116 | 116 | else if (event2) | |
117 | 117 | then ScriptResult(WriteSet([DataEntry((toString(contextObj.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(contextObj.caller, (event2amount * 1000000), unit)])) | |
118 | 118 | else throw("event did not happen or you have zero win") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 |
github/deemru/w8io/169f3d6 44.76 ms ◑