OrigamiLovTokenFlashAndBorrowManager

Verified contract

Active on Ethereum with 94 txns
Deployed by via 0xf23882d9 at 20387141
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "OrigamiLovTokenFlashAndBorrowManager"

0xe652ae94caf3230da7c9789362377aafab1289b2845c8bf3dfe4449db5a218c7
0xe5671f97d37edb9f219d26ef17f23e98fe93289e8ec999d122aa1dcfef998685
0x6ad23daa96323944c5e2615615787ac4e532e56516d46ccf28c128dcb80eb5df
0x756760200ecd70150a9c228c765fbf327dcce77fb679bae7a785266440a9450c
0xc6ba2311f920e29bc151531eeed77da00818925dff0c01c113e570023ab23385
0x09234c2d87721574fffd0548354ed6cca6d620a8c2a4ff0e760669e6e599b6cd
0x8e12e5581f59cad8c01a9cfd7a238e926e486de35bf4a19e82706a046f61bd2b
0x6d42a61c751e164db416b55ac8ca34175f636f45730409b30ad3e960672c404b
0x1977f6d9759c545e22f367dfdbece1cf89e7a0447a4179fa4489646de1e8fba2
0xac671ee5ff322e94375658ef0589dfe5fd70203652fec5b6076a3243b1289876

Functions
Getter at block 21286586
PRECISION(view returns (uint256)
1000000000000000000
acceptedExitTokens(view returns (address[] tokens)
[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2]
acceptedInvestTokens(view returns (address[] tokens)
[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2]
allowAll(view returns (bool)
true
areExitsPaused(view returns (bool)
false
areInvestmentsPaused(view returns (bool)
false
 
assetToLiabilityRatio(view returns (uint128)
baseToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
borrowLend(view returns (address)
0x2432b4767c6c3b4b5cff16acea8f51c013dbb678
debtToken(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
debtTokenToReserveTokenOracle(view returns (address)
0xc9a161601b76c0333dca022efd45b2549396b8b9
dynamicFeeOracleBaseToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
dynamicFeePriceOracle(view returns (address)
0xc9a161601b76c0333dca022efd45b2549396b8b9
flashLoanProvider(view returns (address)
0x88469316c5f828b4dfd11c4d8529cd9f96b2e006
 
getDynamicFeesBps(view returns (uint256 depositFeeBpsuint256 exitFeeBps)
getFeeConfig(view returns (uint64uint64uint64)
(0, 100, 0)
lovToken(view returns (address)
0x235e2afeaa56497436987e87bb475d04befc1394
owner(view returns (address)
0x781b4c57100738095222bd92d37b07ed034ab696
rebalanceALRange(view returns (uint128 flooruint128 ceiling)
(floor=1833200000000000000, ceiling=2249800000000000000)
reserveToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
reservesBalance(view returns (uint256)
58279336333115730538
swapper(view returns (address)
0xd3674dc273236213379207ca3ac6b0f292c47dd5
userALRange(view returns (uint128 flooruint128 ceiling)
(floor=1666700000000000000, ceiling=9999000000000000000000)
Read-only
allowedAccounts(address accountview returns (bool allowed)
assetsAndLiabilities(uint8 debtPriceTypeview returns (uint256uint256uint256)
effectiveExposure(uint8 debtPriceTypeview returns (uint128)
exitQuote(uint256 investmentAmountaddress toTokenuint256 maxSlippageBpsuint256 deadlineview returns (struct IOrigamiInvestmentExitQuoteData quoteDatauint256[] exitFeeBps)
explicitFunctionAccess(addressbytes4view returns (bool)
investQuote(uint256 fromTokenAmountaddress fromTokenuint256 maxSlippageBpsuint256 deadlineview returns (struct IOrigamiInvestmentInvestQuoteData quoteDatauint256[] investFeeBps)
isPauser(address accountview returns (bool canPause)
liabilities(uint8 debtPriceTypeview returns (uint256)
maxExit(address toTokenview returns (uint256 sharesAmount)
maxInvest(address fromTokenview returns (uint256 fromTokenAmount)
pausers(address accountview returns (bool canPause)
reservesToShares(uint256 reservesuint8 debtPriceTypeview returns (uint256)
sharesToReserves(uint256 sharesuint8 debtPriceTypeview returns (uint256)
userRedeemableReserves(uint8 debtPriceTypeview returns (uint256)
State-modifying
acceptOwner(
exitToToken(addressstruct IOrigamiInvestmentExitQuoteData quoteDataaddress recipientreturns (uint256 toTokenAmountuint256 toBurnAmount)
flashLoanCallback(address tokenuint256 amountuint256 feebytes paramsreturns (bool)
forceRebalanceDown(struct IOrigamiLovTokenFlashAndBorrowManagerRebalanceDownParams params
forceRebalanceUp(struct IOrigamiLovTokenFlashAndBorrowManagerRebalanceUpParams params
investWithToken(address accountstruct IOrigamiInvestmentInvestQuoteData quoteDatareturns (uint256 investmentAmount)
proposeNewOwner(address account
rebalanceDown(struct IOrigamiLovTokenFlashAndBorrowManagerRebalanceDownParams params
rebalanceUp(struct IOrigamiLovTokenFlashAndBorrowManagerRebalanceUpParams params
recoverToken(address tokenaddress touint256 amount
setAllowAccount(address accountbool value
setAllowAll(bool value
setBorrowLend(address _address
setExplicitAccess(address allowedCallerstruct IOrigamiElevatedAccessExplicitAccess[] access
setFeeConfig(uint16 minDepositFeeBpsuint16 minExitFeeBpsuint24 feeLeverageFactor
setFlashLoanProvider(address provider
setOracles(address _debtTokenToReserveTokenOracleaddress _dynamicFeePriceOracle
setPaused(struct IOrigamiManagerPausablePaused updatedPaused
setPauser(address accountbool canPause
setRebalanceALRange(uint128 flooruint128 ceiling
setSwapper(address _swapper
setUserALRange(uint128 flooruint128 ceiling
Events
AllowAccountSet(address indexed accountbool value
AllowAllSet(bool value
BorrowLendSet(address indexed addr
ExplicitAccessSet(address indexed accountbytes4 indexed fnSelectorbool indexed value
FeeConfigSet(uint16 maxExitFeeBpsuint16 minExitFeeBpsuint24 feeLeverageFactor
FlashLoanProviderSet(address indexed provider
InKindFees(uint8 feeTypeuint256 feeBpsuint256 feeAmount
NewOwnerAccepted(address indexed oldOwneraddress indexed newOwner
NewOwnerProposed(address indexed oldOwneraddress indexed oldProposedOwneraddress indexed newProposedOwner
OraclesSet(address indexed debtTokenToReserveTokenOracleaddress indexed dynamicFeePriceOracle
PausedSet(struct IOrigamiManagerPausablePaused paused
PauserSet(address indexed accountbool canPause
Rebalance(int256 collateralChangeint256 debtChangeuint256 alRatioBeforeuint256 alRatioAfter
RebalanceALRangeSet(uint128 flooruint128 ceiling
SwapperSet(address indexed swapper
UserALRangeSet(uint128 flooruint128 ceiling
Constructor
constructor(address _initialOwneraddress _reserveToken_address _debtToken_address _dynamicFeeOracleBaseTokenaddress _lovTokenaddress _flashLoanProvideraddress _borrowLend
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ALTooHigh(uint128 ratioBeforeuint128 ratioAfteruint128 maxRatio
ALTooLow(uint128 ratioBeforeuint128 ratioAfteruint128 minRatio
ExpectedNonZero(
InvalidAccess(
InvalidAddress(address addr
InvalidAmount(address tokenuint256 amount
InvalidParam(
InvalidRange(uint128 flooruint128 ceiling
InvalidToken(address token
IsPaused(
NoAvailableReserves(
PRBMath_MulDiv_Overflow(uint256 xuint256 yuint256 denominator
Slippage(uint256 minAmountExpecteduint256 actualAmount