tx · DgNDjkTtE1qJoLncKwwuhSkn9hhDWxyYtnCEjpdNEQPY

3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h:  -0.05000000 Waves

2023.03.27 10:34 [2508090] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves

{ "type": 13, "id": "DgNDjkTtE1qJoLncKwwuhSkn9hhDWxyYtnCEjpdNEQPY", "fee": 5000000, "feeAssetId": null, "timestamp": 1679902493735, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "23TyfgfTQFXzKmrFbQisMwCdjCYMUBJGBXKj8z8abvW9ekW3CxBD3BmirdePh41qbKYW5q2Skf48Fc8KAqK2bJzM" ], "script": "base64:BgIGCAISABIACAAMY29udHJhY3RGaWxlAglyZWJhbGFuY2UAD2tleXNUYXJnZXRSYXRpbwIPJXNfX3RhcmdldFJhdGlvABRrZXlBZGRpdGlvbmFsQmFsYW5jZQIbJXNfX2FkZGl0dGlvbmFsV2F2ZXNCYWxhbmNlABhrZXlTV2F2ZXNBZGRpdGlvbkJhbGFuY2UCESVzX19zV2F2ZXNCYWxhbmNlABBrZXlTV2F2ZXNBc3NldElkAhElc19fc1dhdmVzQXNzZXRJZAAPa2V5UHJveHlBZGRyZXNzAhAlc19fcHJveHlBZGRyZXNzARBnZXRJbnRlZ2VyT3JaZXJvAQppbnRlZ2VyS2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFCmludGVnZXJLZXkDCQABAgUHJG1hdGNoMAIDSW50BAN2YWwFByRtYXRjaDAFA3ZhbAAAARBnZXRTdHJpbmdPclRocm93AQlzdHJpbmdLZXkEByRtYXRjaDAJAJ0IAgUEdGhpcwUJc3RyaW5nS2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBcwUHJG1hdGNoMAUBcwkAAgEJAKwCAgkArAICAgFbBQlzdHJpbmdLZXkCCl0gaXMgZW1wdHkCAWkBEnJldHVybldhdmVzQmFsYW5jZQAJAJQKAgUDbmlsCQBkAggJAO8HAQUEdGhpcwdyZWd1bGFyCQEQZ2V0SW50ZWdlck9yWmVybwEFFGtleUFkZGl0aW9uYWxCYWxhbmNlAWkBE3JldHVyblNXYXZlc0JhbGFuY2UABAtzV2F2ZXNBc3NldAkAnQgCBQR0aGlzBRBrZXlTV2F2ZXNBc3NldElkCQCUCgIFA25pbAkAZAIJAPAHAgUEdGhpcwkA2QQBCQEQZ2V0U3RyaW5nT3JUaHJvdwEFEGtleVNXYXZlc0Fzc2V0SWQJARBnZXRJbnRlZ2VyT3JaZXJvAQUYa2V5U1dhdmVzQWRkaXRpb25CYWxhbmNlADhSuZw=", "height": 2508090, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2UTREQJdDQs8jDE9FDMFWNyX5eAJ1jw1oSaYXXRuzFks Next: C9PbueCwr1Y7fe6WeHxFk5chD3WVsRiAwY6hS9JQ7iup Diff:
OldNewDifferences
1313
1414 let f = "%s__proxyAddress"
1515
16-func g () = {
17- let h = getInteger(this, c)
18- if ($isInstanceOf(h, "Int"))
16+func g (h) = {
17+ let i = getInteger(this, h)
18+ if ($isInstanceOf(i, "Int"))
1919 then {
20- let i = h
21- i
20+ let j = i
21+ j
2222 }
2323 else 0
2424 }
2525
2626
27-@Callable(j)
28-func returnBalance () = $Tuple2(nil, (wavesBalance(this).regular + g()))
27+func k (l) = {
28+ let i = getString(this, l)
29+ if ($isInstanceOf(i, "String"))
30+ then {
31+ let m = i
32+ m
33+ }
34+ else throw((("[" + l) + "] is empty"))
35+ }
36+
37+
38+@Callable(n)
39+func returnWavesBalance () = $Tuple2(nil, (wavesBalance(this).regular + g(c)))
40+
41+
42+
43+@Callable(n)
44+func returnSWavesBalance () = {
45+ let o = getString(this, e)
46+ $Tuple2(nil, (assetBalance(this, fromBase58String(k(e))) + g(d)))
47+ }
2948
3049
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "rebalance"
55
66 let b = "%s__targetRatio"
77
88 let c = "%s__addittionalWavesBalance"
99
1010 let d = "%s__sWavesBalance"
1111
1212 let e = "%s__sWavesAssetId"
1313
1414 let f = "%s__proxyAddress"
1515
16-func g () = {
17- let h = getInteger(this, c)
18- if ($isInstanceOf(h, "Int"))
16+func g (h) = {
17+ let i = getInteger(this, h)
18+ if ($isInstanceOf(i, "Int"))
1919 then {
20- let i = h
21- i
20+ let j = i
21+ j
2222 }
2323 else 0
2424 }
2525
2626
27-@Callable(j)
28-func returnBalance () = $Tuple2(nil, (wavesBalance(this).regular + g()))
27+func k (l) = {
28+ let i = getString(this, l)
29+ if ($isInstanceOf(i, "String"))
30+ then {
31+ let m = i
32+ m
33+ }
34+ else throw((("[" + l) + "] is empty"))
35+ }
36+
37+
38+@Callable(n)
39+func returnWavesBalance () = $Tuple2(nil, (wavesBalance(this).regular + g(c)))
40+
41+
42+
43+@Callable(n)
44+func returnSWavesBalance () = {
45+ let o = getString(this, e)
46+ $Tuple2(nil, (assetBalance(this, fromBase58String(k(e))) + g(d)))
47+ }
2948
3049

github/deemru/w8io/026f985 
19.65 ms