tx · EPUSCA6L3xNQWw3T8vax7pADhsCxAHpowuMtXTVneZkE

3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf:  -0.01500000 Waves

2021.06.04 03:21 [1554898] smart account 3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf > SELF 0.00000000 Waves

{ "type": 13, "id": "EPUSCA6L3xNQWw3T8vax7pADhsCxAHpowuMtXTVneZkE", "fee": 1500000, "feeAssetId": null, "timestamp": 1622766179295, "version": 2, "chainId": 84, "sender": "3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf", "senderPublicKey": "6zkdpCUGZybpbh7mrJvMphWq6fUvbGoyxafdsQjtwsWA", "proofs": [ "22NrbTsPz5g2Zck1DQpBj5GU2cH5BMnrtoNYpZ8o5JFCgnHjkcxNwcPSjtoQ2KDXxVCVgLpYVmQZSiicetbJTBgo" ], "script": "base64:AAIEAAAAAAAAABAIAhIFCgMIAQESBQoDAQEIAAAADwAAAAAJR0FNRVNUQVJUAAAAAAAAAAAAAAAAAA5HQU1FSU5QUk9HUkVTUwAAAAAAAAAAAQAAAAAMR0FNRUZJTklTSEVEAAAAAAAAAAACAAAAABZCTE9DS1RPUFJPQ0VTU0ZPUlRIUk9XAAAAAAAAAAABAAAAAAtQQVNTTElORUJFVAIAAAALUEFTU0xJTkVCRVQAAAAAD0RPTlRQQVNTTElORUJFVAIAAAAPRE9OVFBBU1NMSU5FQkVUAAAAAAdDT01FQkVUAgAAAAdDT01FQkVUAAAAAAtET05UQ09NRUJFVAIAAAALRE9OVENPTUVCRVQAAAAACEZJRUxEQkVUAgAAAAhGSUVMREJFVAAAAAAHT0REU0JFVAIAAAAHT0REU0JFVAAAAAAKQklHNk9SOEJFVAIAAAAKQklHNk9SOEJFVAAAAAALUExBQ0VCRVRCVVkCAAAAC1BMQUNFQkVUQlVZAAAAAAxQTEFDRUJFVExPU0UCAAAADFBMQUNFQkVUTE9TRQAAAAALUExBQ0VCRVRMQVkCAAAAC1BMQUN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AAAVwcmljZQkAAGgAAAACBQAAAAZhbW91bnQAAAAAAAAAAAAFAAAAA25pbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFcHJpY2UJAABoAAAAAgUAAAAGYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABXByaWNlCQAAaAAAAAIFAAAABmFtb3VudAAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5aspdvw==", "height": 1554898, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AKqpezPjcaA46a1k59kyPGwvqkJZEim2wbq1fGRHBBXv Next: CanoEWnUqrstSE5QjCQSnGnRg7eLXxxMNN5ARRLDR26R Diff:
OldNewDifferences
3232 let PLACEBETWIN = "PLACEBETWIN"
3333
3434 @Callable(i)
35-func getWinningAmount (betDetails,resultOfRound,round) = {
36- let betType = split(betDetails, "_")[2]
37- let odd = value(parseInt(split(betDetails, "_")[5]))
38- let amount = value(parseInt(split(betDetails, "_")[1]))
39- if ((betType == FIELDBET))
40- then if ((resultOfRound == 12))
41- then [IntegerEntry("price", (amount * 4))]
42- else if ((resultOfRound == 2))
43- then [IntegerEntry("price", (amount * 3))]
44- else if (if (if (if ((resultOfRound == 5))
45- then true
46- else (resultOfRound == 6))
47- then true
48- else (resultOfRound == 7))
49- then true
50- else (resultOfRound == 8))
51- then [IntegerEntry("price", 0)]
52- else [IntegerEntry("price", (amount * 2))]
53- else if ((betType == ODDSBET))
54- then if (if ((odd == 4))
55- then true
56- else (odd == 10))
57- then [IntegerEntry("price", (amount * 7))]
58- else if (if ((odd == 5))
59- then true
60- else (odd == 8))
61- then [IntegerEntry("price", (amount * 9))]
62- else if (if ((odd == 3))
63- then true
64- else (odd == 11))
65- then [IntegerEntry("price", (amount * 15))]
66- else if (if ((odd == 2))
67- then true
68- else (odd == 12))
69- then [IntegerEntry("price", (amount * 30))]
70- else if (if ((odd == 10))
71- then true
72- else (odd == 4))
73- then [IntegerEntry("price", (amount * 30))]
74- else if ((odd == 7))
75- then [IntegerEntry("price", (amount * 4))]
76- else if (if ((odd == 100))
77- then if (if ((resultOfRound == 3))
78- then true
79- else (resultOfRound == 12))
80- then true
81- else (resultOfRound == 2)
82- else false)
83- then [IntegerEntry("price", (amount * 7))]
84- else [IntegerEntry("price", 0)]
85- else if ((betType == BIG6OR8BET))
86- then if (if ((resultOfRound == 6))
87- then true
88- else (resultOfRound == 8))
89- then [IntegerEntry("price", (amount * 2))]
90- else [IntegerEntry("price", 0)]
91- else if (if ((betType == PLACEBETLAY))
92- then true
93- else (betType == PLACEBETLOSE))
94- then if ((resultOfRound == 7))
95- then [IntegerEntry("price", (amount * 2))]
96- else if ((resultOfRound == odd))
97- then [IntegerEntry("price", 0)]
98- else [IntegerEntry("price", -1)]
99- else if (if ((betType == PLACEBETBUY))
100- then true
101- else (betType == PLACEBETWIN))
102- then if ((resultOfRound == 7))
103- then [IntegerEntry("price", 0)]
104- else if ((resultOfRound == odd))
105- then [IntegerEntry("price", 2)]
106- else [IntegerEntry("price", -1)]
107- else if ((betType == COMEBET))
108- then {
109- let playerPoint = value(parseInt(split(betDetails, "_")[6]))
110- if ((round == 2))
111- then if (if ((resultOfRound == 7))
112- then true
113- else (resultOfRound == 11))
114- then [IntegerEntry("price", (amount * 2))]
115- else if (if (if ((resultOfRound == 2))
116- then true
117- else (resultOfRound == 12))
118- then true
119- else (resultOfRound == 3))
120- then [IntegerEntry("price", 0)]
121- else if ((resultOfRound == playerPoint))
122- then [IntegerEntry("price", (amount * 2))]
123- else [IntegerEntry("price", -1)]
124- else if ((round > 2))
125- then if ((resultOfRound == 7))
126- then [IntegerEntry("price", 0)]
127- else if ((resultOfRound == playerPoint))
128- then [IntegerEntry("price", (amount * 2))]
129- else [IntegerEntry("price", -1)]
130- else throw("Not Allow in The Beginning")
131- }
132- else if ((betType == DONTCOMEBET))
133- then {
134- let playerPoint = value(parseInt(split(betDetails, "_")[6]))
135- if ((round == 2))
136- then if (if ((resultOfRound == 7))
137- then true
138- else (resultOfRound == 11))
139- then [IntegerEntry("price", 0)]
140- else if (if (if ((resultOfRound == 2))
141- then true
142- else (resultOfRound == 12))
143- then true
144- else (resultOfRound == 3))
145- then [IntegerEntry("price", (amount * 2))]
146- else if ((resultOfRound == playerPoint))
147- then [IntegerEntry("price", (amount * 2))]
148- else [IntegerEntry("price", -1)]
149- else if ((round > 1))
150- then if ((resultOfRound == 7))
151- then [IntegerEntry("price", (amount * 2))]
152- else if ((resultOfRound == playerPoint))
153- then [IntegerEntry("price", 0)]
154- else [IntegerEntry("price", -1)]
155- else throw("Not Allow in The Beginning")
156- }
157- else [IntegerEntry("price", 0)]
158- }
35+func getWinningAmount (betDetails,resultOfRound,round) = throw(betDetails)
15936
16037
16138
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let GAMESTART = 0
55
66 let GAMEINPROGRESS = 1
77
88 let GAMEFINISHED = 2
99
1010 let BLOCKTOPROCESSFORTHROW = 1
1111
1212 let PASSLINEBET = "PASSLINEBET"
1313
1414 let DONTPASSLINEBET = "DONTPASSLINEBET"
1515
1616 let COMEBET = "COMEBET"
1717
1818 let DONTCOMEBET = "DONTCOMEBET"
1919
2020 let FIELDBET = "FIELDBET"
2121
2222 let ODDSBET = "ODDSBET"
2323
2424 let BIG6OR8BET = "BIG6OR8BET"
2525
2626 let PLACEBETBUY = "PLACEBETBUY"
2727
2828 let PLACEBETLOSE = "PLACEBETLOSE"
2929
3030 let PLACEBETLAY = "PLACEBETLAY"
3131
3232 let PLACEBETWIN = "PLACEBETWIN"
3333
3434 @Callable(i)
35-func getWinningAmount (betDetails,resultOfRound,round) = {
36- let betType = split(betDetails, "_")[2]
37- let odd = value(parseInt(split(betDetails, "_")[5]))
38- let amount = value(parseInt(split(betDetails, "_")[1]))
39- if ((betType == FIELDBET))
40- then if ((resultOfRound == 12))
41- then [IntegerEntry("price", (amount * 4))]
42- else if ((resultOfRound == 2))
43- then [IntegerEntry("price", (amount * 3))]
44- else if (if (if (if ((resultOfRound == 5))
45- then true
46- else (resultOfRound == 6))
47- then true
48- else (resultOfRound == 7))
49- then true
50- else (resultOfRound == 8))
51- then [IntegerEntry("price", 0)]
52- else [IntegerEntry("price", (amount * 2))]
53- else if ((betType == ODDSBET))
54- then if (if ((odd == 4))
55- then true
56- else (odd == 10))
57- then [IntegerEntry("price", (amount * 7))]
58- else if (if ((odd == 5))
59- then true
60- else (odd == 8))
61- then [IntegerEntry("price", (amount * 9))]
62- else if (if ((odd == 3))
63- then true
64- else (odd == 11))
65- then [IntegerEntry("price", (amount * 15))]
66- else if (if ((odd == 2))
67- then true
68- else (odd == 12))
69- then [IntegerEntry("price", (amount * 30))]
70- else if (if ((odd == 10))
71- then true
72- else (odd == 4))
73- then [IntegerEntry("price", (amount * 30))]
74- else if ((odd == 7))
75- then [IntegerEntry("price", (amount * 4))]
76- else if (if ((odd == 100))
77- then if (if ((resultOfRound == 3))
78- then true
79- else (resultOfRound == 12))
80- then true
81- else (resultOfRound == 2)
82- else false)
83- then [IntegerEntry("price", (amount * 7))]
84- else [IntegerEntry("price", 0)]
85- else if ((betType == BIG6OR8BET))
86- then if (if ((resultOfRound == 6))
87- then true
88- else (resultOfRound == 8))
89- then [IntegerEntry("price", (amount * 2))]
90- else [IntegerEntry("price", 0)]
91- else if (if ((betType == PLACEBETLAY))
92- then true
93- else (betType == PLACEBETLOSE))
94- then if ((resultOfRound == 7))
95- then [IntegerEntry("price", (amount * 2))]
96- else if ((resultOfRound == odd))
97- then [IntegerEntry("price", 0)]
98- else [IntegerEntry("price", -1)]
99- else if (if ((betType == PLACEBETBUY))
100- then true
101- else (betType == PLACEBETWIN))
102- then if ((resultOfRound == 7))
103- then [IntegerEntry("price", 0)]
104- else if ((resultOfRound == odd))
105- then [IntegerEntry("price", 2)]
106- else [IntegerEntry("price", -1)]
107- else if ((betType == COMEBET))
108- then {
109- let playerPoint = value(parseInt(split(betDetails, "_")[6]))
110- if ((round == 2))
111- then if (if ((resultOfRound == 7))
112- then true
113- else (resultOfRound == 11))
114- then [IntegerEntry("price", (amount * 2))]
115- else if (if (if ((resultOfRound == 2))
116- then true
117- else (resultOfRound == 12))
118- then true
119- else (resultOfRound == 3))
120- then [IntegerEntry("price", 0)]
121- else if ((resultOfRound == playerPoint))
122- then [IntegerEntry("price", (amount * 2))]
123- else [IntegerEntry("price", -1)]
124- else if ((round > 2))
125- then if ((resultOfRound == 7))
126- then [IntegerEntry("price", 0)]
127- else if ((resultOfRound == playerPoint))
128- then [IntegerEntry("price", (amount * 2))]
129- else [IntegerEntry("price", -1)]
130- else throw("Not Allow in The Beginning")
131- }
132- else if ((betType == DONTCOMEBET))
133- then {
134- let playerPoint = value(parseInt(split(betDetails, "_")[6]))
135- if ((round == 2))
136- then if (if ((resultOfRound == 7))
137- then true
138- else (resultOfRound == 11))
139- then [IntegerEntry("price", 0)]
140- else if (if (if ((resultOfRound == 2))
141- then true
142- else (resultOfRound == 12))
143- then true
144- else (resultOfRound == 3))
145- then [IntegerEntry("price", (amount * 2))]
146- else if ((resultOfRound == playerPoint))
147- then [IntegerEntry("price", (amount * 2))]
148- else [IntegerEntry("price", -1)]
149- else if ((round > 1))
150- then if ((resultOfRound == 7))
151- then [IntegerEntry("price", (amount * 2))]
152- else if ((resultOfRound == playerPoint))
153- then [IntegerEntry("price", 0)]
154- else [IntegerEntry("price", -1)]
155- else throw("Not Allow in The Beginning")
156- }
157- else [IntegerEntry("price", 0)]
158- }
35+func getWinningAmount (betDetails,resultOfRound,round) = throw(betDetails)
15936
16037
16138
16239 @Callable(i)
16340 func getWinningAmountPassLineBets (firstPoint,lastPoint,betDetails) = {
16441 let betType = split(betDetails, "_")[2]
16542 let betPlacer = split(betDetails, "_")[0]
16643 let amount = value(parseInt(split(betDetails, "_")[1]))
16744 if ((betType == PASSLINEBET))
16845 then if ((lastPoint == 0))
16946 then if (if ((firstPoint == 7))
17047 then true
17148 else (firstPoint == 11))
17249 then [IntegerEntry("price", (amount * 2))]
17350 else [IntegerEntry("price", (amount * 0))]
17451 else if ((firstPoint == lastPoint))
17552 then [IntegerEntry("price", (amount * 2))]
17653 else if ((lastPoint == 7))
17754 then [IntegerEntry("price", (amount * 0))]
17855 else [IntegerEntry("price", (amount * 0))]
17956 else if ((betType == DONTPASSLINEBET))
18057 then if ((lastPoint == 0))
18158 then if (if ((firstPoint == 2))
18259 then true
18360 else (firstPoint == 3))
18461 then [IntegerEntry("price", (amount * 2))]
18562 else if (if ((lastPoint == 7))
18663 then true
18764 else (lastPoint == 11))
18865 then [IntegerEntry("price", (amount * 0))]
18966 else [IntegerEntry("price", (amount * 0))]
19067 else if (if ((lastPoint == 2))
19168 then true
19269 else (lastPoint == 3))
19370 then [IntegerEntry("price", (amount * 2))]
19471 else if ((lastPoint == 7))
19572 then [IntegerEntry("price", (amount * 0))]
19673 else [IntegerEntry("price", (amount * 0))]
19774 else [IntegerEntry("price", (amount * 0))]
19875 }
19976
20077
20178 @Verifier(tx)
20279 func verify () = match tx {
20380 case _ =>
20481 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
20582 }
20683

github/deemru/w8io/873ac7e 
25.61 ms