mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
checking is there is token pool or not
This commit is contained in:
parent
1964045812
commit
66bee61f9f
|
@ -45,6 +45,8 @@ contract Flusher {
|
|||
require(address(token) != address(0), "invalid-token");
|
||||
|
||||
address poolToken = registry.poolToken(token);
|
||||
require(poolToken != address(0), "invalid-pool");
|
||||
|
||||
IERC20 tokenContract = IERC20(token);
|
||||
|
||||
YieldPool poolContract = YieldPool(poolToken);
|
||||
|
|
Loading…
Reference in New Issue
Block a user