tx · 2UTREQJdDQs8jDE9FDMFWNyX5eAJ1jw1oSaYXXRuzFks
3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h: -0.05000000 Waves
2023.03.27 10:27 [2508082] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves
{
"type": 13,
"id": "2UTREQJdDQs8jDE9FDMFWNyX5eAJ1jw1oSaYXXRuzFks",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1679902083635,
"version": 2,
"chainId": 84,
"sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h",
"senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2",
"proofs": [
"31noTZPBjE2ZbMSSWKjtJ2pMySm5qqixhqQuakL4aTLpsZmwskNUqb2ZHLEkAkUJJYaUQf6fKcG7bZ49TQUCRNea"
],
"script": "base64:BgIECAISAAcADGNvbnRyYWN0RmlsZQIJcmViYWxhbmNlAA9rZXlzVGFyZ2V0UmF0aW8CDyVzX190YXJnZXRSYXRpbwAUa2V5QWRkaXRpb25hbEJhbGFuY2UCGyVzX19hZGRpdHRpb25hbFdhdmVzQmFsYW5jZQAYa2V5U1dhdmVzQWRkaXRpb25CYWxhbmNlAhElc19fc1dhdmVzQmFsYW5jZQAQa2V5U1dhdmVzQXNzZXRJZAIRJXNfX3NXYXZlc0Fzc2V0SWQAD2tleVByb3h5QWRkcmVzcwIQJXNfX3Byb3h5QWRkcmVzcwEaZ2V0QWRkaXRpb25hbEJhbGFuY2VPclplcm8ABAckbWF0Y2gwCQCaCAIFBHRoaXMFFGtleUFkZGl0aW9uYWxCYWxhbmNlAwkAAQIFByRtYXRjaDACA0ludAQDYmFsBQckbWF0Y2gwBQNiYWwAAAEBaQENcmV0dXJuQmFsYW5jZQAJAJQKAgUDbmlsCQBkAggJAO8HAQUEdGhpcwdyZWd1bGFyCQEaZ2V0QWRkaXRpb25hbEJhbGFuY2VPclplcm8AAMeYn1c=",
"height": 2508082,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4nhaxZM7y4xrMDrbxkEcbVR2cLhjEcziFVytLtDVaSUn
Next: DgNDjkTtE1qJoLncKwwuhSkn9hhDWxyYtnCEjpdNEQPY
Diff:
Old | New | | Differences |
---|
13 | 13 | | |
---|
14 | 14 | | let keyProxyAddress = "%s__proxyAddress" |
---|
15 | 15 | | |
---|
16 | | - | func getAdditionalBalanceOrZero () = { |
---|
17 | | - | let additionalBalance = getIntegerValue(this, keyAdditionalBalance) |
---|
18 | | - | match additionalBalance { |
---|
19 | | - | case bal: Int => |
---|
20 | | - | bal |
---|
21 | | - | case _ => |
---|
22 | | - | 0 |
---|
23 | | - | } |
---|
24 | | - | } |
---|
| 16 | + | func getAdditionalBalanceOrZero () = match getInteger(this, keyAdditionalBalance) { |
---|
| 17 | + | case bal: Int => |
---|
| 18 | + | bal |
---|
| 19 | + | case _ => |
---|
| 20 | + | 0 |
---|
| 21 | + | } |
---|
25 | 22 | | |
---|
26 | 23 | | |
---|
27 | 24 | | @Callable(i) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let contractFile = "rebalance" |
---|
5 | 5 | | |
---|
6 | 6 | | let keysTargetRatio = "%s__targetRatio" |
---|
7 | 7 | | |
---|
8 | 8 | | let keyAdditionalBalance = "%s__addittionalWavesBalance" |
---|
9 | 9 | | |
---|
10 | 10 | | let keySWavesAdditionBalance = "%s__sWavesBalance" |
---|
11 | 11 | | |
---|
12 | 12 | | let keySWavesAssetId = "%s__sWavesAssetId" |
---|
13 | 13 | | |
---|
14 | 14 | | let keyProxyAddress = "%s__proxyAddress" |
---|
15 | 15 | | |
---|
16 | | - | func getAdditionalBalanceOrZero () = { |
---|
17 | | - | let additionalBalance = getIntegerValue(this, keyAdditionalBalance) |
---|
18 | | - | match additionalBalance { |
---|
19 | | - | case bal: Int => |
---|
20 | | - | bal |
---|
21 | | - | case _ => |
---|
22 | | - | 0 |
---|
23 | | - | } |
---|
24 | | - | } |
---|
| 16 | + | func getAdditionalBalanceOrZero () = match getInteger(this, keyAdditionalBalance) { |
---|
| 17 | + | case bal: Int => |
---|
| 18 | + | bal |
---|
| 19 | + | case _ => |
---|
| 20 | + | 0 |
---|
| 21 | + | } |
---|
25 | 22 | | |
---|
26 | 23 | | |
---|
27 | 24 | | @Callable(i) |
---|
28 | 25 | | func returnBalance () = $Tuple2(nil, (wavesBalance(this).regular + getAdditionalBalanceOrZero())) |
---|
29 | 26 | | |
---|
30 | 27 | | |
---|