Skip to content
Merged
Show file tree
Hide file tree
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
40 changes: 0 additions & 40 deletions src/ForeignController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ pragma solidity ^0.8.21;
import { IAToken } from "aave-v3-origin/src/core/contracts/interfaces/IAToken.sol";
import { IPool as IAavePool } from "aave-v3-origin/src/core/contracts/interfaces/IPool.sol";

import { IMetaMorpho, Id, MarketAllocation } from "metamorpho/interfaces/IMetaMorpho.sol";

import { IERC7540 } from "forge-std/interfaces/IERC7540.sol";

import { AccessControl } from "openzeppelin-contracts/contracts/access/AccessControl.sol";
Expand Down Expand Up @@ -411,7 +409,6 @@ contract ForeignController is AccessControl {
ERC20Lib.transfer(proxy, asset, destination, amount);
}


/**********************************************************************************************/
/*** Relayer ERC4626 functions ***/
/**********************************************************************************************/
Expand Down Expand Up @@ -792,43 +789,6 @@ contract ForeignController is AccessControl {
}));
}

/**********************************************************************************************/
/*** Relayer Morpho functions ***/
/**********************************************************************************************/

function setSupplyQueueMorpho(address morphoVault, Id[] memory newSupplyQueue)
external
onlyRole(RELAYER)
rateLimitExists(RateLimitHelpers.makeAssetKey(LIMIT_4626_DEPOSIT, morphoVault))
{
proxy.doCall(
morphoVault,
abi.encodeCall(IMetaMorpho(morphoVault).setSupplyQueue, (newSupplyQueue))
);
}

function updateWithdrawQueueMorpho(address morphoVault, uint256[] calldata indexes)
external
onlyRole(RELAYER)
rateLimitExists(RateLimitHelpers.makeAssetKey(LIMIT_4626_DEPOSIT, morphoVault))
{
proxy.doCall(
morphoVault,
abi.encodeCall(IMetaMorpho(morphoVault).updateWithdrawQueue, (indexes))
);
}

function reallocateMorpho(address morphoVault, MarketAllocation[] calldata allocations)
external
onlyRole(RELAYER)
rateLimitExists(RateLimitHelpers.makeAssetKey(LIMIT_4626_DEPOSIT, morphoVault))
{
proxy.doCall(
morphoVault,
abi.encodeCall(IMetaMorpho(morphoVault).reallocate, (allocations))
);
}

/**********************************************************************************************/
/*** Relayer Pendle functions ***/
/**********************************************************************************************/
Expand Down
269 changes: 0 additions & 269 deletions test/spark-base-fork/MorphoAllocations.t.sol

This file was deleted.

Loading