Skip to content

Reserve redemption assets#724

Closed
evgeny-stakewise wants to merge 3 commits into
v5-releasefrom
reserve-redemption-assets-2
Closed

Reserve redemption assets#724
evgeny-stakewise wants to merge 3 commits into
v5-releasefrom
reserve-redemption-assets-2

Conversation

@evgeny-stakewise
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/meta_vault/service.py
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of rework in this file.

Previously:

  • distribute_meta_vault_redemption_assets
  • and get_meta_vault_redemption_assets
    looked similar. Separation of concerns was unclear.
  • Also there was recursion.

Now:

  • distribute_meta_vault_redemption_assets - does the main job of distributing assets deeply
  • get_sub_vaults_redemptions - distributes from meta vault to direct sub vaults
  • Recursion was replaced with queue.

Comment thread src/redemptions/tasks.py
if nonce == 0:
logger.info('Zero nonce for redemption. Skipping redemption assets.')
return Wei(0)
logger.debug('Zero nonce for redemption. Skipping redemption assets.')
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to debug to avoid spamming on each block.

@evgeny-stakewise evgeny-stakewise changed the title Reserve redemption assets 2 Reserve redemption assets May 14, 2026
@evgeny-stakewise evgeny-stakewise marked this pull request as draft May 14, 2026 08:10
@evgeny-stakewise
Copy link
Copy Markdown
Contributor Author

Closed in favor of #726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant