tx · 72YobrsBUH12epXDuU1SPggqMJEJGrV8fGusBrj2LQrz

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.06.03 11:55 [1553966] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "72YobrsBUH12epXDuU1SPggqMJEJGrV8fGusBrj2LQrz", "fee": 1400000, "feeAssetId": null, "timestamp": 1622710537041, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "kBDMSnEEDfx5Qczhn3YNJhBJzLqCu4h2JUe3ezWvWSqXL7x7zz3yn2yz4LWV2LJGTeKbV4VbuoctwcbGURmzYjy" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIREQAAAA0AAAAAB2hhbmRpSWQBAAAAIJkAFV9y+TGMcmjsWdBTKE4ZGUePZL8IMZcI6Ogv4iEXAAAAAAdudW1MaXN0CQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGCQAETAAAAAIAAAAAAAAAAAcJAARMAAAAAgAAAAAAAAAACAkABEwAAAACAAAAAAAAAAAJCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAACwkABEwAAAACAAAAAAAAAAAMCQAETAAAAAIAAAAAAAAAAA0JAARMAAAAAgAAAAAAAAAADgkABEwAAAACAAAAAAAAAAAPCQAETAAAAAIAAAAAAAAAABAJAARMAAAAAgAAAAAAAAAAEQkABEwAAAACAAAAAAAAAAASBQAAAANuaWwBAAAAB2xpc3RTdW0AAAABAAAAA2FycgoBAAAAA3N1bQAAAAIAAAABYQAAAAFiCQAAZAAAAAIFAAAAA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luZGV4BQAAAAdoYW5kaUlkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSAGLnc=", "height": 1553966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fo85Ej6YMbARw4FurpfExAaJcFzXa6YsdviesboDRP1N Next: 5xsDdZ9aXf1mSxARFdA8y54948n12bZDpcWtXHjkbVrb Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let handiId = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ'
5+
6+let numList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
7+
48 func listSum (arr) = {
59 func sum (a,b) = (a + b)
610
7- let $list156177 = arr
8- let $size156177 = size($list156177)
9- let $acc0156177 = 0
10- if (($size156177 == 0))
11- then $acc0156177
11+ let $list322343 = arr
12+ let $size322343 = size($list322343)
13+ let $acc0322343 = 0
14+ if (($size322343 == 0))
15+ then $acc0322343
1216 else {
13- let $acc1156177 = sum($acc0156177, $list156177[0])
14- if (($size156177 == 1))
15- then $acc1156177
17+ let $acc1322343 = sum($acc0322343, $list322343[0])
18+ if (($size322343 == 1))
19+ then $acc1322343
1620 else {
17- let $acc2156177 = sum($acc1156177, $list156177[1])
18- if (($size156177 == 2))
19- then $acc2156177
21+ let $acc2322343 = sum($acc1322343, $list322343[1])
22+ if (($size322343 == 2))
23+ then $acc2322343
2024 else {
21- let $acc3156177 = sum($acc2156177, $list156177[2])
22- if (($size156177 == 3))
23- then $acc3156177
25+ let $acc3322343 = sum($acc2322343, $list322343[2])
26+ if (($size322343 == 3))
27+ then $acc3322343
2428 else {
25- let $acc4156177 = sum($acc3156177, $list156177[3])
26- if (($size156177 == 4))
27- then $acc4156177
29+ let $acc4322343 = sum($acc3322343, $list322343[3])
30+ if (($size322343 == 4))
31+ then $acc4322343
2832 else {
29- let $acc5156177 = sum($acc4156177, $list156177[4])
30- if (($size156177 == 5))
31- then $acc5156177
33+ let $acc5322343 = sum($acc4322343, $list322343[4])
34+ if (($size322343 == 5))
35+ then $acc5322343
3236 else {
33- let $acc6156177 = sum($acc5156177, $list156177[5])
34- if (($size156177 == 6))
35- then $acc6156177
37+ let $acc6322343 = sum($acc5322343, $list322343[5])
38+ if (($size322343 == 6))
39+ then $acc6322343
3640 else {
37- let $acc7156177 = sum($acc6156177, $list156177[6])
38- if (($size156177 == 7))
39- then $acc7156177
41+ let $acc7322343 = sum($acc6322343, $list322343[6])
42+ if (($size322343 == 7))
43+ then $acc7322343
4044 else {
41- let $acc8156177 = sum($acc7156177, $list156177[7])
42- if (($size156177 == 8))
43- then $acc8156177
45+ let $acc8322343 = sum($acc7322343, $list322343[7])
46+ if (($size322343 == 8))
47+ then $acc8322343
4448 else {
45- let $acc9156177 = sum($acc8156177, $list156177[8])
46- if (($size156177 == 9))
47- then $acc9156177
49+ let $acc9322343 = sum($acc8322343, $list322343[8])
50+ if (($size322343 == 9))
51+ then $acc9322343
4852 else {
49- let $acc10156177 = sum($acc9156177, $list156177[9])
50- if (($size156177 == 10))
51- then $acc10156177
53+ let $acc10322343 = sum($acc9322343, $list322343[9])
54+ if (($size322343 == 10))
55+ then $acc10322343
5256 else {
53- let $acc11156177 = sum($acc10156177, $list156177[10])
54- if (($size156177 == 11))
55- then $acc11156177
57+ let $acc11322343 = sum($acc10322343, $list322343[10])
58+ if (($size322343 == 11))
59+ then $acc11322343
5660 else {
57- let $acc12156177 = sum($acc11156177, $list156177[11])
58- if (($size156177 == 12))
59- then $acc12156177
61+ let $acc12322343 = sum($acc11322343, $list322343[11])
62+ if (($size322343 == 12))
63+ then $acc12322343
6064 else {
61- let $acc13156177 = sum($acc12156177, $list156177[12])
62- if (($size156177 == 13))
63- then $acc13156177
65+ let $acc13322343 = sum($acc12322343, $list322343[12])
66+ if (($size322343 == 13))
67+ then $acc13322343
6468 else {
65- let $acc14156177 = sum($acc13156177, $list156177[13])
66- if (($size156177 == 14))
67- then $acc14156177
69+ let $acc14322343 = sum($acc13322343, $list322343[13])
70+ if (($size322343 == 14))
71+ then $acc14322343
6872 else {
69- let $acc15156177 = sum($acc14156177, $list156177[14])
70- if (($size156177 == 15))
71- then $acc15156177
73+ let $acc15322343 = sum($acc14322343, $list322343[14])
74+ if (($size322343 == 15))
75+ then $acc15322343
7276 else {
73- let $acc16156177 = sum($acc15156177, $list156177[15])
74- if (($size156177 == 16))
75- then $acc16156177
77+ let $acc16322343 = sum($acc15322343, $list322343[15])
78+ if (($size322343 == 16))
79+ then $acc16322343
7680 else {
77- let $acc17156177 = sum($acc16156177, $list156177[16])
78- if (($size156177 == 17))
79- then $acc17156177
81+ let $acc17322343 = sum($acc16322343, $list322343[16])
82+ if (($size322343 == 17))
83+ then $acc17322343
8084 else {
81- let $acc18156177 = sum($acc17156177, $list156177[17])
82- if (($size156177 == 18))
83- then $acc18156177
85+ let $acc18322343 = sum($acc17322343, $list322343[17])
86+ if (($size322343 == 18))
87+ then $acc18322343
8488 else {
85- let $acc19156177 = sum($acc18156177, $list156177[18])
89+ let $acc19322343 = sum($acc18322343, $list322343[18])
8690 throw("List size exceed 18")
8791 }
8892 }
139143 else (acc :+ score[i])
140144 }
141145
142- let $list18461875 = score
143- let $size18461875 = size($list18461875)
144- let $acc018461875 = nil
145- if (($size18461875 == 0))
146- then $acc018461875
146+ let $list20482079 = numList
147+ let $size20482079 = size($list20482079)
148+ let $acc020482079 = nil
149+ if (($size20482079 == 0))
150+ then $acc020482079
147151 else {
148- let $acc118461875 = foldFunc($acc018461875, $list18461875[0])
149- if (($size18461875 == 1))
150- then $acc118461875
152+ let $acc120482079 = foldFunc($acc020482079, $list20482079[0])
153+ if (($size20482079 == 1))
154+ then $acc120482079
151155 else {
152- let $acc218461875 = foldFunc($acc118461875, $list18461875[1])
153- if (($size18461875 == 2))
154- then $acc218461875
156+ let $acc220482079 = foldFunc($acc120482079, $list20482079[1])
157+ if (($size20482079 == 2))
158+ then $acc220482079
155159 else {
156- let $acc318461875 = foldFunc($acc218461875, $list18461875[2])
157- if (($size18461875 == 3))
158- then $acc318461875
160+ let $acc320482079 = foldFunc($acc220482079, $list20482079[2])
161+ if (($size20482079 == 3))
162+ then $acc320482079
159163 else {
160- let $acc418461875 = foldFunc($acc318461875, $list18461875[3])
161- if (($size18461875 == 4))
162- then $acc418461875
164+ let $acc420482079 = foldFunc($acc320482079, $list20482079[3])
165+ if (($size20482079 == 4))
166+ then $acc420482079
163167 else {
164- let $acc518461875 = foldFunc($acc418461875, $list18461875[4])
165- if (($size18461875 == 5))
166- then $acc518461875
168+ let $acc520482079 = foldFunc($acc420482079, $list20482079[4])
169+ if (($size20482079 == 5))
170+ then $acc520482079
167171 else {
168- let $acc618461875 = foldFunc($acc518461875, $list18461875[5])
169- if (($size18461875 == 6))
170- then $acc618461875
172+ let $acc620482079 = foldFunc($acc520482079, $list20482079[5])
173+ if (($size20482079 == 6))
174+ then $acc620482079
171175 else {
172- let $acc718461875 = foldFunc($acc618461875, $list18461875[6])
173- if (($size18461875 == 7))
174- then $acc718461875
176+ let $acc720482079 = foldFunc($acc620482079, $list20482079[6])
177+ if (($size20482079 == 7))
178+ then $acc720482079
175179 else {
176- let $acc818461875 = foldFunc($acc718461875, $list18461875[7])
177- if (($size18461875 == 8))
178- then $acc818461875
180+ let $acc820482079 = foldFunc($acc720482079, $list20482079[7])
181+ if (($size20482079 == 8))
182+ then $acc820482079
179183 else {
180- let $acc918461875 = foldFunc($acc818461875, $list18461875[8])
181- if (($size18461875 == 9))
182- then $acc918461875
184+ let $acc920482079 = foldFunc($acc820482079, $list20482079[8])
185+ if (($size20482079 == 9))
186+ then $acc920482079
183187 else {
184- let $acc1018461875 = foldFunc($acc918461875, $list18461875[9])
185- if (($size18461875 == 10))
186- then $acc1018461875
188+ let $acc1020482079 = foldFunc($acc920482079, $list20482079[9])
189+ if (($size20482079 == 10))
190+ then $acc1020482079
187191 else {
188- let $acc1118461875 = foldFunc($acc1018461875, $list18461875[10])
189- if (($size18461875 == 11))
190- then $acc1118461875
192+ let $acc1120482079 = foldFunc($acc1020482079, $list20482079[10])
193+ if (($size20482079 == 11))
194+ then $acc1120482079
191195 else {
192- let $acc1218461875 = foldFunc($acc1118461875, $list18461875[11])
193- if (($size18461875 == 12))
194- then $acc1218461875
196+ let $acc1220482079 = foldFunc($acc1120482079, $list20482079[11])
197+ if (($size20482079 == 12))
198+ then $acc1220482079
195199 else {
196- let $acc1318461875 = foldFunc($acc1218461875, $list18461875[12])
197- if (($size18461875 == 13))
198- then $acc1318461875
200+ let $acc1320482079 = foldFunc($acc1220482079, $list20482079[12])
201+ if (($size20482079 == 13))
202+ then $acc1320482079
199203 else {
200- let $acc1418461875 = foldFunc($acc1318461875, $list18461875[13])
201- if (($size18461875 == 14))
202- then $acc1418461875
204+ let $acc1420482079 = foldFunc($acc1320482079, $list20482079[13])
205+ if (($size20482079 == 14))
206+ then $acc1420482079
203207 else {
204- let $acc1518461875 = foldFunc($acc1418461875, $list18461875[14])
205- if (($size18461875 == 15))
206- then $acc1518461875
208+ let $acc1520482079 = foldFunc($acc1420482079, $list20482079[14])
209+ if (($size20482079 == 15))
210+ then $acc1520482079
207211 else {
208- let $acc1618461875 = foldFunc($acc1518461875, $list18461875[15])
209- if (($size18461875 == 16))
210- then $acc1618461875
212+ let $acc1620482079 = foldFunc($acc1520482079, $list20482079[15])
213+ if (($size20482079 == 16))
214+ then $acc1620482079
211215 else {
212- let $acc1718461875 = foldFunc($acc1618461875, $list18461875[16])
213- if (($size18461875 == 17))
214- then $acc1718461875
216+ let $acc1720482079 = foldFunc($acc1620482079, $list20482079[16])
217+ if (($size20482079 == 17))
218+ then $acc1720482079
215219 else {
216- let $acc1818461875 = foldFunc($acc1718461875, $list18461875[17])
217- if (($size18461875 == 18))
218- then $acc1818461875
220+ let $acc1820482079 = foldFunc($acc1720482079, $list20482079[17])
221+ if (($size20482079 == 18))
222+ then $acc1820482079
219223 else {
220- let $acc1918461875 = foldFunc($acc1818461875, $list18461875[18])
224+ let $acc1920482079 = foldFunc($acc1820482079, $list20482079[18])
221225 throw("List size exceed 18")
222226 }
223227 }
246250 then (acc :+ (par[i] + 5))
247251 else (acc :+ score[i])
248252
249- let $list20992128 = score
250- let $size20992128 = size($list20992128)
251- let $acc020992128 = nil
252- if (($size20992128 == 0))
253- then $acc020992128
253+ let $list23532384 = numList
254+ let $size23532384 = size($list23532384)
255+ let $acc023532384 = nil
256+ if (($size23532384 == 0))
257+ then $acc023532384
254258 else {
255- let $acc120992128 = foldFunc($acc020992128, $list20992128[0])
256- if (($size20992128 == 1))
257- then $acc120992128
259+ let $acc123532384 = foldFunc($acc023532384, $list23532384[0])
260+ if (($size23532384 == 1))
261+ then $acc123532384
258262 else {
259- let $acc220992128 = foldFunc($acc120992128, $list20992128[1])
260- if (($size20992128 == 2))
261- then $acc220992128
263+ let $acc223532384 = foldFunc($acc123532384, $list23532384[1])
264+ if (($size23532384 == 2))
265+ then $acc223532384
262266 else {
263- let $acc320992128 = foldFunc($acc220992128, $list20992128[2])
264- if (($size20992128 == 3))
265- then $acc320992128
267+ let $acc323532384 = foldFunc($acc223532384, $list23532384[2])
268+ if (($size23532384 == 3))
269+ then $acc323532384
266270 else {
267- let $acc420992128 = foldFunc($acc320992128, $list20992128[3])
268- if (($size20992128 == 4))
269- then $acc420992128
271+ let $acc423532384 = foldFunc($acc323532384, $list23532384[3])
272+ if (($size23532384 == 4))
273+ then $acc423532384
270274 else {
271- let $acc520992128 = foldFunc($acc420992128, $list20992128[4])
272- if (($size20992128 == 5))
273- then $acc520992128
275+ let $acc523532384 = foldFunc($acc423532384, $list23532384[4])
276+ if (($size23532384 == 5))
277+ then $acc523532384
274278 else {
275- let $acc620992128 = foldFunc($acc520992128, $list20992128[5])
276- if (($size20992128 == 6))
277- then $acc620992128
279+ let $acc623532384 = foldFunc($acc523532384, $list23532384[5])
280+ if (($size23532384 == 6))
281+ then $acc623532384
278282 else {
279- let $acc720992128 = foldFunc($acc620992128, $list20992128[6])
280- if (($size20992128 == 7))
281- then $acc720992128
283+ let $acc723532384 = foldFunc($acc623532384, $list23532384[6])
284+ if (($size23532384 == 7))
285+ then $acc723532384
282286 else {
283- let $acc820992128 = foldFunc($acc720992128, $list20992128[7])
284- if (($size20992128 == 8))
285- then $acc820992128
287+ let $acc823532384 = foldFunc($acc723532384, $list23532384[7])
288+ if (($size23532384 == 8))
289+ then $acc823532384
286290 else {
287- let $acc920992128 = foldFunc($acc820992128, $list20992128[8])
288- if (($size20992128 == 9))
289- then $acc920992128
291+ let $acc923532384 = foldFunc($acc823532384, $list23532384[8])
292+ if (($size23532384 == 9))
293+ then $acc923532384
290294 else {
291- let $acc1020992128 = foldFunc($acc920992128, $list20992128[9])
292- if (($size20992128 == 10))
293- then $acc1020992128
295+ let $acc1023532384 = foldFunc($acc923532384, $list23532384[9])
296+ if (($size23532384 == 10))
297+ then $acc1023532384
294298 else {
295- let $acc1120992128 = foldFunc($acc1020992128, $list20992128[10])
296- if (($size20992128 == 11))
297- then $acc1120992128
299+ let $acc1123532384 = foldFunc($acc1023532384, $list23532384[10])
300+ if (($size23532384 == 11))
301+ then $acc1123532384
298302 else {
299- let $acc1220992128 = foldFunc($acc1120992128, $list20992128[11])
300- if (($size20992128 == 12))
301- then $acc1220992128
303+ let $acc1223532384 = foldFunc($acc1123532384, $list23532384[11])
304+ if (($size23532384 == 12))
305+ then $acc1223532384
302306 else {
303- let $acc1320992128 = foldFunc($acc1220992128, $list20992128[12])
304- if (($size20992128 == 13))
305- then $acc1320992128
307+ let $acc1323532384 = foldFunc($acc1223532384, $list23532384[12])
308+ if (($size23532384 == 13))
309+ then $acc1323532384
306310 else {
307- let $acc1420992128 = foldFunc($acc1320992128, $list20992128[13])
308- if (($size20992128 == 14))
309- then $acc1420992128
311+ let $acc1423532384 = foldFunc($acc1323532384, $list23532384[13])
312+ if (($size23532384 == 14))
313+ then $acc1423532384
310314 else {
311- let $acc1520992128 = foldFunc($acc1420992128, $list20992128[14])
312- if (($size20992128 == 15))
313- then $acc1520992128
315+ let $acc1523532384 = foldFunc($acc1423532384, $list23532384[14])
316+ if (($size23532384 == 15))
317+ then $acc1523532384
314318 else {
315- let $acc1620992128 = foldFunc($acc1520992128, $list20992128[15])
316- if (($size20992128 == 16))
317- then $acc1620992128
319+ let $acc1623532384 = foldFunc($acc1523532384, $list23532384[15])
320+ if (($size23532384 == 16))
321+ then $acc1623532384
318322 else {
319- let $acc1720992128 = foldFunc($acc1620992128, $list20992128[16])
320- if (($size20992128 == 17))
321- then $acc1720992128
323+ let $acc1723532384 = foldFunc($acc1623532384, $list23532384[16])
324+ if (($size23532384 == 17))
325+ then $acc1723532384
322326 else {
323- let $acc1820992128 = foldFunc($acc1720992128, $list20992128[17])
324- if (($size20992128 == 18))
325- then $acc1820992128
327+ let $acc1823532384 = foldFunc($acc1723532384, $list23532384[17])
328+ if (($size23532384 == 18))
329+ then $acc1823532384
326330 else {
327- let $acc1920992128 = foldFunc($acc1820992128, $list20992128[18])
331+ let $acc1923532384 = foldFunc($acc1823532384, $list23532384[18])
328332 throw("List size exceed 18")
329333 }
330334 }
366370 }
367371
368372
373+func handicapIndexRequirements (num) = if ((num > 54))
374+ then 54
375+ else if ((0 > num))
376+ then 0
377+ else num
378+
379+
369380 let count = 1
370381
371382 @Callable(i)
372-func issueHandicapIndex () = {
383+func issueHandicapIndex (course1Par,course1Hdcp) = {
373384 let currentKey = toBase58String(i.caller.bytes)
374385 let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) {
375386 case a: Int =>
391402 let roundCourse1 = split(roundCourseString, "_&&_")
392403 let roundCourse2 = split(roundCourseString, "_&&_")
393404 let roundCourse3 = split(roundCourseString, "_&&_")
394- if ((count == 1))
395- then throw(((("score18=>" + toString(score1[17])) + "/courseAddress=>") + roundCourse1[0]))
396- else {
397- let averageScoreHistry = 0
398-[IntegerEntry("", 1)]
399- }
405+ let scoreDifferential1 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex)
406+ let scoreDifferential2 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex)
407+ let scoreDifferential3 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex)
408+ let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3])
409+ let result = (scoreDifferentialLowest - 2)
410+ let handicapIndex = handicapIndexRequirements(result)
411+[Reissue(handiId, handicapIndex, false), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), ScriptTransfer(i.caller, handicapIndex, handiId)]
400412 }
401413
402414
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let handiId = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ'
5+
6+let numList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
7+
48 func listSum (arr) = {
59 func sum (a,b) = (a + b)
610
7- let $list156177 = arr
8- let $size156177 = size($list156177)
9- let $acc0156177 = 0
10- if (($size156177 == 0))
11- then $acc0156177
11+ let $list322343 = arr
12+ let $size322343 = size($list322343)
13+ let $acc0322343 = 0
14+ if (($size322343 == 0))
15+ then $acc0322343
1216 else {
13- let $acc1156177 = sum($acc0156177, $list156177[0])
14- if (($size156177 == 1))
15- then $acc1156177
17+ let $acc1322343 = sum($acc0322343, $list322343[0])
18+ if (($size322343 == 1))
19+ then $acc1322343
1620 else {
17- let $acc2156177 = sum($acc1156177, $list156177[1])
18- if (($size156177 == 2))
19- then $acc2156177
21+ let $acc2322343 = sum($acc1322343, $list322343[1])
22+ if (($size322343 == 2))
23+ then $acc2322343
2024 else {
21- let $acc3156177 = sum($acc2156177, $list156177[2])
22- if (($size156177 == 3))
23- then $acc3156177
25+ let $acc3322343 = sum($acc2322343, $list322343[2])
26+ if (($size322343 == 3))
27+ then $acc3322343
2428 else {
25- let $acc4156177 = sum($acc3156177, $list156177[3])
26- if (($size156177 == 4))
27- then $acc4156177
29+ let $acc4322343 = sum($acc3322343, $list322343[3])
30+ if (($size322343 == 4))
31+ then $acc4322343
2832 else {
29- let $acc5156177 = sum($acc4156177, $list156177[4])
30- if (($size156177 == 5))
31- then $acc5156177
33+ let $acc5322343 = sum($acc4322343, $list322343[4])
34+ if (($size322343 == 5))
35+ then $acc5322343
3236 else {
33- let $acc6156177 = sum($acc5156177, $list156177[5])
34- if (($size156177 == 6))
35- then $acc6156177
37+ let $acc6322343 = sum($acc5322343, $list322343[5])
38+ if (($size322343 == 6))
39+ then $acc6322343
3640 else {
37- let $acc7156177 = sum($acc6156177, $list156177[6])
38- if (($size156177 == 7))
39- then $acc7156177
41+ let $acc7322343 = sum($acc6322343, $list322343[6])
42+ if (($size322343 == 7))
43+ then $acc7322343
4044 else {
41- let $acc8156177 = sum($acc7156177, $list156177[7])
42- if (($size156177 == 8))
43- then $acc8156177
45+ let $acc8322343 = sum($acc7322343, $list322343[7])
46+ if (($size322343 == 8))
47+ then $acc8322343
4448 else {
45- let $acc9156177 = sum($acc8156177, $list156177[8])
46- if (($size156177 == 9))
47- then $acc9156177
49+ let $acc9322343 = sum($acc8322343, $list322343[8])
50+ if (($size322343 == 9))
51+ then $acc9322343
4852 else {
49- let $acc10156177 = sum($acc9156177, $list156177[9])
50- if (($size156177 == 10))
51- then $acc10156177
53+ let $acc10322343 = sum($acc9322343, $list322343[9])
54+ if (($size322343 == 10))
55+ then $acc10322343
5256 else {
53- let $acc11156177 = sum($acc10156177, $list156177[10])
54- if (($size156177 == 11))
55- then $acc11156177
57+ let $acc11322343 = sum($acc10322343, $list322343[10])
58+ if (($size322343 == 11))
59+ then $acc11322343
5660 else {
57- let $acc12156177 = sum($acc11156177, $list156177[11])
58- if (($size156177 == 12))
59- then $acc12156177
61+ let $acc12322343 = sum($acc11322343, $list322343[11])
62+ if (($size322343 == 12))
63+ then $acc12322343
6064 else {
61- let $acc13156177 = sum($acc12156177, $list156177[12])
62- if (($size156177 == 13))
63- then $acc13156177
65+ let $acc13322343 = sum($acc12322343, $list322343[12])
66+ if (($size322343 == 13))
67+ then $acc13322343
6468 else {
65- let $acc14156177 = sum($acc13156177, $list156177[13])
66- if (($size156177 == 14))
67- then $acc14156177
69+ let $acc14322343 = sum($acc13322343, $list322343[13])
70+ if (($size322343 == 14))
71+ then $acc14322343
6872 else {
69- let $acc15156177 = sum($acc14156177, $list156177[14])
70- if (($size156177 == 15))
71- then $acc15156177
73+ let $acc15322343 = sum($acc14322343, $list322343[14])
74+ if (($size322343 == 15))
75+ then $acc15322343
7276 else {
73- let $acc16156177 = sum($acc15156177, $list156177[15])
74- if (($size156177 == 16))
75- then $acc16156177
77+ let $acc16322343 = sum($acc15322343, $list322343[15])
78+ if (($size322343 == 16))
79+ then $acc16322343
7680 else {
77- let $acc17156177 = sum($acc16156177, $list156177[16])
78- if (($size156177 == 17))
79- then $acc17156177
81+ let $acc17322343 = sum($acc16322343, $list322343[16])
82+ if (($size322343 == 17))
83+ then $acc17322343
8084 else {
81- let $acc18156177 = sum($acc17156177, $list156177[17])
82- if (($size156177 == 18))
83- then $acc18156177
85+ let $acc18322343 = sum($acc17322343, $list322343[17])
86+ if (($size322343 == 18))
87+ then $acc18322343
8488 else {
85- let $acc19156177 = sum($acc18156177, $list156177[18])
89+ let $acc19322343 = sum($acc18322343, $list322343[18])
8690 throw("List size exceed 18")
8791 }
8892 }
8993 }
9094 }
9195 }
9296 }
9397 }
9498 }
9599 }
96100 }
97101 }
98102 }
99103 }
100104 }
101105 }
102106 }
103107 }
104108 }
105109 }
106110 }
107111
108112
109113 func parseIntList (list) = [parseIntValue(list[0]), parseIntValue(list[1]), parseIntValue(list[2]), parseIntValue(list[3]), parseIntValue(list[4]), parseIntValue(list[5]), parseIntValue(list[6]), parseIntValue(list[7]), parseIntValue(list[8]), parseIntValue(list[9]), parseIntValue(list[10]), parseIntValue(list[11]), parseIntValue(list[12]), parseIntValue(list[13]), parseIntValue(list[14]), parseIntValue(list[15]), parseIntValue(list[16]), parseIntValue(list[17])]
110114
111115
112116 func getRoundScore (roundCount,currentKey) = match getString(this, ((currentKey + "_round_score_") + toString(roundCount))) {
113117 case a: String =>
114118 a
115119 case _ =>
116120 ""
117121 }
118122
119123
120124 func getRoundCourse (roundCount,currentKey) = match getString(this, ((currentKey + "_round_course_") + toString(roundCount))) {
121125 case a: String =>
122126 a
123127 case _ =>
124128 ""
125129 }
126130
127131
128132 func holeStrokeReceiveFunc (handicapIndex,hdcp) = if ((handicapIndex >= hdcp))
129133 then 1
130134 else 0
131135
132136
133137 func foldFuncHoldHandi (score,par,hdcpList,handicap) = {
134138 func foldFunc (acc,i) = {
135139 let holeStrokeReceive = holeStrokeReceiveFunc(handicap, hdcpList[i])
136140 let netDoubleBogey = ((par[i] + 2) + holeStrokeReceive)
137141 if ((score[i] > netDoubleBogey))
138142 then (acc :+ netDoubleBogey)
139143 else (acc :+ score[i])
140144 }
141145
142- let $list18461875 = score
143- let $size18461875 = size($list18461875)
144- let $acc018461875 = nil
145- if (($size18461875 == 0))
146- then $acc018461875
146+ let $list20482079 = numList
147+ let $size20482079 = size($list20482079)
148+ let $acc020482079 = nil
149+ if (($size20482079 == 0))
150+ then $acc020482079
147151 else {
148- let $acc118461875 = foldFunc($acc018461875, $list18461875[0])
149- if (($size18461875 == 1))
150- then $acc118461875
152+ let $acc120482079 = foldFunc($acc020482079, $list20482079[0])
153+ if (($size20482079 == 1))
154+ then $acc120482079
151155 else {
152- let $acc218461875 = foldFunc($acc118461875, $list18461875[1])
153- if (($size18461875 == 2))
154- then $acc218461875
156+ let $acc220482079 = foldFunc($acc120482079, $list20482079[1])
157+ if (($size20482079 == 2))
158+ then $acc220482079
155159 else {
156- let $acc318461875 = foldFunc($acc218461875, $list18461875[2])
157- if (($size18461875 == 3))
158- then $acc318461875
160+ let $acc320482079 = foldFunc($acc220482079, $list20482079[2])
161+ if (($size20482079 == 3))
162+ then $acc320482079
159163 else {
160- let $acc418461875 = foldFunc($acc318461875, $list18461875[3])
161- if (($size18461875 == 4))
162- then $acc418461875
164+ let $acc420482079 = foldFunc($acc320482079, $list20482079[3])
165+ if (($size20482079 == 4))
166+ then $acc420482079
163167 else {
164- let $acc518461875 = foldFunc($acc418461875, $list18461875[4])
165- if (($size18461875 == 5))
166- then $acc518461875
168+ let $acc520482079 = foldFunc($acc420482079, $list20482079[4])
169+ if (($size20482079 == 5))
170+ then $acc520482079
167171 else {
168- let $acc618461875 = foldFunc($acc518461875, $list18461875[5])
169- if (($size18461875 == 6))
170- then $acc618461875
172+ let $acc620482079 = foldFunc($acc520482079, $list20482079[5])
173+ if (($size20482079 == 6))
174+ then $acc620482079
171175 else {
172- let $acc718461875 = foldFunc($acc618461875, $list18461875[6])
173- if (($size18461875 == 7))
174- then $acc718461875
176+ let $acc720482079 = foldFunc($acc620482079, $list20482079[6])
177+ if (($size20482079 == 7))
178+ then $acc720482079
175179 else {
176- let $acc818461875 = foldFunc($acc718461875, $list18461875[7])
177- if (($size18461875 == 8))
178- then $acc818461875
180+ let $acc820482079 = foldFunc($acc720482079, $list20482079[7])
181+ if (($size20482079 == 8))
182+ then $acc820482079
179183 else {
180- let $acc918461875 = foldFunc($acc818461875, $list18461875[8])
181- if (($size18461875 == 9))
182- then $acc918461875
184+ let $acc920482079 = foldFunc($acc820482079, $list20482079[8])
185+ if (($size20482079 == 9))
186+ then $acc920482079
183187 else {
184- let $acc1018461875 = foldFunc($acc918461875, $list18461875[9])
185- if (($size18461875 == 10))
186- then $acc1018461875
188+ let $acc1020482079 = foldFunc($acc920482079, $list20482079[9])
189+ if (($size20482079 == 10))
190+ then $acc1020482079
187191 else {
188- let $acc1118461875 = foldFunc($acc1018461875, $list18461875[10])
189- if (($size18461875 == 11))
190- then $acc1118461875
192+ let $acc1120482079 = foldFunc($acc1020482079, $list20482079[10])
193+ if (($size20482079 == 11))
194+ then $acc1120482079
191195 else {
192- let $acc1218461875 = foldFunc($acc1118461875, $list18461875[11])
193- if (($size18461875 == 12))
194- then $acc1218461875
196+ let $acc1220482079 = foldFunc($acc1120482079, $list20482079[11])
197+ if (($size20482079 == 12))
198+ then $acc1220482079
195199 else {
196- let $acc1318461875 = foldFunc($acc1218461875, $list18461875[12])
197- if (($size18461875 == 13))
198- then $acc1318461875
200+ let $acc1320482079 = foldFunc($acc1220482079, $list20482079[12])
201+ if (($size20482079 == 13))
202+ then $acc1320482079
199203 else {
200- let $acc1418461875 = foldFunc($acc1318461875, $list18461875[13])
201- if (($size18461875 == 14))
202- then $acc1418461875
204+ let $acc1420482079 = foldFunc($acc1320482079, $list20482079[13])
205+ if (($size20482079 == 14))
206+ then $acc1420482079
203207 else {
204- let $acc1518461875 = foldFunc($acc1418461875, $list18461875[14])
205- if (($size18461875 == 15))
206- then $acc1518461875
208+ let $acc1520482079 = foldFunc($acc1420482079, $list20482079[14])
209+ if (($size20482079 == 15))
210+ then $acc1520482079
207211 else {
208- let $acc1618461875 = foldFunc($acc1518461875, $list18461875[15])
209- if (($size18461875 == 16))
210- then $acc1618461875
212+ let $acc1620482079 = foldFunc($acc1520482079, $list20482079[15])
213+ if (($size20482079 == 16))
214+ then $acc1620482079
211215 else {
212- let $acc1718461875 = foldFunc($acc1618461875, $list18461875[16])
213- if (($size18461875 == 17))
214- then $acc1718461875
216+ let $acc1720482079 = foldFunc($acc1620482079, $list20482079[16])
217+ if (($size20482079 == 17))
218+ then $acc1720482079
215219 else {
216- let $acc1818461875 = foldFunc($acc1718461875, $list18461875[17])
217- if (($size18461875 == 18))
218- then $acc1818461875
220+ let $acc1820482079 = foldFunc($acc1720482079, $list20482079[17])
221+ if (($size20482079 == 18))
222+ then $acc1820482079
219223 else {
220- let $acc1918461875 = foldFunc($acc1818461875, $list18461875[18])
224+ let $acc1920482079 = foldFunc($acc1820482079, $list20482079[18])
221225 throw("List size exceed 18")
222226 }
223227 }
224228 }
225229 }
226230 }
227231 }
228232 }
229233 }
230234 }
231235 }
232236 }
233237 }
234238 }
235239 }
236240 }
237241 }
238242 }
239243 }
240244 }
241245 }
242246
243247
244248 func foldFuncNoHandi (score,par) = {
245249 func foldFunc (acc,i) = if ((score[i] > (par[i] + 5)))
246250 then (acc :+ (par[i] + 5))
247251 else (acc :+ score[i])
248252
249- let $list20992128 = score
250- let $size20992128 = size($list20992128)
251- let $acc020992128 = nil
252- if (($size20992128 == 0))
253- then $acc020992128
253+ let $list23532384 = numList
254+ let $size23532384 = size($list23532384)
255+ let $acc023532384 = nil
256+ if (($size23532384 == 0))
257+ then $acc023532384
254258 else {
255- let $acc120992128 = foldFunc($acc020992128, $list20992128[0])
256- if (($size20992128 == 1))
257- then $acc120992128
259+ let $acc123532384 = foldFunc($acc023532384, $list23532384[0])
260+ if (($size23532384 == 1))
261+ then $acc123532384
258262 else {
259- let $acc220992128 = foldFunc($acc120992128, $list20992128[1])
260- if (($size20992128 == 2))
261- then $acc220992128
263+ let $acc223532384 = foldFunc($acc123532384, $list23532384[1])
264+ if (($size23532384 == 2))
265+ then $acc223532384
262266 else {
263- let $acc320992128 = foldFunc($acc220992128, $list20992128[2])
264- if (($size20992128 == 3))
265- then $acc320992128
267+ let $acc323532384 = foldFunc($acc223532384, $list23532384[2])
268+ if (($size23532384 == 3))
269+ then $acc323532384
266270 else {
267- let $acc420992128 = foldFunc($acc320992128, $list20992128[3])
268- if (($size20992128 == 4))
269- then $acc420992128
271+ let $acc423532384 = foldFunc($acc323532384, $list23532384[3])
272+ if (($size23532384 == 4))
273+ then $acc423532384
270274 else {
271- let $acc520992128 = foldFunc($acc420992128, $list20992128[4])
272- if (($size20992128 == 5))
273- then $acc520992128
275+ let $acc523532384 = foldFunc($acc423532384, $list23532384[4])
276+ if (($size23532384 == 5))
277+ then $acc523532384
274278 else {
275- let $acc620992128 = foldFunc($acc520992128, $list20992128[5])
276- if (($size20992128 == 6))
277- then $acc620992128
279+ let $acc623532384 = foldFunc($acc523532384, $list23532384[5])
280+ if (($size23532384 == 6))
281+ then $acc623532384
278282 else {
279- let $acc720992128 = foldFunc($acc620992128, $list20992128[6])
280- if (($size20992128 == 7))
281- then $acc720992128
283+ let $acc723532384 = foldFunc($acc623532384, $list23532384[6])
284+ if (($size23532384 == 7))
285+ then $acc723532384
282286 else {
283- let $acc820992128 = foldFunc($acc720992128, $list20992128[7])
284- if (($size20992128 == 8))
285- then $acc820992128
287+ let $acc823532384 = foldFunc($acc723532384, $list23532384[7])
288+ if (($size23532384 == 8))
289+ then $acc823532384
286290 else {
287- let $acc920992128 = foldFunc($acc820992128, $list20992128[8])
288- if (($size20992128 == 9))
289- then $acc920992128
291+ let $acc923532384 = foldFunc($acc823532384, $list23532384[8])
292+ if (($size23532384 == 9))
293+ then $acc923532384
290294 else {
291- let $acc1020992128 = foldFunc($acc920992128, $list20992128[9])
292- if (($size20992128 == 10))
293- then $acc1020992128
295+ let $acc1023532384 = foldFunc($acc923532384, $list23532384[9])
296+ if (($size23532384 == 10))
297+ then $acc1023532384
294298 else {
295- let $acc1120992128 = foldFunc($acc1020992128, $list20992128[10])
296- if (($size20992128 == 11))
297- then $acc1120992128
299+ let $acc1123532384 = foldFunc($acc1023532384, $list23532384[10])
300+ if (($size23532384 == 11))
301+ then $acc1123532384
298302 else {
299- let $acc1220992128 = foldFunc($acc1120992128, $list20992128[11])
300- if (($size20992128 == 12))
301- then $acc1220992128
303+ let $acc1223532384 = foldFunc($acc1123532384, $list23532384[11])
304+ if (($size23532384 == 12))
305+ then $acc1223532384
302306 else {
303- let $acc1320992128 = foldFunc($acc1220992128, $list20992128[12])
304- if (($size20992128 == 13))
305- then $acc1320992128
307+ let $acc1323532384 = foldFunc($acc1223532384, $list23532384[12])
308+ if (($size23532384 == 13))
309+ then $acc1323532384
306310 else {
307- let $acc1420992128 = foldFunc($acc1320992128, $list20992128[13])
308- if (($size20992128 == 14))
309- then $acc1420992128
311+ let $acc1423532384 = foldFunc($acc1323532384, $list23532384[13])
312+ if (($size23532384 == 14))
313+ then $acc1423532384
310314 else {
311- let $acc1520992128 = foldFunc($acc1420992128, $list20992128[14])
312- if (($size20992128 == 15))
313- then $acc1520992128
315+ let $acc1523532384 = foldFunc($acc1423532384, $list23532384[14])
316+ if (($size23532384 == 15))
317+ then $acc1523532384
314318 else {
315- let $acc1620992128 = foldFunc($acc1520992128, $list20992128[15])
316- if (($size20992128 == 16))
317- then $acc1620992128
319+ let $acc1623532384 = foldFunc($acc1523532384, $list23532384[15])
320+ if (($size23532384 == 16))
321+ then $acc1623532384
318322 else {
319- let $acc1720992128 = foldFunc($acc1620992128, $list20992128[16])
320- if (($size20992128 == 17))
321- then $acc1720992128
323+ let $acc1723532384 = foldFunc($acc1623532384, $list23532384[16])
324+ if (($size23532384 == 17))
325+ then $acc1723532384
322326 else {
323- let $acc1820992128 = foldFunc($acc1720992128, $list20992128[17])
324- if (($size20992128 == 18))
325- then $acc1820992128
327+ let $acc1823532384 = foldFunc($acc1723532384, $list23532384[17])
328+ if (($size23532384 == 18))
329+ then $acc1823532384
326330 else {
327- let $acc1920992128 = foldFunc($acc1820992128, $list20992128[18])
331+ let $acc1923532384 = foldFunc($acc1823532384, $list23532384[18])
328332 throw("List size exceed 18")
329333 }
330334 }
331335 }
332336 }
333337 }
334338 }
335339 }
336340 }
337341 }
338342 }
339343 }
340344 }
341345 }
342346 }
343347 }
344348 }
345349 }
346350 }
347351 }
348352 }
349353
350354
351355 func scoreAdjustmentCalc (score,par,hdcpList,handicap) = if ((handicap == -1))
352356 then foldFuncNoHandi(score, par)
353357 else foldFuncHoldHandi(score, par, hdcpList, handicap)
354358
355359
356360 func scoreDifferential (scoreList,parList,hdcpList,courseRating,slopeRating,handicap) = {
357361 let scoreAdjustmentList = scoreAdjustmentCalc(scoreList, parList, hdcpList, handicap)
358362 let scoreAdjustedTotal = listSum(scoreAdjustmentList)
359363 let scoreSum = listSum(scoreList)
360364 let pcc = 0
361365 let a = (113 / slopeRating)
362366 let b = ((scoreAdjustedTotal - courseRating) - pcc)
363367 let c = 1
364368 let result = fraction(a, b, c, HALFUP)
365369 result
366370 }
367371
368372
373+func handicapIndexRequirements (num) = if ((num > 54))
374+ then 54
375+ else if ((0 > num))
376+ then 0
377+ else num
378+
379+
369380 let count = 1
370381
371382 @Callable(i)
372-func issueHandicapIndex () = {
383+func issueHandicapIndex (course1Par,course1Hdcp) = {
373384 let currentKey = toBase58String(i.caller.bytes)
374385 let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) {
375386 case a: Int =>
376387 a
377388 case _ =>
378389 -1
379390 }
380391 let getRoundCount = match getInteger(this, (currentKey + "_round_count")) {
381392 case a: Int =>
382393 a
383394 case _ =>
384395 -1
385396 }
386397 let scoreString = "4_&&_4_&&_4_&&_5_&&_5_&&_5_&&_5_&&_5_&&_5_&&_5_&&_3_&&_5_&&_4_&&_4_&&_5_&&_6_&&_6_&&_6"
387398 let roundCourseString = "3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ_&&_course_1_&&_course_2_&&_green_1_&&_70_&&_110_&&_men_&&_1622640688000_&&_cloudy_&&_11"
388399 let score1 = parseIntList(split(scoreString, "_&&_"))
389400 let score2 = parseIntList(split(scoreString, "_&&_"))
390401 let score3 = parseIntList(split(scoreString, "_&&_"))
391402 let roundCourse1 = split(roundCourseString, "_&&_")
392403 let roundCourse2 = split(roundCourseString, "_&&_")
393404 let roundCourse3 = split(roundCourseString, "_&&_")
394- if ((count == 1))
395- then throw(((("score18=>" + toString(score1[17])) + "/courseAddress=>") + roundCourse1[0]))
396- else {
397- let averageScoreHistry = 0
398-[IntegerEntry("", 1)]
399- }
405+ let scoreDifferential1 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex)
406+ let scoreDifferential2 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex)
407+ let scoreDifferential3 = scoreDifferential(score1, course1Par, course1Hdcp, parseIntValue(roundCourse1[5]), parseIntValue(roundCourse1[6]), getHandicapIndex)
408+ let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3])
409+ let result = (scoreDifferentialLowest - 2)
410+ let handicapIndex = handicapIndexRequirements(result)
411+[Reissue(handiId, handicapIndex, false), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), ScriptTransfer(i.caller, handicapIndex, handiId)]
400412 }
401413
402414
403415 @Verifier(tx)
404416 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
405417

github/deemru/w8io/026f985 
413.69 ms