tx · 2XVy7W7F4c4AucAxAEnM9VjqHr5MsW3svXvqKivYuPS4

3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ:  -0.01400000 Waves

2021.06.04 05:42 [1555040] smart account 3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ > SELF 0.00000000 Waves

{ "type": 13, "id": "2XVy7W7F4c4AucAxAEnM9VjqHr5MsW3svXvqKivYuPS4", "fee": 1400000, "feeAssetId": null, "timestamp": 1622774598135, "version": 2, "chainId": 84, "sender": "3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ", "senderPublicKey": "8uKVzAZCurBgbPFEaE9HYgJBH3oZsefwxNMgj4srAFJ9", "proofs": [ "T1QSw3Wy2FCBp41FwacnA2o3ZSYjPrP5m96Uk21UABVxboYqoKiBqkeuCathHjzTTv3dydxwB9h642h4epMTCC7" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQBAQEIAAAAAgAAAAAHaGFuZGlJZAEAAAAgmQAVX3L5MYxyaOxZ0FMoThkZR49kvwgxlwjo6C/iIRcBAAAAGWhhbmRpY2FwSW5kZXhSZXF1aXJlbWVudHMAAAABAAAAA251bQMJAABmAAAAAgUAAAADbnVtAAAAAAAAAAA2AAAAAAAAAAA2AwkAAGYAAAACAAAAAAAAAAAABQAAAANudW0AAAAAAAAAAAAFAAAAA251bQAAAAEAAAABaQEAAAAOcmVzdWx0SGFuZGljYXAAAAAEAAAAEnNjb3JlRGlmZmVyZW50aWFsMQAAABJzY29yZURpZmZlcmVudGlhbDIAAAASc2NvcmVEaWZmZXJlbnRpYWwzAAAACmN1cnJlbnRLZXkEAAAABWNvdW50AAAAAAAAAAABBAAAABdzY29yZURpZmZlcmVudGlhbExvd2VzdAkAAZYAAAABCQAETAAAAAIFAAAAEnNjb3JlRGlmZmVyZW50aWFsMQkABEwAAAACBQAAABJzY29yZURpZmZlcmVudGlhbDIJAARMAAAAAgUAAAASc2NvcmVEaWZmZXJlbnRpYWwzBQAAAANuaWwEAAAABnJlc3VsdAkAAGUAAAACBQAAABdzY29yZURpZmZlcmVudGlhbExvd2VzdAAAAAAAAAAAAgQAAAANaGFuZGljYXBJbmRleAkBAAAAGWhhbmRpY2FwSW5kZXhSZXF1aXJlbWVudHMAAAABBQAAAAZyZXN1bHQDCQAAAAAAAAIFAAAABWNvdW50AAAAAAAAAAABCQAAAgAAAAEJAAGkAAAAAQUAAAANaGFuZGljYXBJbmRleAkABRQAAAACCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAAZyZXN1bHQGCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAACmN1cnJlbnRLZXkCAAAADl9oYW5kaWNhcEluZGV4BQAAAA1oYW5kaWNhcEluZGV4CQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAAHaGFuZGlJZAUAAAANaGFuZGljYXBJbmRleAcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1oYW5kaWNhcEluZGV4BQAAAAdoYW5kaUlkBQAAAANuaWwFAAAADWhhbmRpY2FwSW5kZXgAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlearfB5Y=", "height": 1555040, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: T2DuyaA4XdGoMoZoc3iHGRCNCUyRGABVDcB2YYpZopZ Next: 4rk7fDXFE1QCyJJNUejb5adTjkmsQ1NNuB7JDyUHBw3P Diff:
OldNewDifferences
1212
1313 @Callable(d)
1414 func resultHandicap (e,f,g,h) = {
15- let i = max([e, f, g])
16- let j = (i - 2)
17- let k = b(j)
18- $Tuple2([BooleanEntry("result", true), IntegerEntry((h + "_handicapIndex"), k), Reissue(a, k, false), ScriptTransfer(d.caller, k, a)], k)
15+ let i = 1
16+ let j = max([e, f, g])
17+ let k = (j - 2)
18+ let l = b(k)
19+ if ((i == 1))
20+ then throw(toString(l))
21+ else $Tuple2([BooleanEntry("result", true), IntegerEntry((h + "_handicapIndex"), l), Reissue(a, l, false), ScriptTransfer(d.caller, l, a)], l)
1922 }
2023
2124
22-@Verifier(l)
23-func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
25+@Verifier(m)
26+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
2427
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ'
55
66 func b (c) = if ((c > 54))
77 then 54
88 else if ((0 > c))
99 then 0
1010 else c
1111
1212
1313 @Callable(d)
1414 func resultHandicap (e,f,g,h) = {
15- let i = max([e, f, g])
16- let j = (i - 2)
17- let k = b(j)
18- $Tuple2([BooleanEntry("result", true), IntegerEntry((h + "_handicapIndex"), k), Reissue(a, k, false), ScriptTransfer(d.caller, k, a)], k)
15+ let i = 1
16+ let j = max([e, f, g])
17+ let k = (j - 2)
18+ let l = b(k)
19+ if ((i == 1))
20+ then throw(toString(l))
21+ else $Tuple2([BooleanEntry("result", true), IntegerEntry((h + "_handicapIndex"), l), Reissue(a, l, false), ScriptTransfer(d.caller, l, a)], l)
1922 }
2023
2124
22-@Verifier(l)
23-func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
25+@Verifier(m)
26+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
2427

github/deemru/w8io/026f985 
36.27 ms