Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

InternalTrade

Git Source

Struct containing data for an internal trade.

struct InternalTrade {
// Address of the basket that is selling.
address fromBasket;
// Address of the token to sell.
address sellToken;
// Address of the token to buy.
address buyToken;
// Address of the basket that is buying.
address toBasket;
// Amount of the token to sell.
uint256 sellAmount;
// Minimum amount of the buy token that the trade results in. Used to check that the proposers oracle prices
// are correct.
uint256 minAmount;
// Maximum amount of the buy token that the trade can result in.
uint256 maxAmount;
}