mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
code refactor.
This commit is contained in:
parent
a887b9009b
commit
217293cec5
|
@ -34,8 +34,8 @@ contract ImportResolver is DSMath {
|
|||
|
||||
// transfer tokens to InstaDApp smart wallet from user wallet
|
||||
for (uint i = 0; i < tokenAddrArr.length; i++) {
|
||||
address cErc20 = tokenAddrArr[i];
|
||||
ERC20Interface tknContract = ERC20Interface(cErc20);
|
||||
address crc20 = tokenAddrArr[i];
|
||||
ERC20Interface tknContract = ERC20Interface(crc20);
|
||||
uint tokenBal = tknContract.balanceOf(msg.sender);
|
||||
tokenBal = toConvert < 10**18 ? wmul(tokenBal, toConvert) : tokenBal;
|
||||
if (tokenBal > 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user