FraxlendPair

Verified contract

Active on Ethereum with 2,275 txns
Deployed by via 0x9c475e0f at 15456085
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $5,090,108.01
ERC-20
Value $752,882.29
ERC-20
Value $0.01
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x86d4e5704e361370774e26dc89f54cfb9f44ea7c4d8bb4c5911b80ef28f83b42
0x8c46a9d75baf643fd874f9fa5f98462c340d89e7f85fa835f488bcf663bbd7ca
0x7a832661f3db3c47572f6fdb33d43fe4d4df6b9d4e40b48d20177c40effab936
0xafd0831f1c89c65e8233f5022b3b9a399a86d66b7e9cc6db52cb31376818f3c9
0x65dd88a506ce3253641021a03a77faf5b3dba54b47abc81f390d42612292202a
0x236d0357c6110b78752f2e71c699ad228834d672632e39872bfe4f97856efcb6
0xf6855edccb0cea8cb4b28ddf299e4b53073df0d20e4ea65fa1ba1a85a12cd6f5
0x99aa2ef446b11e7556766ab36b8aec8489c3a1d734c1f8134018ec5578bcf9aa
0x56174dd96c9d788b2d8321d98e3dcc77865e248a128a3f19b57e77e317568959
0x7302207ab594b2ff70f258a94ed158bcaf8b86cf6aa8056e8b35c2587c83defe

Functions
Getter at block 21398231
CIRCUIT_BREAKER_ADDRESS(view returns (address)
0xfd3065c629ee890fd74f43b802c2fea4b7279b8c
COMPTROLLER_ADDRESS(view returns (address)
0x168200cf227d4543302686124ac28ae0eaf2ca0b
DEPLOYER_ADDRESS(view returns (address)
0x5d6e79bcf90140585ce88c7119b7e43caaa67044
FRAXLEND_WHITELIST_ADDRESS(view returns (address)
0x118c1462aa28bf2ea304f78f49c3388cfd93234e
TIME_LOCK_ADDRESS(view returns (address)
0x8412ebf45bac1b340bbe8f318b928c466c4e39ca
asset(view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
borrowerWhitelistActive(view returns (bool)
false
cleanLiquidationFee(view returns (uint256)
10000
collateralContract(view returns (address)
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
currentRateInfo(view returns (uint64 lastBlockuint64 feeToProtocolRateuint64 lastTimestampuint64 ratePerSec)
(lastBlock=21381761, feeToProtocolRate=0, lastTimestamp=1733950235, ratePerSec=7968830269)
decimals(pure returns (uint8)
18
dirtyLiquidationFee(view returns (uint256)
9000
exchangeRateInfo(view returns (uint32 lastTimestampuint224 exchangeRate)
(lastTimestamp=1733488715, exchangeRate=1015)
getConstants(pure returns (uint256 _LTV_PRECISIONuint256 _LIQ_PRECISIONuint256 _UTIL_PRECuint256 _FEE_PRECISIONuint256 _EXCHANGE_PRECISIONuint64 _DEFAULT_INTuint16 _DEFAULT_PROTOCOL_FEEuint256 _MAX_PROTOCOL_FEE)
(_LTV_PRECISION=100000, _LIQ_PRECISION=100000, _UTIL_PREC=100000, _FEE_PRECISION=100000, _EXCHANGE_PRECISION=1000000000000000000, _DEFAULT_INT=158049988, _DEFAULT_PROTOCOL_FEE=0, _MAX_PROTOCOL_FEE=50000)
getImmutableAddressBool(view returns (address _assetContractaddress _collateralContractaddress _oracleMultiplyaddress _oracleDivideaddress _rateContractaddress _DEPLOYER_CONTRACTaddress _COMPTROLLER_ADDRESSaddress _FRAXLEND_WHITELISTbool _borrowerWhitelistActivebool _lenderWhitelistActive)
(_assetContract=0x853d955acef822db058eb8505911ed77f175b99e, _collateralContract=0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, _oracleMultiply=0x0000000000000000000000000000000000000000, _oracleDivide=0xf4030086522a5beea4988f8ca5b36dbc97bee88c, _rateContract=0x3da1bf0be175b7caa38d67a6e78371947d2f51f7, _DEPLOYER_CONTRACT=0x5d6e79bcf90140585ce88c7119b7e43caaa67044, _COMPTROLLER_ADDRESS=0x168200cf227d4543302686124ac28ae0eaf2ca0b, _FRAXLEND_WHITELIST=0x118c1462aa28bf2ea304f78f49c3388cfd93234e, _borrowerWhitelistActive=false, _lenderWhitelistActive=false)
getImmutableUint256(view returns (uint256 _oracleNormalizationuint256 _maxLTVuint256 _cleanLiquidationFeeuint256 _maturityDateuint256 _penaltyRate)
(_oracleNormalization=100000000000000000000, _maxLTV=75000, _cleanLiquidationFee=10000, _maturityDate=0, _penaltyRate=0)
getPairAccounting(view returns (uint128 _totalAssetAmountuint128 _totalAssetSharesuint128 _totalBorrowAmountuint128 _totalBorrowSharesuint256 _totalCollateral)
(_totalAssetAmount=2474381983454678037114544, _totalAssetShares=2229792357987706496173694, _totalBorrowAmount=1717599994890859476894810, _totalBorrowShares=1493763412104136788541322, _totalCollateral=4997160821)
lenderWhitelistActive(view returns (bool)
false
maturityDate(view returns (uint256)
0
maxLTV(view returns (uint256)
75000
name(view returns (string)
FraxlendV1 - Wrapped BTC/Frax - Variable Time-Weighted Interest Rate - 1
oracleDivide(view returns (address)
0xf4030086522a5beea4988f8ca5b36dbc97bee88c
oracleMultiply(view returns (address)
0x0000000000000000000000000000000000000000
oracleNormalization(view returns (uint256)
100000000000000000000
owner(view returns (address)
0x168200cf227d4543302686124ac28ae0eaf2ca0b
paused(view returns (bool)
false
penaltyRate(view returns (uint256)
0
rateContract(view returns (address)
0x3da1bf0be175b7caa38d67a6e78371947d2f51f7
rateInitCallData(view returns (bytes)
0x
symbol(view returns (string)
FraxlendV1 - WBTC/FRAX
totalAsset(view returns (uint128 amountuint128 shares)
(amount=2474381983454678037114544, shares=2229792357987706496173694)
totalBorrow(view returns (uint128 amountuint128 shares)
(amount=1717599994890859476894810, shares=1493763412104136788541322)
totalCollateral(view returns (uint256)
4997160821
totalSupply(view returns (uint256)
2229792357987706496173694
version(view returns (string)
1.0.0
Read-only
allowance(address owneraddress spenderview returns (uint256)
approvedBorrowers(addressview returns (bool)
approvedLenders(addressview returns (bool)
balanceOf(address accountview returns (uint256)
getUserSnapshot(address _addressview returns (uint256 _userAssetSharesuint256 _userBorrowSharesuint256 _userCollateralBalance)
swappers(addressview returns (bool)
toAssetAmount(uint256 _sharesbool _roundUpview returns (uint256)
toAssetShares(uint256 _amountbool _roundUpview returns (uint256)
toBorrowAmount(uint256 _sharesbool _roundUpview returns (uint256)
toBorrowShares(uint256 _amountbool _roundUpview returns (uint256)
userBorrowShares(addressview returns (uint256)
userCollateralBalance(addressview returns (uint256)
State-modifying
addCollateral(uint256 _collateralAmountaddress _borrower
addInterest(returns (uint256 _interestEarneduint256 _feesAmountuint256 _feesShareuint64 _newRate)
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)
initialize(string _nameaddress[] _approvedBorrowersaddress[] _approvedLendersbytes _rateInitCallData
leveragedPosition(address _swapperAddressuint256 _borrowAmountuint256 _initialCollateralAmountuint256 _amountCollateralOutMinaddress[] _pathreturns (uint256 _totalCollateralBalance)
liquidate(uint128 _sharesToLiquidateuint256 _deadlineaddress _borrowerreturns (uint256 _collateralForLiquidator)
pause(
redeem(uint256 _sharesaddress _receiveraddress _ownerreturns (uint256 _amountToReturn)
removeCollateral(uint256 _collateralAmountaddress _receiver
renounceOwnership(
repayAsset(uint256 _sharesaddress _borrowerreturns (uint256 _amountToRepay)
repayAssetWithCollateral(address _swapperAddressuint256 _collateralToSwapuint256 _amountAssetOutMinaddress[] _pathreturns (uint256 _amountAssetOut)
setApprovedBorrowers(address[] _borrowersbool _approval
setApprovedLenders(address[] _lendersbool _approval
setSwapper(address _swapperbool _approval
setTimeLock(address _newAddress
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
transferOwnership(address newOwner
unpause(
updateExchangeRate(returns (uint256 _exchangeRate)
withdrawFees(uint128 _sharesaddress _recipientreturns (uint256 _amountToTransfer)
Events
AddCollateral(address indexed _senderaddress indexed _borroweruint256 _collateralAmount
AddInterest(uint256 _interestEarneduint256 _rateuint256 _deltaTimeuint256 _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 _sharesToAdjustuint256 _amountToAdjust
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
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
SetApprovedBorrower(address indexed _addressbool _approval
SetApprovedLender(address indexed _addressbool _approval
SetSwapper(address _swapperbool _approval
SetTimeLock(address _oldAddressaddress _newAddress
Transfer(address indexed fromaddress indexed touint256 value
Unpaused(address account
UpdateExchangeRate(uint256 _rate
UpdateRate(uint256 _ratePerSecuint256 _deltaTimeuint256 _utilizationRateuint256 _newRatePerSec
Withdraw(address indexed calleraddress indexed receiveraddress indexed owneruint256 assetsuint256 shares
WithdrawFees(uint128 _sharesaddress _recipientuint256 _amountToTransfer
Constructor
constructor(bytes _configDatabytes _immutablesuint256 _maxLTVuint256 _liquidationFeeuint256 _maturityDateuint256 _penaltyRatebool _isBorrowerWhitelistActivebool _isLenderWhitelistActive
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyInitialized(
BadProtocolFee(
BadSwapper(
BorrowerSolvent(
BorrowerWhitelistRequired(
Insolvent(uint256 _borrowuint256 _collateraluint256 _exchangeRate
InsufficientAssetsInContract(uint256 _assetsuint256 _request
InvalidPath(address _expectedaddress _actual
NameEmpty(
NotDeployer(
NotOnWhitelist(address _address
OnlyApprovedBorrowers(
OnlyApprovedLenders(
OnlyTimeLock(
OracleLTEZero(address _oracle
PastDeadline(uint256 _blockTimestampuint256 _deadline
PastMaturity(
PriceTooLarge(
ProtocolOrOwnerOnly(
SlippageTooHigh(uint256 _minOutuint256 _actual