Skip to content
ClearClear
Docs
Protocol/LendingPoolSettlementLane

LendingPoolSettlementLane

Source: defined outside contracts/ · Upgradeable (UUPS proxy)

6 min readView source

On this page
Network
Chain id
Address
Base Sepolia
84532

Functions that change state

Function
Who can call
Also
applyHoldbacks(uint256)
Defined outside contracts/
applyRateModel()
Defined outside contracts/
approve(address spender, uint256 amount)
The token holder
cancelRequest(uint256, uint256)
Defined outside contracts/
claimUnpaid()
Defined outside contracts/
claimWithdrawal(uint256)
Defined outside contracts/
decreaseAllowance(address spender, uint256 subtractedValue)
The token holder
deploy(uint256, bytes32)
Defined outside contracts/
deploySettlement(uint256, bytes32)
Defined outside contracts/
deposit(uint256 assets, address receiver)
Anyone
enforcementRedeem(address, uint256)
Defined outside contracts/
fillQueue(uint256 maxCount)
Defined outside contracts/
grantRole(bytes32 role, address account)
The role's admin role (DEFAULT_ADMIN_ROLE unless set otherwise)
increaseAllowance(address spender, uint256 addedValue)
The token holder
initialize(address admin, address reserveToken, string name_, string symbol_)
Defined outside contracts/
initializeYieldPool(address, address, uint64)
Defined outside contracts/
ledgerView(bytes data)
Defined outside contracts/
liftSuspension()
Defined outside contracts/
mint(uint256 shares, address receiver)
Anyone (ERC-4626)
postAllowance(uint256, bytes32)
Defined outside contracts/
postLossCharge(uint256, bytes32)
Defined outside contracts/
proposeRateModel(uint256, uint256, uint256, uint256)
Defined outside contracts/
redeem(uint256 shares, address receiver, address owner)
The share owner, or an approved spender
redeemOrQueue(uint256 shares, address receiver)
Defined outside contracts/
releaseHoldbacks(uint256)
Defined outside contracts/
renewSuspension(bytes32, bytes32)
Defined outside contracts/
renounceRole(bytes32 role, address account)
Only the account renouncing its own role
repay(uint256)
Defined outside contracts/
requestRunOff(address)
Defined outside contracts/
requestWithdrawal(uint256 shares, address receiver)
Defined outside contracts/
returnFunds(uint256)
Defined outside contracts/
revokeRole(bytes32 role, address account)
The role's admin role (DEFAULT_ADMIN_ROLE unless set otherwise)
setDeploymentAccount(address)
Defined outside contracts/
setEarnControls(address)
Defined outside contracts/
setEncumbranceSource(address, bytes32)
Defined outside contracts/
setEnforcementDestination(address)
Defined outside contracts/
setHoldbackMaxAge(uint256)
Defined outside contracts/
setSettlementFunder(address, uint256, uint64)
Defined outside contracts/
setSettlementHeadroom(uint256)
Defined outside contracts/
stopSettlementFunder()
Defined outside contracts/
subscribe(uint256 assets, address receiver, bytes attestation)
Defined outside contracts/
suspend(uint8, bytes32, bytes32)
Defined outside contracts/
syncEncumbrance(address)
Defined outside contracts/
transfer(address to, uint256 amount)
The token holder
transferFrom(address from, address to, uint256 amount)
The holder, or an approved spender
upgradeTo(address newImplementation)
Whoever _authorizeUpgrade allows
upgradeToAndCall(address newImplementation, bytes data)
Whoever _authorizeUpgrade allows
payable
withdraw(uint256 assets, address receiver, address owner)
The share owner, or an approved spender

Read functions

Anyone can call these; they change nothing.

Function
Returns
accruedInterest()
uint256
allowance(address owner, address spender)
uint256
allowancePostedAt()
uint256
asset()
address
availableCash()
uint256
balanceOf(address account)
uint256
borrow(uint256, address)
—
borrowableToday(address)
uint256
BORROWER_ROLE()
bytes32
CCO_ROLE()
bytes32
collateralKind()
bytes32
convertToAssets(uint256 shares)
uint256
convertToShares(uint256 assets)
uint256
decimals()
uint8
DEFAULT_ADMIN_ROLE()
bytes32
deployedBalance()
uint256
DEPLOYER_ROLE()
bytes32
deploymentAccount()
address
deploymentCount()
uint256
earnControls()
address
encumberedOf(address holder)
uint256
encumbranceSource()
address
enforcementDestination()
address
enforcementFilledOf(address key)
uint256 shares, uint256 paid
enforcementQueuedOf(address key)
uint256
ENFORCER_ROLE()
bytes32
finalMaturity()
uint256
freeSharesOf(address holder)
uint256
fundingRate()
uint256
fundingRateAt(uint256)
uint256
getRoleAdmin(bytes32 role)
bytes32
hasRole(bytes32 role, address account)
bool
holdbackAt(uint256 id)
address holder, uint256 createdAt, uint256 maxAge, uint256 gross, uint256 held
holdbackBps()
uint256
holdbackCount()
uint256
holdbackHead()
uint256
holdbackMaxAge()
uint256
holdbackOf(address key)
uint256
initialClosing()
uint256
isSuspended()
bool
lastAccrualAt()
uint256
lastKnownLock(address)
uint256
lastLoweringQuarter()
uint256
ledger()
address
LEFTOVER_PERIOD()
uint256
LEGAL_ORDER()
uint8
LIQUIDATOR_ROLE()
bytes32
LOSS_EVENT()
uint8
LOSS_REPORTER_ROLE()
bytes32
lossChargeCount()
uint256
MAX_UTILIZATION()
uint256
maxDeposit(address)
uint256
maxMint(address)
uint256
maxRedeem(address owner)
uint256
maxWithdraw(address owner)
uint256
MIN_SUBSCRIPTION_UNITS()
uint256
name()
string
NO_REQUEST()
uint256
oldestRequestAge()
uint256
OPERATOR_ROLE()
bytes32
pendingLossCharge()
bool pending, uint256 id, uint256 amount, uint256 absorbed, uint256 cursor, uint256 end
pendingRate()
uint256 r0, uint256 s1, uint256 k, uint256 s2, uint256 effectiveAt, bool lowers
poolLossAllowance()
uint256
previewDeposit(uint256 assets)
uint256
previewMint(uint256 shares)
uint256
previewRedeem(uint256 shares)
uint256
previewWithdraw(uint256 assets)
uint256
proposerOf(bytes32 key)
address
proxiableUUID()
bytes32
queuedAssets()
uint256
queuedShares()
uint256
queuedSharesOf(address key)
uint256
queueHead()
uint256
queueLength()
uint256
queueRequest(uint256 id)
address owner, address receiver, uint256 shares, uint256 requestedAt, bool enforcement
rateModel()
uint256 r0, uint256 s1, uint256 k, uint256 s2
releasableAt(uint256 id)
uint256
releasePending()
bool
requestAt(uint256 requestId)
address owner, address receiver, uint256 assets, uint64 requestedAt, bool claimed
settlementLane()
address funder, uint256 capPerPeriod, uint256 periodSeconds, uint256 periodStart, uint256 usedInPeriod, bool stopped, uint256 epoch, uint256 headroom
shareValue()
uint256
supportsInterface(bytes4 interfaceId)
bool
SUSPENSION_ROLE()
bytes32
suspension()
uint256 eventId, uint8 reason, uint256 startedAt, uint256 expiresAt, address lastSigner, bytes32 evidenceHash
symbol()
string
totalAssets()
uint256
totalBorrowed()
uint256
totalDeployed()
uint256
totalHoldback()
uint256
totalSupply()
uint256
totalUnpaid()
uint256
TREASURER_ROLE()
bytes32
unpaidOf(address key)
uint256
USDC_OR_NETWORK()
uint8
utilization()
uint256
utilizationBps()
uint256
VALUATION_PENDING()
uint8
VALUATION_ROLE()
bytes32
valuation()
address
vaultCash()
uint256

Events

Event
ActionApproved(bytes32 action indexed, address proposer indexed, address approver indexed)
ActionProposed(bytes32 action indexed, address proposer indexed)
AdminChanged(address previousAdmin, address newAdmin)
AllowancePosted(uint256 value, uint256 holdbackRate, uint256 poolAssets, bytes32 evidenceHash, address proposer, address approver)
Approval(address owner indexed, address spender indexed, uint256 value)
BeaconUpgraded(address beacon indexed)
Deployed(uint256 deploymentId indexed, address to indexed, uint256 amount, address proposer, address approver)
DeploymentAccountUpdated(address account indexed)
Deposit(address sender indexed, address owner indexed, uint256 assets, uint256 shares)
EarnControlsUpdated(address controls indexed)
EncumbranceSourceReverted(address holder indexed, uint256 lastKnownLock)
EncumbranceSourceUpdated(address source indexed)
EnforcementDestinationUpdated(address destination indexed)
HoldbackApplied(uint256 id indexed, uint256 amount, uint256 lossChargeId indexed)
HoldbackMaxAgeUpdated(uint256 maxAge)
HoldbackRecorded(address holder indexed, uint256 id indexed, uint256 gross, uint256 held)
HoldbackReleased(uint256 id indexed, uint256 amount)
InitialClosingRecorded(uint256 at, uint256 finalMaturity)
Initialized(uint8 version)
InterestAccrued(uint256 amount, uint256 rate, uint256 interestAccrued)
InterestBilled(uint256 amount, uint256 dueAt)
InterestCapitalized(uint256 amount, uint256 deployedBalance)
LeftoverSetAside(uint256 amount, uint256 recognizedBy)
LegalHoldPlaced(uint256 holdId indexed, address holder indexed, uint256 shares, bytes32 orderHash, uint256 expiresAt, address proposer, address approver)
LegalHoldReleased(uint256 holdId indexed, address holder indexed, address proposer, address approver)
LegendScheduled(bytes32 legendHash indexed, string legend, uint256 effectiveAt)
LegendSet(bytes32 legendHash indexed, string legend)
LossChargeCompleted(uint256 lossChargeId indexed, uint256 absorbed, uint256 toDeployed, uint256 toInterest, uint256 paidOut)
LossChargePosted(uint256 lossChargeId indexed, uint256 value, uint256 denominator, bytes32 evidenceHash, address proposer, address approver)
PaymentDeferred(address to indexed, uint256 amount)
PoolTierPrincipalPosted(uint256 value, bytes32 evidenceHash, address proposer, address approver)
QueueCancelled(uint256 requestId indexed, address by indexed, uint256 shares, uint256 remainingShares)
QueueFilled(uint256 requestId indexed, uint256 shares, uint256 gross, uint256 paid, uint256 remainingShares)
QueueRequested(uint256 requestId indexed, address owner indexed, address receiver indexed, uint256 shares, bool enforcement)
RateModelApplied(uint256 r0, uint256 s1, uint256 k, uint256 s2)
RateModelProposed(uint256 r0, uint256 s1, uint256 k, uint256 s2, uint256 effectiveAt, bool lowers)
RecoveryPosted(uint256 value, uint256 unrestored, bytes32 evidenceHash, address proposer, address approver)
Repaid(address from indexed, uint256 amount)
Returned(address from indexed, uint256 interestPaid, uint256 principalPaid, uint256 excess)
RoleAdminChanged(bytes32 role indexed, bytes32 previousAdminRole indexed, bytes32 newAdminRole indexed)
RoleGranted(bytes32 role indexed, address account indexed, address sender indexed)
RoleRevoked(bytes32 role indexed, address account indexed, address sender indexed)
RunOffRequested(address holder indexed, uint256 requestId, uint256 shares)
SettlementDeployed(uint256 id indexed, uint256 amount, bytes32 ref, uint256 periodUsed)
SettlementFunderSet(address funder indexed, uint256 capPerPeriod, uint64 periodSeconds, address proposer, address approver)
SettlementFunderStopped(address funder indexed, address by indexed)
SettlementHeadroomSet(uint256 amount, address proposer, address approver)
Subscribed(address payer indexed, address receiver indexed, uint256 assets, uint256 shares, bytes32 exemptionCode)
SuccessorRedemptionRequested(address holder indexed, address successor indexed, uint256 requestId, uint256 shares)
Suspended(uint256 eventId indexed, uint8 reason, bytes32 evidenceHash, uint256 expiresAt, address proposer, address approver)
SuspensionLifted(uint256 eventId indexed, address signer)
SuspensionRenewed(uint256 eventId indexed, uint256 expiresAt, address signer, bytes32 resolutionHash, bytes32 orderHash)
Transfer(address from indexed, address to indexed, uint256 value)
UnpaidClaimed(address to indexed, uint256 amount)
Upgraded(address implementation indexed)
ValuationEventCleared()
ValuationEventRecorded(bytes32 evidenceHash, address proposer, address approver)
Withdraw(address sender indexed, address receiver indexed, address owner indexed, uint256 assets, uint256 shares)
WithdrawalClaimed(uint256 requestId indexed, address receiver indexed, uint256 assets)
YieldPoolInitialized(address controls, address deploymentAccount, uint256 openingDeployedBalance)

Errors

Error
LendingPoolAlreadyInitialized()
LendingPoolBadReason(uint8 reason)
LendingPoolBelowMinimum(uint256 assets)
LendingPoolChargePending()
LendingPoolDirectBorrowOff()
LendingPoolEncumbered(address holder, uint256 free, uint256 amount)
LendingPoolEncumbranceUnreadable(address holder)
LendingPoolFinalMaturity()
LendingPoolHolderCap(address member, uint256 held, uint256 cap)
LendingPoolInsufficientCash(uint256 available, uint256 requested)
LendingPoolInvalidAddress()
LendingPoolInvalidAmount()
LendingPoolInvalidRateModel()
LendingPoolModuleMismatch()
LendingPoolNoControls()
LendingPoolNotAuthorized(address account)
LendingPoolNotFinalMaturity()
LendingPoolNothingQueued(uint256 requestId)
LendingPoolNotRenewable()
LendingPoolNotRequestOwner(uint256 requestId)
LendingPoolNotSuspended()
LendingPoolNotYet(uint256 effectiveAt)
LendingPoolNoValuationEvent()
LendingPoolQueueOpen()
LendingPoolRateNotice(uint256 effectiveAt)
LendingPoolRateQuarter(uint256 quarter)
LendingPoolReceiverNotOwner(address receiver)
LendingPoolReleasePending()
LendingPoolResolutionRequired()
LendingPoolSameSigner(address account)
LendingPoolSeizureExceedsEncumbrance(address holder, uint256 encumbered, uint256 amount)
LendingPoolSettlementCap(uint256 usedInPeriod, uint256 capPerPeriod, uint256 amount)
LendingPoolSubscriptionsPaused()
LendingPoolSuspended()
LendingPoolSuspensionCeiling()
LendingPoolTierCap(uint256 deployedBalance, uint256 poolTierPrincipal)
LendingPoolTransferNotAllowed(address from, address to)
LendingPoolUtilizationCap(uint256 utilization)