PositionManager

Verified contract

Active on Ethereum with 1,339 txns
Deployed by via 0x269ef20c at 17317900
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $24,638.64
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x9b2af84c7d327017d5567e5ff4f9aee5e06761a75df7e8ca6ea8e52422d6dc50
0xaf3cac2a7d419c6f1a7b204a792db3b09c5bb9c568c01407180aed4253de7c55
0x38e2697dc9f8ed9c7a1da93cf666c5e8017df44614288902f20093c89dc0c8d4
0x1d913df9c913da54b5f2b51f84ac8bca106be7885daef325e430ac66da2be5b1
0x1d43d7065c799f237d3f73047f2292fcdefa924b968abeb7c0b6591b7bb069dd
0x9c3f71e27e2489fb30fe280315ffdf960febbe0a2807a2f339bc35033ddc2312
0xbd1af83fc256a7c97ab886e67fe20a14d26321f0b94819b2d70113d38b32bf11
0xe14025a748c2ebd890a35277452acb7ee61e922339f1305d7c619191d1a6e321
0x8ddeb0a8bcc898d48b79da95b7743107617d8cb2da0d6d2db7bf18354bea75d5
0x4dc817958f58ab5a36c7122e55ab077d322ed01c33d3d634a93cfc44d9877618

Functions
Getter at block 21223951
BETA(view returns (uint256)
2
MAX_BORROWING_RATE(view returns (uint256)
50000000000000000
MAX_BORROWING_SPREAD(view returns (uint256)
10000000000000000
MINUTE_DECAY_FACTOR(view returns (uint256)
999037758833783000
feeRecipient(view returns (address)
0xf41f9fc0b622eb112445fd7b32fc5190d0c0d3f4
owner(view returns (address)
0xab40a7e3cef4afb323ce23b6565012ac7c76bfef
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
rToken(view returns (address)
0x183015a9ba6ff60230fdeadc3f43b3d788b13e21
Read-only
baseRate(address collateralTokenview returns (uint256)
borrowingSpread(address collateralTokenview returns (uint256)
collateralEnabled(address collateralTokenview returns (bool)
collateralInfo(address collateralTokenview returns (address collateralTokenaddress debtTokenaddress priceFeedaddress splitLiquidationbool isEnableduint256 lastFeeOperationTimeuint256 borrowingSpreaduint256 baseRateuint256 redemptionSpreaduint256 redemptionRebate)
collateralTokenForPosition(address positionview returns (address collateralToken)
getBorrowingFee(address collateralTokenuint256 debtAmountview returns (uint256)
getBorrowingRate(address collateralTokenview returns (uint256)
getBorrowingRateWithDecay(address collateralTokenview returns (uint256)
getRedemptionFee(address collateralTokenuint256 collateralAmountuint256 priceDeviationview returns (uint256)
getRedemptionFeeWithDecay(address collateralTokenuint256 collateralAmountview returns (uint256 redemptionFee)
getRedemptionRate(address collateralTokenview returns (uint256)
getRedemptionRateWithDecay(address collateralTokenview returns (uint256)
isDelegateWhitelisted(address positionaddress delegateview returns (bool isWhitelisted)
lastFeeOperationTime(address collateralTokenview returns (uint256)
priceFeed(address collateralTokenview returns (address)
raftCollateralToken(address collateralTokenview returns (address)
raftDebtToken(address collateralTokenview returns (address)
redemptionRebate(address collateralTokenview returns (uint256)
redemptionSpread(address collateralTokenview returns (uint256)
splitLiquidationCollateral(address collateralTokenview returns (address)
State-modifying
acceptOwnership(
addCollateralToken(address collateralTokenaddress priceFeedaddress newSplitLiquidationCollateral
liquidate(address position
managePosition(address collateralTokenaddress positionuint256 collateralChangebool isCollateralIncreaseuint256 debtChangebool isDebtIncreaseuint256 maxFeePercentagestruct ERC20PermitSignature permitSignaturereturns (uint256 actualCollateralChangeuint256 actualDebtChange)
redeemCollateral(address collateralTokenuint256 debtAmountuint256 maxFeePercentage
renounceOwnership(
setBorrowingSpread(address collateralTokenuint256 newBorrowingSpread
setCollateralEnabled(address collateralTokenbool isEnabled
setFeeRecipient(address newFeeRecipient
setRedemptionRebate(address collateralTokenuint256 newRedemptionRebate
setRedemptionSpread(address collateralTokenuint256 newRedemptionSpread
setSplitLiquidationCollateral(address collateralTokenaddress newSplitLiquidationCollateral
transferOwnership(address newOwner
whitelistDelegate(address delegatebool whitelisted
Events
BaseRateUpdated(address collateralTokenuint256 baseRate
BorrowingSpreadUpdated(uint256 borrowingSpread
CollateralChanged(address indexed positionaddress indexed collateralTokenuint256 collateralAmountbool isCollateralIncrease
CollateralTokenAdded(address collateralTokenaddress raftCollateralTokenaddress raftDebtTokenaddress priceFeed
CollateralTokenModified(address collateralTokenbool isEnabled
DebtChanged(address indexed positionaddress indexed collateralTokenuint256 debtAmountbool isDebtIncrease
DelegateWhitelisted(address indexed positionaddress indexed delegatebool whitelisted
FeeRecipientChanged(address feeRecipient
LastFeeOpTimeUpdated(address collateralTokenuint256 lastFeeOpTime
Liquidation(address indexed liquidatoraddress indexed positionaddress indexed collateralTokenuint256 debtLiquidateduint256 collateralLiquidateduint256 collateralSentToLiquidatoruint256 collateralLiquidationFeePaidbool isRedistribution
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PositionClosed(address indexed position
PositionCreated(address indexed positionaddress indexed collateralToken
PositionManagerDeployed(address rTokenaddress feeRecipient
RBorrowingFeePaid(address collateralTokenaddress indexed positionuint256 feeAmount
Redemption(address indexed redeemeruint256 amountuint256 collateralSentuint256 feeuint256 rebate
RedemptionRebateUpdated(uint256 redemptionRebate
RedemptionSpreadUpdated(address collateralTokenuint256 redemptionSpread
SplitLiquidationCollateralChanged(address collateralTokenaddress indexed newSplitLiquidationCollateral
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AmountIsZero(
BorrowingSpreadExceedsMaximum(
CannotLiquidateLastPosition(
CollateralTokenAddressCannotBeZero(
CollateralTokenAlreadyAdded(
CollateralTokenDisabled(
CollateralTokenNotAdded(
DelegateNotWhitelisted(
FeeEatsUpAllReturnedCollateral(
FeeExceedsMaxFee(uint256 feeuint256 amountuint256 maxFeePercentage
InvalidDelegateAddress(
InvalidFeeRecipient(
InvalidMaxFeePercentage(
InvalidPosition(
MaxFeePercentageOutOfRange(
NetDebtBelowMinimum(uint256 netDebt
NewICRLowerThanMCR(uint256 newICR
NoCollateralOrDebtChange(
NothingToLiquidate(
PositionCollateralTokenMismatch(
PriceFeedAddressCannotBeZero(
RedemptionRebateExceedsMaximum(
RedemptionSpreadOutOfRange(
SplitLiquidationCollateralCannotBeZero(
TotalDebtCannotBeLowerThanMinDebt(address collateralTokenuint256 newTotalDebt
WrongCollateralParamsForFullRepayment(