mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Code optimize.
This commit is contained in:
parent
8ad933a0b5
commit
98ec40aef7
|
@ -194,10 +194,7 @@ contract Pool is Helper {
|
|||
* @dev to remove all of the user's liquidity from pool. ETH and token quantity is decided as per the exchange token qty to burn
|
||||
* @param token ERC20 address of Uniswap's pool (eg:- DAI address, MKR address, etc)
|
||||
*/
|
||||
function shut(
|
||||
address token
|
||||
) public returns (uint ethReturned, uint tokenReturned)
|
||||
{
|
||||
function shut(address token) public returns (uint ethReturned, uint tokenReturned) {
|
||||
address poolAddr = getAddressPool(token);
|
||||
uint userPoolBal = IERC20(poolAddr).balanceOf(address(this));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user