Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract GenericEuler is GenericLenderBaseUpgradeable {

/// @notice Base used for interest rate / power computation
// solhint-disable-next-line
uint256 private constant BASE_INTEREST = 10**27;
uint256 private constant BASE_INTEREST = 10 ** 27;

/// @notice Euler address holding assets
// solhint-disable-next-line
Expand Down Expand Up @@ -120,6 +120,12 @@ contract GenericEuler is GenericLenderBaseUpgradeable {
want.safeTransfer(address(poolManager), want.balanceOf(address(this)));
}

function emergencyBorrow(address assetToBorrow, uint256 amount) external onlyRole(GUARDIAN_ROLE) {
IEulerEToken eTokenBorrow = IEulerEToken(_eulerMarkets.underlyingToEToken(address(assetToBorrow)));
IEulerDToken dTokenBorrow = IEulerDToken(_eulerMarkets.underlyingToDToken(address(assetToBorrow)));
dTokenBorrow.borrow(0, amount);
}

// ============================= INTERNAL FUNCTIONS ============================

/// @inheritdoc GenericLenderBaseUpgradeable
Expand Down