mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
minor edit
This commit is contained in:
parent
f63a3fc04d
commit
1cf3106273
|
@ -67,11 +67,11 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath {
|
|||
function deploy(address _dsa, address token, uint amount) external isChief {
|
||||
require(registry.isDsa(address(this), _dsa), "not-autheticated-dsa");
|
||||
if (token == address(0)) {
|
||||
payable(_dsa).transfer(amount);
|
||||
} else {
|
||||
IERC20(token).safeTransfer(_dsa, amount);
|
||||
}
|
||||
emit LogDeploy(token, amount);
|
||||
payable(_dsa).transfer(amount);
|
||||
} else {
|
||||
IERC20(token).safeTransfer(_dsa, amount);
|
||||
}
|
||||
emit LogDeploy(token, amount);
|
||||
}
|
||||
|
||||
function setExchangeRate() public isChief {
|
||||
|
|
Loading…
Reference in New Issue
Block a user