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:
Old | New | | Differences |
---|
13 | 13 | | |
---|
14 | 14 | | let f = "%s__proxyAddress" |
---|
15 | 15 | | |
---|
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")) |
---|
19 | 19 | | then { |
---|
20 | | - | let i = h |
---|
21 | | - | i |
---|
| 20 | + | let j = i |
---|
| 21 | + | j |
---|
22 | 22 | | } |
---|
23 | 23 | | else 0 |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
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 | + | } |
---|
29 | 48 | | |
---|
30 | 49 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "rebalance" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "%s__targetRatio" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "%s__addittionalWavesBalance" |
---|
9 | 9 | | |
---|
10 | 10 | | let d = "%s__sWavesBalance" |
---|
11 | 11 | | |
---|
12 | 12 | | let e = "%s__sWavesAssetId" |
---|
13 | 13 | | |
---|
14 | 14 | | let f = "%s__proxyAddress" |
---|
15 | 15 | | |
---|
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")) |
---|
19 | 19 | | then { |
---|
20 | | - | let i = h |
---|
21 | | - | i |
---|
| 20 | + | let j = i |
---|
| 21 | + | j |
---|
22 | 22 | | } |
---|
23 | 23 | | else 0 |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
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 | + | } |
---|
29 | 48 | | |
---|
30 | 49 | | |
---|