-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from morpho-org/test/metamorpho-mock
test: add metamorpho mock
- Loading branch information
Showing
3 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
pragma solidity ^0.8.26; | ||
|
||
import "../MetaMorphoV1_1.sol"; | ||
|
||
contract MetaMorphoMock is MetaMorphoV1_1 { | ||
constructor( | ||
address owner, | ||
address morpho, | ||
uint256 initialTimelock, | ||
address _asset, | ||
string memory __name, | ||
string memory __symbol | ||
) MetaMorphoV1_1(owner, morpho, initialTimelock, _asset, __name, __symbol) {} | ||
|
||
function mockSetCap(MarketParams memory marketParams, Id id, uint184 supplyCap) external { | ||
_setCap(marketParams, id, supplyCap); | ||
} | ||
|
||
function mockSimulateWithdrawMorpho(uint256 assets) external view returns (uint256) { | ||
return _simulateWithdrawMorpho(assets); | ||
} | ||
|
||
function mockSetSupplyQueue(Id[] memory ids) external { | ||
supplyQueue = ids; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.