Skip to content

Commit

Permalink
fix: fetch vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 10, 2024
1 parent 9362f14 commit b99d2a4
Show file tree
Hide file tree
Showing 26 changed files with 185 additions and 156 deletions.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func processServer(chainID uint64) {
**************************************************************************************************/
func main() {
initFlags()
ethereum.Initialize()
go ListenToSignals()

var wg sync.WaitGroup
Expand Down
1 change: 1 addition & 0 deletions common/env/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ func init() {
for k := range CHAINS {
SUPPORTED_CHAIN_IDS = append(SUPPORTED_CHAIN_IDS, k)
}
logs.Pretty(ETHEREUM.RpcURI)
}
5 changes: 4 additions & 1 deletion common/ethereum/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
** Then it will create the multicall clients for each chain.
** Then, it will init the blockTimeSyncMap for all the chains.
***************************************************************************************************/
func init() {
func Initialize() {
// Create the RPC client for all the chains supported by yDaemon
for _, chain := range env.GetChains() {
client, err := ethclient.Dial(GetRPCURI(chain.ID))
Expand All @@ -41,4 +41,7 @@ func init() {
chain.MulticallContract.Address,
)
}
for _, chain := range env.GetChains() {
logs.Pretty(GetRPCURI(chain.ID))
}
}
12 changes: 6 additions & 6 deletions data/meta/strategies/1.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:12:38.783877+01:00",
"lastUpdate": "2024-11-10T12:12:36.673032+01:00",
"version": {
"major": 0,
"minor": 3,
"patch": 104
"patch": 150
},
"shouldRefresh": false,
"strategies": {
Expand Down Expand Up @@ -4189,7 +4189,7 @@
"lastTotalGain": "0",
"lastPerformanceFee": "500",
"lastReport": "1730241935",
"lastDebtRatio": "380",
"lastDebtRatio": "303",
"isRetired": true,
"displayName": "",
"description": "",
Expand Down Expand Up @@ -5201,7 +5201,7 @@
"lastTotalGain": "0",
"lastPerformanceFee": "500",
"lastReport": "1730241935",
"lastDebtRatio": "5180",
"lastDebtRatio": "4119",
"isRetired": true,
"displayName": "",
"description": "",
Expand Down Expand Up @@ -12929,7 +12929,7 @@
"lastTotalGain": "0",
"lastPerformanceFee": "500",
"lastReport": "1730241935",
"lastDebtRatio": "3701",
"lastDebtRatio": "2943",
"isRetired": true,
"displayName": "",
"description": "",
Expand Down Expand Up @@ -18501,7 +18501,7 @@
"lastTotalGain": "0",
"lastPerformanceFee": "500",
"lastReport": "1721974247",
"lastDebtRatio": "739",
"lastDebtRatio": "587",
"isRetired": true,
"displayName": "",
"description": "",
Expand Down
4 changes: 2 additions & 2 deletions data/meta/strategies/10.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:07:04.050924+01:00",
"lastUpdate": "2024-11-10T12:12:44.359541+01:00",
"version": {
"major": 0,
"minor": 10,
"patch": 37
"patch": 63
},
"shouldRefresh": false,
"strategies": {
Expand Down
4 changes: 2 additions & 2 deletions data/meta/strategies/100.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:06:46.692025+01:00",
"lastUpdate": "2024-11-10T12:12:05.918298+01:00",
"version": {
"major": 0,
"minor": 3,
"patch": 31
"patch": 39
},
"shouldRefresh": false,
"strategies": {
Expand Down
6 changes: 3 additions & 3 deletions data/meta/strategies/137.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:06:51.497088+01:00",
"lastUpdate": "2024-11-10T12:12:09.048075+01:00",
"version": {
"major": 0,
"minor": 11,
"patch": 440
"minor": 1,
"patch": 119
},
"shouldRefresh": false,
"strategies": {
Expand Down
4 changes: 2 additions & 2 deletions data/meta/strategies/250.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:06:47.041964+01:00",
"lastUpdate": "2024-11-10T12:12:05.826524+01:00",
"version": {
"major": 0,
"minor": 3,
"patch": 57
"patch": 64
},
"shouldRefresh": false,
"strategies": {
Expand Down
10 changes: 5 additions & 5 deletions data/meta/strategies/42161.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:07:02.28197+01:00",
"lastUpdate": "2024-11-10T12:12:20.364637+01:00",
"version": {
"major": 0,
"minor": 33,
"patch": 746
"patch": 1110
},
"shouldRefresh": false,
"strategies": {
Expand Down Expand Up @@ -358,7 +358,7 @@
"keepCRV": null,
"keepCRVPercent": null,
"keepCVX": null,
"lastTotalDebt": "639881529788954723820106",
"lastTotalDebt": "639897732677700168832797",
"lastTotalLoss": "0",
"lastTotalGain": "0",
"lastPerformanceFee": "2000",
Expand Down Expand Up @@ -1200,12 +1200,12 @@
"keepCRV": null,
"keepCRVPercent": null,
"keepCVX": null,
"lastTotalDebt": "2806622448",
"lastTotalDebt": "27477047331",
"lastTotalLoss": "0",
"lastTotalGain": "0",
"lastPerformanceFee": "1000",
"lastReport": "1730676226",
"lastDebtRatio": "834",
"lastDebtRatio": "8167",
"isRetired": true,
"displayName": "",
"description": "",
Expand Down
6 changes: 3 additions & 3 deletions data/meta/strategies/8453.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-11-10T11:06:53.237819+01:00",
"lastUpdate": "2024-11-10T12:12:09.798118+01:00",
"version": {
"major": 0,
"minor": 14,
"patch": 70
"minor": 1,
"patch": 30
},
"shouldRefresh": false,
"strategies": {
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:12:10.557663+01:00",
"lastUpdate": "2024-11-10T12:12:08.327317+01:00",
"version": {
"major": 0,
"minor": 73,
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/10.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:07:03.091086+01:00",
"lastUpdate": "2024-11-10T12:12:43.829107+01:00",
"version": {
"major": 0,
"minor": 16,
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/100.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:06:46.267157+01:00",
"lastUpdate": "2024-11-10T12:12:05.519464+01:00",
"version": {
"major": 0,
"minor": 4,
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/137.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:06:47.197403+01:00",
"lastUpdate": "2024-11-10T12:12:05.964453+01:00",
"version": {
"major": 0,
"minor": 2,
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/250.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:06:46.673245+01:00",
"lastUpdate": "2024-11-10T12:12:05.74833+01:00",
"version": {
"major": 0,
"minor": 2,
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/42161.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:06:48.412385+01:00",
"lastUpdate": "2024-11-10T12:12:19.891956+01:00",
"version": {
"major": 0,
"minor": 37,
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/8453.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-11-10T11:06:46.53936+01:00",
"lastUpdate": "2024-11-10T12:12:05.728832+01:00",
"version": {
"major": 0,
"minor": 11,
Expand Down
Loading

0 comments on commit b99d2a4

Please sign in to comment.