Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updated refreshPooledStakingVaultDailyApys days arg default value to 365 #5453

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/earn-controller/src/EarnController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ export class EarnController extends BaseController<
* Refreshes pooled staking vault daily apys for the current chain.
* Updates the pooled staking vault daily apys controller state.
*
* @param days - The number of days to fetch pooled staking vault daily apys for (defaults to 30).
* @param days - The number of days to fetch pooled staking vault daily apys for (defaults to 365).
* @param order - The order in which to fetch pooled staking vault daily apys. Descending order fetches the latest N days (latest working backwards). Ascending order fetches the oldest N days (oldest working forwards) (defaults to 'desc').
* @returns A promise that resolves when the pooled staking vault daily apys have been updated.
*/
async refreshPooledStakingVaultDailyApys(
days = 30,
days = 365,
order: 'asc' | 'desc' = 'desc',
): Promise<void> {
const chainId = this.#getCurrentChainId();
Expand Down
Loading