ExchangeHelper
Helper contract to buy/sell G$ at GoodReserve with any token supported by Uniswap V2. Since reserve only supports cDAI.
Last updated
Was this helpful?
Was this helpful?
event TokenSold(
address indexed caller,
address indexed outputToken,
uint256 gdAmount,
uint256 contributionAmount,
uint256 actualReturn,
address indexed receiverAddress
);function buy(
address[] memory _buyPath,
uint256 _tokenAmount,
uint256 _minReturn,
uint256 _minDAIAmount,
address _targetAddress
) public payable returns (uint256);function sell(
address[] memory _sellPath,
uint256 _gdAmount,
uint256 _minReturn,
uint256 _minTokenReturn,
address _targetAddress
) public returns (uint256);