TestOrderController
Inherits: OrderController
State Variables
isExpectedTokenAndTrancheAmountMocked
bool public isExpectedTokenAndTrancheAmountMocked;
isPortfolioStatusMocked
bool public isPortfolioStatusMocked;
mockedPortfolioStatus
Status public mockedPortfolioStatus;
Functions
constructor
constructor(
ITranchePool tranche_,
IProtocolConfig protocolConfig_,
IPortfolio portfolio_,
uint256 dust_,
address manager_
)
OrderController(tranche_, protocolConfig_, portfolio_, dust_, manager_);
executeDepositOrder
function executeDepositOrder(uint256 amount, address user) external;
executeWithdrawOrder
function executeWithdrawOrder(uint256 amount, address user) external;
validateInputs
function validateInputs(address user, uint256 amount, OrderType orderType) external view;
setToken
function setToken(IERC20 token_) external;
setTranche
function setTranche(ITranchePool tranche_) external;
createOrder
function createOrder(address user, uint256 amount, OrderType orderType) external;
mockExpectedTokenAndTrancheAmount
function mockExpectedTokenAndTrancheAmount(bool isMocked) external;
mockPortfolioStatus
function mockPortfolioStatus(Status status, bool isMocked) external;
expectedTokenAmount
function expectedTokenAmount(uint256 trancheAmount) public view override returns (uint256);
expectedTrancheAmount
function expectedTrancheAmount(uint256 tokenAmount) public view override returns (uint256);
expectedTokenAmountCeil
function expectedTokenAmountCeil(uint256 trancheAmount) internal view override returns (uint256);
expectedTrancheAmountCeil
function expectedTrancheAmountCeil(uint256 tokenAmount) internal view override returns (uint256);
getOrderCount
function getOrderCount(OrderType orderType) public view returns (uint256);
getOrders
function getOrders(OrderType orderType) public view returns (Order[] memory);