checking is there is token pool or not

This commit is contained in:
Thrilok Kumar 2020-08-27 12:35:41 +05:30
parent 1964045812
commit 66bee61f9f

View File

@ -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);