Skip to content

Commit f3e23c5

Browse files
committed
fix: base
1 parent dfd6e1e commit f3e23c5

File tree

6 files changed

+30
-37
lines changed

6 files changed

+30
-37
lines changed

common/env/chain.ethereum.go

-4
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ var ETHEREUM = TChain{
202202
common.HexToAddress(`0x9a96ec9B57Fb64FbC60B423d1f4da7691Bd35079`), // Ajna
203203
common.HexToAddress(`0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6`), // apxETH
204204
common.HexToAddress(`0x04C154b66CB340F3Ae24111CC767e0184Ed00Cc6`), // pxETH
205-
common.HexToAddress(`0x2E919d27D515868f3D5Bc9110fa738f9449FC6ad`),
206-
common.HexToAddress(`0xe92AE2cF5b373c1713eB5855D4D3aF81D8a8aCAE`),
207-
common.HexToAddress(`0x718AbE90777F5B778B52D553a5aBaa148DD0dc5D`),
208-
common.HexToAddress(`0x7AB4a7BE740131BdE216521B54ADddD672F44A05`),
209205
},
210206
IgnoredTokens: []common.Address{
211207
common.HexToAddress(`0x7AB4a7BE740131BdE216521B54ADddD672F44A05`), // nothing

data/meta/strategies/8453.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"lastUpdate": "2025-04-10T14:36:43.872126+02:00",
2+
"lastUpdate": "2025-04-10T14:53:35.902199+02:00",
33
"version": {
44
"major": 0,
55
"minor": 79,
6-
"patch": 91
6+
"patch": 181
77
},
88
"shouldRefresh": false,
99
"strategies": {
@@ -786,7 +786,7 @@
786786
"lastPerformanceFee": "1000",
787787
"lastReport": "1744054503",
788788
"lastDebtRatio": "10000",
789-
"netAPR": 0.05249381365377559,
789+
"netAPR": 0.05188344499782449,
790790
"aprType": "forward",
791791
"protocols": null
792792
},
@@ -867,7 +867,7 @@
867867
"lastPerformanceFee": "1000",
868868
"lastReport": "1744206281",
869869
"lastDebtRatio": "84",
870-
"netAPR": 0.00010412872597509448,
870+
"netAPR": 0.00010412872712972643,
871871
"aprType": "forward",
872872
"protocols": null
873873
},
@@ -1461,7 +1461,7 @@
14611461
"lastPerformanceFee": "1000",
14621462
"lastReport": "1744206281",
14631463
"lastDebtRatio": "2101",
1464-
"netAPR": 0.005418515830690751,
1464+
"netAPR": 0.005418516747512925,
14651465
"aprType": "forward",
14661466
"protocols": null
14671467
},
@@ -1704,7 +1704,7 @@
17041704
"lastPerformanceFee": "1000",
17051705
"lastReport": "1744237503",
17061706
"lastDebtRatio": "5003",
1707-
"netAPR": 0.05669210051062468,
1707+
"netAPR": 0.04790197205768454,
17081708
"aprType": "forward",
17091709
"protocols": null
17101710
},
@@ -1839,7 +1839,7 @@
18391839
"lastPerformanceFee": "0",
18401840
"lastReport": "1743516603",
18411841
"lastDebtRatio": "5000",
1842-
"netAPR": 0.05118546206752672,
1842+
"netAPR": 0.05130433431923542,
18431843
"aprType": "forward",
18441844
"protocols": null
18451845
},
@@ -1947,7 +1947,7 @@
19471947
"lastPerformanceFee": "0",
19481948
"lastReport": "1744237491",
19491949
"lastDebtRatio": "4997",
1950-
"netAPR": 0.05118546206752672,
1950+
"netAPR": 0.05130433431923542,
19511951
"aprType": "forward",
19521952
"protocols": null
19531953
},

data/meta/tokens/8453.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lastUpdate": "2025-04-10T14:36:43.383598+02:00",
2+
"lastUpdate": "2025-04-10T14:53:31.970709+02:00",
33
"version": {
44
"major": 0,
55
"minor": 24,

data/meta/vaults/8453.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"lastUpdate": "2025-04-10T14:40:16.073702+02:00",
2+
"lastUpdate": "2025-04-10T14:53:26.332376+02:00",
33
"version": {
44
"major": 1,
55
"minor": 44,
6-
"patch": 172
6+
"patch": 250
77
},
88
"shouldRefresh": false,
99
"vaults": {
@@ -90,7 +90,7 @@
9090
"managementFee": 0,
9191
"emergencyShutdown": false,
9292
"lastActiveStrategies": [],
93-
"lastPricePerShare": "102129954",
93+
"lastPricePerShare": "102130006",
9494
"lastTotalAssets": "50190424",
9595
"metadata": {
9696
"isRetired": false,
@@ -1476,7 +1476,7 @@
14761476
"lastActiveStrategies": [
14771477
"0x4161255639d94ee0a1d4c27fe0f863293f6a9798"
14781478
],
1479-
"lastPricePerShare": "1485700915095178026",
1479+
"lastPricePerShare": "1485703706796590678",
14801480
"lastTotalAssets": "619186012870016298419589",
14811481
"metadata": {
14821482
"isRetired": false,
@@ -1617,7 +1617,7 @@
16171617
"0x7c0fa3905b38d44c0f29150fd61f182d1e097ec2",
16181618
"0x8436027a799ac6c8b512e68b4d3852217c63647d"
16191619
],
1620-
"lastPricePerShare": "1019606864241544321",
1620+
"lastPricePerShare": "1019607838087780129",
16211621
"lastTotalAssets": "35017101257941212",
16221622
"metadata": {
16231623
"isRetired": false,
@@ -1950,7 +1950,7 @@
19501950
"0x5b6c2b7ac69ad287c7c9eb85e725f3799695df09": {
19511951
"address": "0x5b6c2b7ac69ad287c7c9eb85e725f3799695df09",
19521952
"token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
1953-
"registry": "0x0000000000000000000000000000000000000000",
1953+
"registry": "0x770d0d1fb036483ed4abb6d53c1c88fb277d812f",
19541954
"type": "Yearn Vault",
19551955
"kind": "Multi Strategy",
19561956
"version": "3.0.4",
@@ -1965,7 +1965,7 @@
19651965
"0x5f6511489c9e770a07fb1ae2969abe350a3d2cf4",
19661966
"0x4b5c90dc6bc08a10a24487726e614e9d148362e1"
19671967
],
1968-
"lastPricePerShare": "1084988",
1968+
"lastPricePerShare": "1086755",
19691969
"lastTotalAssets": "702069",
19701970
"metadata": {
19711971
"isRetired": false,
@@ -2173,7 +2173,7 @@
21732173
"lastActiveStrategies": [
21742174
"0x81bdd5e8fbde5a85a2d38761d03d2307fe69a329"
21752175
],
2176-
"lastPricePerShare": "1001124034134532385",
2176+
"lastPricePerShare": "1001124037457768173",
21772177
"lastTotalAssets": "47667339946790407",
21782178
"metadata": {
21792179
"isRetired": false,
@@ -2720,7 +2720,7 @@
27202720
"managementFee": 0,
27212721
"emergencyShutdown": false,
27222722
"lastActiveStrategies": [],
2723-
"lastPricePerShare": "1027550094402512929",
2723+
"lastPricePerShare": "1027551568686440526",
27242724
"lastTotalAssets": "50863147397658117793",
27252725
"metadata": {
27262726
"isRetired": false,
@@ -3677,7 +3677,7 @@
36773677
"managementFee": 0,
36783678
"emergencyShutdown": false,
36793679
"lastActiveStrategies": [],
3680-
"lastPricePerShare": "1020049",
3680+
"lastPricePerShare": "1020051",
36813681
"lastTotalAssets": "5688245891",
36823682
"metadata": {
36833683
"isRetired": false,
@@ -3818,7 +3818,7 @@
38183818
"0xdd120ded7c1c9e4978f92847bcb24847a9dbb071",
38193819
"0xd89a4f020c8d256a2a4b0dc40b36ee0b27680776"
38203820
],
3821-
"lastPricePerShare": "1009780123040825496",
3821+
"lastPricePerShare": "1009780180007351272",
38223822
"lastTotalAssets": "43183844734102496",
38233823
"metadata": {
38243824
"isRetired": false,
@@ -4648,7 +4648,7 @@
46484648
"0x945df73d55557ea23c0c35cd350d8de3b745287e",
46494649
"0x0ace53f57a14acfd4d43c7d4c46be4b4a5347eff"
46504650
],
4651-
"lastPricePerShare": "1017149",
4651+
"lastPricePerShare": "1017150",
46524652
"lastTotalAssets": "214889698",
46534653
"metadata": {
46544654
"isRetired": false,
@@ -4789,7 +4789,7 @@
47894789
"0xe9f2a5f9f3c846f29066d7fb3564f8e6b6b2d65b",
47904790
"0xd5428b889621eee8060fc105aa0ab0fa2e344468"
47914791
],
4792-
"lastPricePerShare": "1000806",
4792+
"lastPricePerShare": "1000809",
47934793
"lastTotalAssets": "50797751",
47944794
"metadata": {
47954795
"isRetired": false,
@@ -4856,7 +4856,7 @@
48564856
"managementFee": 0,
48574857
"emergencyShutdown": false,
48584858
"lastActiveStrategies": [],
4859-
"lastPricePerShare": "1052660",
4859+
"lastPricePerShare": "1052664",
48604860
"lastTotalAssets": "21735050662",
48614861
"metadata": {
48624862
"isRetired": false,
@@ -4993,7 +4993,7 @@
49934993
"managementFee": 0,
49944994
"emergencyShutdown": false,
49954995
"lastActiveStrategies": [],
4996-
"lastPricePerShare": "1011763193684620835",
4996+
"lastPricePerShare": "1011763282781059036",
49974997
"lastTotalAssets": "30700345628337992",
49984998
"metadata": {
49994999
"isRetired": false,
@@ -5264,7 +5264,7 @@
52645264
"managementFee": 0,
52655265
"emergencyShutdown": false,
52665266
"lastActiveStrategies": [],
5267-
"lastPricePerShare": "1652955899296183676",
5267+
"lastPricePerShare": "1653145947816692707",
52685268
"lastTotalAssets": "514918011242083",
52695269
"metadata": {
52705270
"isRetired": false,
@@ -5537,7 +5537,7 @@
55375537
"managementFee": 0,
55385538
"emergencyShutdown": false,
55395539
"lastActiveStrategies": [],
5540-
"lastPricePerShare": "1027755",
5540+
"lastPricePerShare": "1027757",
55415541
"lastTotalAssets": "58488386015",
55425542
"metadata": {
55435543
"isRetired": false,

external/vaults/models.strategies.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type TExternalStrategy struct {
4848
Name string `json:"name"`
4949
Description string `json:"description,omitempty"`
5050
Status string `json:"status"`
51-
NetAPR *bigNumber.Float `json:"netAPR,omitempty"`
51+
NetAPR float64 `json:"netAPR,omitempty"`
5252
Details *TExternalStrategyDetails `json:"details,omitempty"`
5353
}
5454

@@ -83,7 +83,7 @@ func CreateExternalStrategy(strategy models.TStrategy) TExternalStrategy {
8383
Name: name,
8484
Description: strategy.Description,
8585
Status: status,
86-
NetAPR: bigNumber.NewFloat(strategy.NetAPR),
86+
NetAPR: strategy.NetAPR,
8787
Details: &TExternalStrategyDetails{
8888
TotalDebt: strategy.LastTotalDebt,
8989
TotalLoss: strategy.LastTotalLoss,

external/vaults/prepare.getVaults.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package vaults
33
import (
44
"fmt"
55
"net/http"
6+
"strconv"
67
"strings"
78

89
"github.com/gin-gonic/gin"
@@ -166,9 +167,7 @@ func getVaults(
166167
// Process vault data - use the optimized CreateExternalVault function
167168
newVault, err := CreateExternalVault(currentVault)
168169
if err != nil {
169-
logs.Error(fmt.Errorf("failed to process vault %s on chain %d: %s",
170-
currentVault.Address.Hex(), chainID, err), http.StatusInternalServerError,
171-
"Error processing vault data", "GetVaults")
170+
logs.Error("failed to process vault " + currentVault.Address.Hex() + " on chain " + strconv.FormatUint(chainID, 10) + ": " + err.Error())
172171
continue
173172
}
174173

@@ -230,8 +229,6 @@ func getVaults(
230229
}
231230
data := allVaults[start:end]
232231

233-
logs.Pretty(len(data))
234-
235232
return data, nil
236233
}
237234

0 commit comments

Comments
 (0)