@@ -235,7 +235,9 @@ export class EarnController extends BaseController<
235235 this . #selectedNetworkClientId
236236 ) {
237237 this . #initializeSDK( networkControllerState . selectedNetworkClientId ) ;
238- this . refreshPooledStakingData ( ) . catch ( console . error ) ;
238+ this . refreshPooledStakingVaultMetadata ( ) . catch ( console . error ) ;
239+ this . refreshPooledStakingVaultDailyApys ( ) . catch ( console . error ) ;
240+ this . refreshPooledStakingVaultApyAverages ( ) . catch ( console . error ) ;
239241 }
240242 this . #selectedNetworkClientId =
241243 networkControllerState . selectedNetworkClientId ;
@@ -246,7 +248,7 @@ export class EarnController extends BaseController<
246248 this . messagingSystem . subscribe (
247249 'AccountsController:selectedAccountChange' ,
248250 ( ) => {
249- this . refreshPooledStakingData ( ) . catch ( console . error ) ;
251+ this . refreshStakingEligibility ( ) . catch ( console . error ) ;
250252 } ,
251253 ) ;
252254 }
@@ -360,13 +362,13 @@ export class EarnController extends BaseController<
360362 }
361363
362364 /**
363- * Refreshes vault metadata for the current chain.
365+ * Refreshes pooled staking vault metadata for the current chain.
364366 * Updates the vault metadata in the controller state including APY, capacity,
365367 * fee percentage, total assets, and vault address.
366368 *
367369 * @returns A promise that resolves when the vault metadata has been updated
368370 */
369- async refreshVaultMetadata ( ) : Promise < void > {
371+ async refreshPooledStakingVaultMetadata ( ) : Promise < void > {
370372 const chainId = this . #getCurrentChainId( ) ;
371373 const vaultMetadata = await this . #stakingApiService. getVaultData ( chainId ) ;
372374
@@ -434,7 +436,7 @@ export class EarnController extends BaseController<
434436 this . refreshStakingEligibility ( ) . catch ( ( error ) => {
435437 errors . push ( error ) ;
436438 } ) ,
437- this . refreshVaultMetadata ( ) . catch ( ( error ) => {
439+ this . refreshPooledStakingVaultMetadata ( ) . catch ( ( error ) => {
438440 errors . push ( error ) ;
439441 } ) ,
440442 this . refreshPooledStakingVaultDailyApys ( ) . catch ( ( error ) => {
0 commit comments