| Crates.io | bvs-vault-bank |
| lib.rs | bvs-vault-bank |
| version | 2.4.0 |
| created_at | 2025-05-05 06:11:18.369182+00 |
| updated_at | 2025-09-08 06:40:32.917544+00 |
| description | SatLayer Bitcoin Validated Service |
| homepage | https://satlayer.xyz/ |
| repository | https://github.com/satlayer/satlayer-bvs.git |
| max_upload_size | |
| id | 1660230 |
| size | 86,875 |
The BVS Vault Bank is a specialized vault contract
designed to support native bank tokens as the underlying asset in the SatLayer ecosystem.
It enables operators to manage deposits and withdrawals of native tokens
like ubbn (the native token of the Babylon project).
The Vault Bank implements the ERC-4626 tokenized vault standard, providing a standardized interface for yield-bearing vaults. It manages the relationship between deposited assets and shares, allowing for efficient tracking of user deposits and their corresponding value.
DepositFor: Deposit native tokens into the vault for a recipientQueueWithdrawalTo: Queue a withdrawal request for later processingRedeemWithdrawalTo: Process a queued withdrawal requestShares: Get the number of shares owned by a stakerAssets: Get the asset value of shares owned by a stakerConvertToAssets: Convert a share amount to its asset valueConvertToShares: Convert an asset amount to its share valueTotalShares: Get the total number of shares in the vaultTotalAssets: Get the total asset value in the vaultQueuedWithdrawal: Get information about a queued withdrawalVaultInfo: Get general information about the vaultThe Vault Bank manages deposits and withdrawals through a share-based system:
The vault implements a withdrawal queue to handle situations where immediate withdrawals are not possible:
QueueWithdrawalToRedeemWithdrawalTo