Skip to content
ClearClear
Docs
Protocol/BurnerBondDeposit

BurnerBondDeposit

Source: contracts/peripherals/BurnerBondDeposit.sol · Guide: bonds

1 min readUpdated View source

On this page
Network
Chain id
Address
Base Sepolia
84532

Functions that change state

Function
Who can call
Also
batchProcessDeposits(uint256[] depositIds)
Anyone
nonReentrant
emergencyRecover(address token, uint256 amount)
onlyOwner
initialize(address _factory, address _assurancePool)
Once, when the proxy is initialised
makeDeposit(address tokenAddress, uint256 faceValue, uint256 maturityDate, uint256 discountPercentage)
Anyone
nonReentrant
processDeposit(uint256 depositId)
Anyone
nonReentrant
refundDeposit(uint256 depositId)
onlyOwner
nonReentrant
registerCollection(address tokenAddress, address collectionAddress)
Checked inside the function
renounceOwnership()
The owner
setAssurancePool(address _assurancePool)
onlyOwner
setBondVault(address _bondVault)
onlyOwner
setFactory(address _factory)
onlyOwner
transferOwnership(address newOwner)
The owner

Read functions

Anyone can call these; they change nothing.

Function
Returns
assurancePool()
address
bondVault()
address
calculateRequiredDeposit(address tokenAddress, uint256 faceValue, uint256 maturityDate)
uint256
depositIdsBy(address, uint256)
uint256
deposits(uint256)
address tokenAddress, uint256 amount, uint256 faceValue, uint256 maturityDate, uint256 discountPercentage, address depositor, uint256 bondId, bool isProcessed
depositsBy(address)
uint256
factory()
address
getDepositIdsBy(address depositor)
uint256[]
getDepositInfo(uint256 depositId)
(address,uint256,uint256,uint256,uint256,address,uint256,bool)
getDepositParameters()
uint256, uint256
getDepositsBy(address depositor)
uint256
getDepositStatistics()
uint256 totalMade, uint256 totalDeposited, uint256 totalProcessed
getPendingDeposits()
uint256[]
owner()
address
pendingDepositIndex(uint256)
uint256
pendingDeposits(uint256)
uint256
tokenToCollection(address)
address
totalDepositsMade()
uint256
totalDepositsProcessed()
uint256
totalTokenDeposited()
uint256

Events

Event
DepositMade(uint256 depositId indexed, address depositor indexed, uint256 amount, uint256 faceValue, uint256 maturityDate, uint256 discountPercentage)
DepositParametersUpdated(uint256 maxDiscount, uint256 maxMaturity)
DepositProcessed(uint256 depositId indexed, uint256 bondId indexed, address depositor indexed)
Initialized(uint8 version)
OwnershipTransferred(address previousOwner indexed, address newOwner indexed)

Errors

No custom errors; failures revert with a reason string.