AMM ETH
The AMMs are used to swap a pegged token to the tenXXX version of the token and the other way around.
Functions
toggleBuy() external onlyOwner returns (bool)
function toggleBuy() external onlyOwner returns (bool) {
_canBuy = !_canBuy;
return _canBuy;
}canBuy() external view returns (bool)
function canBuy() external view returns (bool) {
return _canBuy;
}getTenToken() external view returns (address)
buy(uint256 tokenAmount) external nonReentrant payable returns (bool)
sell(uint256 tokenAmount) external nonReentrant returns (bool)
getInPrice(uint256 amount) external view returns (uint256)
getOutPrice(uint256 amount) external view returns (uint256)
Last updated