FraxlendPair

Verified contract

Active on Ethereum with 9,198 txns
Deployed by via 0xe76151c9 at 16600181
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
18 additional variables
ERC-20
Value $75,699,862.97
ERC-20
Value $3,499,218.09
ERC-20
--
0xa5a3ccbaf9cb5bd8250e26ff1cfe6991de7f3841ba2385a1773526e4c4330999
0xbba6ec215357b30578e8fcddb79ce1bd877b68b300fb9af625ac394ad79f32fe
0xc2b19f9ccb1ea255494fb1866990fa0715772bdfef991690617a57dce01fb556
0x522897ba06ef5959d829d90783addcf1eb99eb72f3c2c6abb2dd8642e499cf96
0x36a86644ac5e75383ffb8b2211eabe2a019869efc594adfeb0d2bfec39b16711
0x965b1045fa0eecac311596deaec0c35dae8c7d830d3ae811bda8db550ed7aaa9
0xfb6647e1010e043ccb4b814cbb7d657973c698b253bc6ac5dcd0cc7b069058f9
0xb258cca5413add0cbb5e6e68f367677334a4fe027c8d2ab55bc18ecb80331334
0xd91864edc66557f5f45206e82adb9c3343191459dd9c24eb22ea9edaae632e83
0xae430f77dbd535db631990e7908b20fa615aa85050ad6fae8e4a27d658f273af

Functions
Getter at block 21227349
DEPLOYER_ADDRESS(view returns (address)
0xaa913c26dd7723fcae9dbd2036d28171a56c6251
DEVIATION_PRECISION(view returns (uint256)
100000
EXCHANGE_PRECISION(view returns (uint256)
1000000000000000000
FEE_PRECISION(view returns (uint256)
100000
LIQ_PRECISION(view returns (uint256)
100000
LTV_PRECISION(view returns (uint256)
100000
MAX_PROTOCOL_FEE(view returns (uint256)
50000
RATE_PRECISION(view returns (uint256)
1000000000000000000
UTIL_PREC(view returns (uint256)
100000
asset(view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
borrowLimit(view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
circuitBreakerAddress(view returns (address)
0xfd3065c629ee890fd74f43b802c2fea4b7279b8c
cleanLiquidationFee(view returns (uint256)
10000
collateralContract(view returns (address)
0xac3e018457b222d93114458476f3e3416abbe38f
currentRateInfo(view returns (uint32 lastBlockuint32 feeToProtocolRateuint64 lastTimestampuint64 ratePerSecuint64 fullUtilizationRate)
(lastBlock=21226248, feeToProtocolRate=0, lastTimestamp=1732073111, ratePerSec=3381049154, fullUtilizationRate=16569536372)
decimals(view returns (uint8)
18
depositLimit(view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
dirtyLiquidationFee(view returns (uint256)
9000
exchangeRateInfo(view returns (address oracleuint32 maxOracleDeviationuint184 lastTimestampuint256 lowExchangeRateuint256 highExchangeRate)
(oracle=0x4355903f610d0f94ee476df6e3227811ff7efee1, maxOracleDeviation=5000, lastTimestamp=1732073111, lowExchangeRate=290998186981342, highExchangeRate=293969857297424)
getConstants(pure returns (uint256 _LTV_PRECISIONuint256 _LIQ_PRECISIONuint256 _UTIL_PRECuint256 _FEE_PRECISIONuint256 _EXCHANGE_PRECISIONuint256 _DEVIATION_PRECISIONuint256 _RATE_PRECISIONuint256 _MAX_PROTOCOL_FEE)
(_LTV_PRECISION=100000, _LIQ_PRECISION=100000, _UTIL_PREC=100000, _FEE_PRECISION=100000, _EXCHANGE_PRECISION=1000000000000000000, _DEVIATION_PRECISION=100000, _RATE_PRECISION=1000000000000000000, _MAX_PROTOCOL_FEE=50000)
getPairAccounting(view returns (uint128 _totalAssetAmountuint128 _totalAssetSharesuint128 _totalBorrowAmountuint128 _totalBorrowSharesuint256 _totalCollateral)
(_totalAssetAmount=24987378840665210019402039, _totalAssetShares=22759157122596376206608945, _totalBorrowAmount=21469618638950542459889239, _totalBorrowShares=19055114805424427869842388, _totalCollateral=22121397001638214567348)
isBorrowAccessControlRevoked(view returns (bool)
false
isDepositAccessControlRevoked(view returns (bool)
false
isInterestAccessControlRevoked(view returns (bool)
false
isInterestPaused(view returns (bool)
false
isLiquidateAccessControlRevoked(view returns (bool)
false
isLiquidatePaused(view returns (bool)
false
isLiquidationFeeSetterRevoked(view returns (bool)
false
isMaxLTVSetterRevoked(view returns (bool)
false
isOracleSetterRevoked(view returns (bool)
false
isRateContractSetterRevoked(view returns (bool)
false
isRepayAccessControlRevoked(view returns (bool)
false
isRepayPaused(view returns (bool)
false
isWithdrawAccessControlRevoked(view returns (bool)
false
isWithdrawPaused(view returns (bool)
false
maxLTV(view returns (uint256)
75000
name(view returns (string)
Fraxlend Interest Bearing FRAX (Staked Frax Ether) - 16
owner(view returns (address)
0x168200cf227d4543302686124ac28ae0eaf2ca0b
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
pendingTimelockAddress(view returns (address)
0x0000000000000000000000000000000000000000
previewAddInterest(view returns (uint256 _interestEarneduint256 _feesAmountuint256 _feesSharestruct FraxlendPairCoreCurrentRateInfo _newCurrentRateInfostruct VaultAccount _totalAssetstruct VaultAccount _totalBorrow)
(_interestEarned=962830118359152861693, _feesAmount=0, _feesShare=0, _newCurrentRateInfo=(21226248, 0, 1732073111, 3382215610, 16574329807), _totalAsset=(24987378840665210019402039, 22759157122596376206608945), _totalBorrow=(21469618638950542459889239, 19055114805424427869842388))
pricePerShare(view returns (uint256 _amount)
1097904404195028341
protocolLiquidationFee(view returns (uint256)
2000
rateContract(view returns (address)
0x18500cb1f2fe7a40ebda393383a0b8548a31f261
symbol(view returns (string)
fFRAX(sfrxETH)-16
timelockAddress(view returns (address)
0x8412ebf45bac1b340bbe8f318b928c466c4e39ca
totalAsset(view returns (uint128 amountuint128 shares)
(amount=24986416010546850866540346, shares=22759157122596376206608945)
totalAssets(view returns (uint256)
24987378840665210019402039
totalBorrow(view returns (uint128 amountuint128 shares)
(amount=21468655808832183307027546, shares=19055114805424427869842388)
totalCollateral(view returns (uint256)
22121397001638214567348
totalSupply(view returns (uint256)
22759157122596376206608945
version(pure returns (uint256 _majoruint256 _minoruint256 _patch)
(_major=3, _minor=0, _patch=0)
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
convertToAssets(uint256 _sharesview returns (uint256 _assets)
convertToShares(uint256 _assetsview returns (uint256 _shares)
getUserSnapshot(address _addressview returns (uint256 _userAssetSharesuint256 _userBorrowSharesuint256 _userCollateralBalance)
maxDeposit(address _receiverview returns (uint256 _maxAssets)
maxMint(address _receiverview returns (uint256 _maxShares)
maxRedeem(address _ownerview returns (uint256 _maxShares)
maxWithdraw(address _ownerview returns (uint256 _maxAssets)
previewDeposit(uint256 _assetsview returns (uint256 _sharesReceived)
previewMint(uint256 _sharesview returns (uint256 _amount)
previewRedeem(uint256 _sharesview returns (uint256 _assets)
previewWithdraw(uint256 _amountview returns (uint256 _sharesToBurn)
swappers(addressview returns (bool)
toAssetAmount(uint256 _sharesbool _roundUpbool _previewInterestview returns (uint256 _amount)
toAssetShares(uint256 _amountbool _roundUpbool _previewInterestview returns (uint256 _shares)
toBorrowAmount(uint256 _sharesbool _roundUpbool _previewInterestview returns (uint256 _amount)
toBorrowShares(uint256 _amountbool _roundUpbool _previewInterestview returns (uint256 _shares)
userBorrowShares(addressview returns (uint256)
userCollateralBalance(addressview returns (uint256)
State-modifying
acceptOwnership(
acceptTransferTimelock(
addCollateral(uint256 _collateralAmountaddress _borrower
addInterest(bool _returnAccountingreturns (uint256 _interestEarneduint256 _feesAmountuint256 _feesSharestruct FraxlendPairCoreCurrentRateInfo _currentRateInfostruct VaultAccount _totalAssetstruct VaultAccount _totalBorrow)
approve(address spenderuint256 amountreturns (bool)
borrowAsset(uint256 _borrowAmountuint256 _collateralAmountaddress _receiverreturns (uint256 _shares)
changeFee(uint32 _newFee
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
deposit(uint256 _amountaddress _receiverreturns (uint256 _sharesReceived)
increaseAllowance(address spenderuint256 addedValuereturns (bool)
leveragedPosition(address _swapperAddressuint256 _borrowAmountuint256 _initialCollateralAmountuint256 _amountCollateralOutMinaddress[] _pathreturns (uint256 _totalCollateralBalance)
liquidate(uint128 _sharesToLiquidateuint256 _deadlineaddress _borrowerreturns (uint256 _collateralForLiquidator)
mint(uint256 _sharesaddress _receiverreturns (uint256 _amount)
pause(
pauseBorrow(
pauseDeposit(
pauseInterest(bool _isPaused
pauseLiquidate(bool _isPaused
pauseRepay(bool _isPaused
pauseWithdraw(bool _isPaused
redeem(uint256 _sharesaddress _receiveraddress _ownerreturns (uint256 _amountToReturn)
removeCollateral(uint256 _collateralAmountaddress _receiver
renounceOwnership(
renounceTimelock(
repayAsset(uint256 _sharesaddress _borrowerreturns (uint256 _amountToRepay)
repayAssetWithCollateral(address _swapperAddressuint256 _collateralToSwapuint256 _amountAssetOutMinaddress[] _pathreturns (uint256 _amountAssetOut)
revokeBorrowLimitAccessControl(uint256 _borrowLimit
revokeDepositLimitAccessControl(uint256 _depositLimit
revokeInterestAccessControl(
revokeLiquidateAccessControl(
revokeLiquidationFeeSetter(
revokeMaxLTVSetter(
revokeOracleInfoSetter(
revokeRateContractSetter(
revokeRepayAccessControl(
revokeWithdrawAccessControl(
setBorrowLimit(uint256 _limit
setCircuitBreaker(address _newCircuitBreaker
setDepositLimit(uint256 _limit
setLiquidationFees(uint256 _newCleanLiquidationFeeuint256 _newDirtyLiquidationFeeuint256 _newProtocolLiquidationFee
setMaxLTV(uint256 _newMaxLTV
setOracle(address _newOracleuint32 _newMaxOracleDeviation
setRateContract(address _newRateContract
setSwapper(address _swapperbool _approval
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
transferOwnership(address newOwner
transferTimelock(address _newTimelock
unpause(
updateExchangeRate(returns (bool _isBorrowAlloweduint256 _lowExchangeRateuint256 _highExchangeRate)
withdraw(uint256 _amountaddress _receiveraddress _ownerreturns (uint256 _sharesToBurn)
withdrawFees(uint128 _sharesaddress _recipientreturns (uint256 _amountToTransfer)
Events
AddCollateral(address indexed senderaddress indexed borroweruint256 collateralAmount
AddInterest(uint256 interestEarneduint256 rateuint256 feesAmountuint256 feesShare
Approval(address indexed owneraddress indexed spenderuint256 value
BorrowAsset(address indexed _borroweraddress indexed _receiveruint256 _borrowAmountuint256 _sharesAdded
ChangeFee(uint32 newFee
Deposit(address indexed calleraddress indexed owneruint256 assetsuint256 shares
LeveragedPosition(address indexed _borroweraddress _swapperAddressuint256 _borrowAmountuint256 _borrowSharesuint256 _initialCollateralAmountuint256 _amountCollateralOut
Liquidate(address indexed _borroweruint256 _collateralForLiquidatoruint256 _sharesToLiquidateuint256 _amountLiquidatorToRepayuint256 _feesAmountuint256 _sharesToAdjustuint256 _amountToAdjust
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PauseInterest(bool isPaused
PauseLiquidate(bool isPaused
PauseRepay(bool isPaused
PauseWithdraw(bool isPaused
RemoveCollateral(address indexed _senderuint256 _collateralAmountaddress indexed _receiveraddress indexed _borrower
RepayAsset(address indexed payeraddress indexed borroweruint256 amountToRepayuint256 shares
RepayAssetWithCollateral(address indexed _borroweraddress _swapperAddressuint256 _collateralToSwapuint256 _amountAssetOutuint256 _sharesRepaid
RevokeBorrowAccessControl(uint256 borrowLimit
RevokeDepositAccessControl(uint256 depositLimit
RevokeInterestAccessControl(
RevokeLiquidateAccessControl(
RevokeLiquidationFeeSetter(
RevokeMaxLTVSetter(
RevokeOracleInfoSetter(
RevokeRateContractSetter(
RevokeRepayAccessControl(
RevokeWithdrawAccessControl(
SetBorrowLimit(uint256 limit
SetCircuitBreaker(address oldCircuitBreakeraddress newCircuitBreaker
SetDepositLimit(uint256 limit
SetLiquidationFees(uint256 oldCleanLiquidationFeeuint256 oldDirtyLiquidationFeeuint256 oldProtocolLiquidationFeeuint256 newCleanLiquidationFeeuint256 newDirtyLiquidationFeeuint256 newProtocolLiquidationFee
SetMaxLTV(uint256 oldMaxLTVuint256 newMaxLTV
SetOracleInfo(address oldOracleuint32 oldMaxOracleDeviationaddress newOracleuint32 newMaxOracleDeviation
SetRateContract(address oldRateContractaddress newRateContract
SetSwapper(address swapperbool approval
TimelockTransferStarted(address indexed previousTimelockaddress indexed newTimelock
TimelockTransferred(address indexed previousTimelockaddress indexed newTimelock
Transfer(address indexed fromaddress indexed touint256 value
UpdateExchangeRate(uint256 lowExchangeRateuint256 highExchangeRate
UpdateRate(uint256 oldRatePerSecuint256 oldFullUtilizationRateuint256 newRatePerSecuint256 newFullUtilizationRate
WarnOracleData(address oracle
Withdraw(address indexed calleraddress indexed receiveraddress indexed owneruint256 assetsuint256 shares
WithdrawFees(uint128 sharesaddress recipientuint256 amountToTransferuint256 collateralAmount
Constructor
constructor(bytes _configDatabytes _immutablesbytes _customConfigData
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlRevoked(
BadProtocolFee(
BadSwapper(
BorrowerSolvent(
ExceedsBorrowLimit(
ExceedsDepositLimit(
ExceedsMaxOracleDeviation(
Insolvent(uint256 _borrowuint256 _collateraluint256 _exchangeRate
InsufficientAssetsInContract(uint256 _assetsuint256 _request
InterestPaused(
InvalidPath(address _expectedaddress _actual
InvalidReceiver(
LiquidatePaused(
OnlyPendingTimelock(
OnlyProtocolOrOwner(
OnlyTimelock(
OnlyTimelockOrOwner(
PastDeadline(uint256 _blockTimestampuint256 _deadline
RepayPaused(
SetterRevoked(
SlippageTooHigh(uint256 _minOutuint256 _actual
WithdrawPaused(