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(i)
1414 func resultHandicap (scoreDifferential1,scoreDifferential2,scoreDifferential3,currentKey) = {
15+ let count = 1
1516 let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3])
1617 let result = (scoreDifferentialLowest - 2)
1718 let handicapIndex = handicapIndexRequirements(result)
18- $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex)
19+ if ((count == 1))
20+ then throw(toString(handicapIndex))
21+ else $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex)
1922 }
2023
2124
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let handiId = base58'BJFTCAVHNhppygeLqYUyG5NB9GwNRjEjFeweJpXXi1DQ'
55
66 func handicapIndexRequirements (num) = if ((num > 54))
77 then 54
88 else if ((0 > num))
99 then 0
1010 else num
1111
1212
1313 @Callable(i)
1414 func resultHandicap (scoreDifferential1,scoreDifferential2,scoreDifferential3,currentKey) = {
15+ let count = 1
1516 let scoreDifferentialLowest = max([scoreDifferential1, scoreDifferential2, scoreDifferential3])
1617 let result = (scoreDifferentialLowest - 2)
1718 let handicapIndex = handicapIndexRequirements(result)
18- $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex)
19+ if ((count == 1))
20+ then throw(toString(handicapIndex))
21+ else $Tuple2([BooleanEntry("result", true), IntegerEntry((currentKey + "_handicapIndex"), handicapIndex), Reissue(handiId, handicapIndex, false), ScriptTransfer(i.caller, handicapIndex, handiId)], handicapIndex)
1922 }
2023
2124
2225 @Verifier(tx)
2326 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2427

github/deemru/w8io/026f985 
30.75 ms