LenderCommitmentForwarderAlpha

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x4c34796d at 20591943
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots

No balances found for "LenderCommitmentForwarderAlpha"

No transactions found for "LenderCommitmentForwarderAlpha"


Functions
Getter at block 20791588
_marketRegistry(view returns (address)
0x5e30357d5136bc4bfadba1ab341d0da09fe7a9f1
_tellerV2(view returns (address)
0x00182fdb0b880ee24d428e3cc39383717677c37e
getMarketRegistry(view returns (address)
0x5e30357d5136bc4bfadba1ab341d0da09fe7a9f1
getTellerV2(view returns (address)
0x00182fdb0b880ee24d428e3cc39383717677c37e
Read-only
commitmentPrincipalAccepted(uint256view returns (uint256)
commitments(uint256view returns (uint256 maxPrincipaluint32 expirationuint32 maxDurationuint16 minInterestRateaddress collateralTokenAddressuint256 collateralTokenIduint256 maxPrincipalPerCollateralAmountuint8 collateralTokenTypeaddress lenderuint256 marketIdaddress principalTokenAddress)
getAllCommitmentUniswapPoolRoutes(uint256 commitmentIdview returns (struct ILenderCommitmentForwarder_U1PoolRouteConfig[])
getCommitmentAcceptedPrincipal(uint256 _commitmentIdview returns (uint256)
getCommitmentBorrowers(uint256 _commitmentIdview returns (address[] borrowers_)
getCommitmentCollateralTokenAddress(uint256 _commitmentIdview returns (address)
getCommitmentLender(uint256 _commitmentIdview returns (address)
getCommitmentMarketId(uint256 _commitmentIdview returns (uint256)
getCommitmentMaxPrincipal(uint256 _commitmentIdview returns (uint256)
getCommitmentPoolOracleLtvRatio(uint256 commitmentIdview returns (uint16)
getCommitmentPrincipalTokenAddress(uint256 _commitmentIdview returns (address)
getCommitmentUniswapPoolRoute(uint256 commitmentIduint256 indexview returns (struct ILenderCommitmentForwarder_U1PoolRouteConfig)
getRequiredCollateral(uint256 _principalAmountuint256 _maxPrincipalPerCollateralAmountuint8 _collateralTokenTypeview returns (uint256)
getUniswapPriceRatioForPool(struct ILenderCommitmentForwarder_U1PoolRouteConfig _poolRouteConfigview returns (uint256 priceRatio)
getUniswapPriceRatioForPoolRoutes(struct ILenderCommitmentForwarder_U1PoolRouteConfig[] poolRoutesview returns (uint256 priceRatio)
getUniswapV3PoolAddress(address _principalTokenAddressaddress _collateralTokenAddressuint24 _uniswapPoolFeeview returns (address)
hasExtension(address accountaddress extensionview returns (bool)
State-modifying
acceptCommitment(uint256 _commitmentIduint256 _principalAmountuint256 _collateralAmountuint256 _collateralTokenIdaddress _collateralTokenAddressuint16 _interestRateuint32 _loanDurationreturns (uint256 bidId)
acceptCommitmentWithProof(uint256 _commitmentIduint256 _principalAmountuint256 _collateralAmountuint256 _collateralTokenIdaddress _collateralTokenAddressuint16 _interestRateuint32 _loanDurationbytes32[] _merkleProofreturns (uint256 bidId)
acceptCommitmentWithRecipient(uint256 _commitmentIduint256 _principalAmountuint256 _collateralAmountuint256 _collateralTokenIdaddress _collateralTokenAddressaddress _recipientuint16 _interestRateuint32 _loanDurationreturns (uint256 bidId)
acceptCommitmentWithRecipientAndProof(uint256 _commitmentIduint256 _principalAmountuint256 _collateralAmountuint256 _collateralTokenIdaddress _collateralTokenAddressaddress _recipientuint16 _interestRateuint32 _loanDurationbytes32[] _merkleProofreturns (uint256 bidId)
addCommitmentBorrowers(uint256 _commitmentIdaddress[] _borrowerAddressList
addExtension(address extension
createCommitmentWithUniswap(struct ILenderCommitmentForwarder_U1Commitment _commitmentaddress[] _borrowerAddressListstruct ILenderCommitmentForwarder_U1PoolRouteConfig[] _poolRoutesuint16 _poolOracleLtvRatioreturns (uint256 commitmentId_)
deleteCommitment(uint256 _commitmentId
getTellerV2MarketOwner(uint256 marketIdreturns (address)
removeCommitmentBorrowers(uint256 _commitmentIdaddress[] _borrowerAddressList
revokeExtension(address extension
updateCommitment(uint256 _commitmentIdstruct ILenderCommitmentForwarder_U1Commitment _commitment
Events
CreatedCommitment(uint256 indexed commitmentIdaddress lenderuint256 marketIdaddress lendingTokenuint256 tokenAmount
DeletedCommitment(uint256 indexed commitmentId
ExercisedCommitment(uint256 indexed commitmentIdaddress borroweruint256 tokenAmountuint256 bidId
ExtensionAdded(address extensionaddress sender
ExtensionRevoked(address extensionaddress sender
Initialized(uint8 version
UpdatedCommitment(uint256 indexed commitmentIdaddress lenderuint256 marketIdaddress lendingTokenuint256 tokenAmount
UpdatedCommitmentBorrowers(uint256 indexed commitmentId
Constructor
constructor(address _tellerV2address _marketRegistryaddress _uniswapV3Factory
Fallback and receive

This contract contains no fallback and receive objects.

Errors
InsufficientBorrowerCollateral(uint256 requireduint256 actual
InsufficientCommitmentAllocation(uint256 allocateduint256 requested