Developers Documentation
  • Overview
    • Contracts Overview
    • Public Repositories
    • Smart Contract Addresses
      • Polygon PoS
  • Core protocol
    • Architecture Overview
    • Blocks
    • Vault Strategy
    • Vault Configuration
    • Vault Deployment
    • Vault Operations
    • Access Manager
    • Contracts
      • StrategVault
      • StrategERC3525
      • StrategVaultFactory
      • StrategAssetBuffer
      • StrategBlockRegistry
      • StrategUserInteractions
      • StrategOperatorProxy
      • StrategOperatorDataAggregator
  • Borrow module
    • Architecture Overview
    • Aave V3 Position manager
    • Smart Contract Docs
      • StrategPositionManagerFactory
      • StrategAaveV3PositionManager
      • StrategAaveV3PositionManagerInfo
  • Portal Module
    • Architecture Overview
    • Swap
      • Features
      • Functions
    • Oracle
      • Architecture design
      • Functions
  • Tools
    • Developer kit
Powered by GitBook
On this page
  • Methods
  • putInBuffer
  • Errors
  • AddressEmptyCode
  • AddressInsufficientBalance
  • SafeERC20FailedOperation
  1. Core protocol
  2. Contracts

StrategAssetBuffer

Minimalistic mutualized buffer for vault. It is used to put buffered assets outside the vault strategies accounting

Methods

putInBuffer

function putInBuffer(address _asset, uint256 _amount) external nonpayable

Puts the specified amount of assets into the buffer.

Parameters

Name
Type
Description

_asset

address

Address of the asset to be buffered.

_amount

uint256

Amount of the asset to be buffered.

Errors

AddressEmptyCode

error AddressEmptyCode(address target)

There's no code at target (it is not a contract).

Parameters

Name
Type
Description

target

address

undefined

AddressInsufficientBalance

error AddressInsufficientBalance(address account)

The ETH balance of the account is not enough to perform the operation.

Parameters

Name
Type
Description

account

address

undefined

FailedInnerCall

error FailedInnerCall()

A call to an address target failed. The target may have reverted.

SafeERC20FailedOperation

error SafeERC20FailedOperation(address token)

An operation with an ERC20 token failed.

Parameters

Name
Type
Description

token

address

undefined

PreviousStrategVaultFactoryNextStrategBlockRegistry

Last updated 1 year ago