jito-foundation / restaking

https://docs.restaking.jito.network/
Other
54 stars 5 forks source link

Vault: `last_full_state_update_slot` and `last_fee_change_slot` should reflect the current slot #108

Closed aoikurokawa closed 1 week ago

aoikurokawa commented 1 month ago

When initializing the vault, the current implementation sets last_full_state_update_slot to 0. However, I believe it should be initialized with the current slot. If it's set to 0, it creates an issue with the initialization of vault_operator_delegation, resulting in a VaultError::VaultUpdateNeeded.