mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Minor refactoring
This commit is contained in:
parent
51fe81f38a
commit
653df9a0d7
|
@ -373,8 +373,7 @@ contract LiquidityAccess is LiquidityAccessHelper {
|
|||
_transfer(payable(address(liquidityContract)), token, _amt);
|
||||
liquidityContract.returnLiquidity(_tknAddrs);
|
||||
|
||||
if (feeAmt > 0)
|
||||
_transfer(payable(feeCollector), token, feeAmt);
|
||||
if (feeAmt > 0) _transfer(payable(feeCollector), token, feeAmt);
|
||||
|
||||
setUint(setId, _amt);
|
||||
emitFlashPayback(token, _amt, feeAmt, getId, setId);
|
||||
|
@ -456,9 +455,8 @@ contract LiquidityAccessMulti is LiquidityAccess {
|
|||
(address feeCollector, uint feeAmt) = calculateFeeAmt(tokens[i], _amt);
|
||||
|
||||
_transfer(payable(address(liquidityContract)), tokens[i], _amt);
|
||||
|
||||
if (feeAmt > 0)
|
||||
_transfer(payable(feeCollector), tokens[i], feeAmt);
|
||||
|
||||
if (feeAmt > 0) _transfer(payable(feeCollector), tokens[i], feeAmt);
|
||||
|
||||
setUint(setId[i], _amt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user