Buffer ARK
The Buffer ARK is a specialized holding contract in the Lazy Summer Protocol that manages deposits and withdrawals. It maintains a portion of Fleet assets in an undeployed state for efficient withdrawals.
Functionality
The Buffer ARK holds incoming deposits until they are allocated to yield-generating strategies. It maintains a minimum balance relative to the Fleet's total value locked (TVL) to facilitate efficient withdrawals, particularly beneficial for smaller transactions.
Withdrawal Methods
Standard Withdrawal
Executes from Buffer ARK balance
Lower gas consumption
Efficient for most transaction sizes
Force Withdrawal
Activates when Buffer ARK balance is insufficient
Withdraws directly from yield-generating ARKs
Higher gas consumption
Necessary for large withdrawals
The Buffer ARK contract (
BufferArk.sol
) inherits from the baseArk
contract and implement specialized buffer functionality:ConstructorInitializes Buffer ARK with configuration parameters
Sets Fleet Commander address
Asset Management FunctionsTotal Assets View
Returns current token balance
Direct reflection of undeployed assets
No yield calculations involved
Withdrawable Assets View
All assets are always withdrawable
Returns same value as totalAssets()
No withdrawal restrictions implemented
Asset Boarding
Empty implementation
Assets automatically held in contract
No external protocol interactions
Asset Disembarking
Empty implementation
Standard ERC20 transfers handled by base contract
No position unwinding required
Data ValidationBoard Data Validation
No additional validation required
Accepts any boarding data
Empty implementation
Disembark Data Validation
No additional validation required
Accepts any disembarking data
Empty implementation
Reward HandlingReturns empty arrays
No reward generation
Empty implementation
Integration PointsFleet Commander Interface
Set during construction
Controls asset allocation
Manages withdrawal coordination
ERC20 Token Interface
Used for balance tracking
Core asset accounting
Inherited from base Ark contract
Access ControlThe Buffer ARK inherits access control from the base Ark contract:
Only Fleet Commander can initiate withdrawals
Only authorized addresses can board assets
RAFT contract controls harvest operations
Last updated
Was this helpful?