mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor chnages
This commit is contained in:
parent
751f8ca9e7
commit
6dded3fac2
|
@ -36,7 +36,6 @@ abstract contract Helpers is DSMath, Basic {
|
|||
address to,
|
||||
uint256 amt
|
||||
) internal {
|
||||
|
||||
if (from == address(0) && to == address(0)) {
|
||||
CometInterface(market).withdraw(token, amt);
|
||||
} else if (from == address(0)) {
|
||||
|
@ -92,7 +91,7 @@ abstract contract Helpers is DSMath, Basic {
|
|||
params.market,
|
||||
_token
|
||||
);
|
||||
_amt = sub(finalBal, initialBal);
|
||||
_amt = sub(initialBal, finalBal);
|
||||
|
||||
convertWethToEth(isEth, tokenContract, _amt);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
* @param getId ID to retrieve amt.
|
||||
* @param setId ID stores the amount of tokens deposited.
|
||||
*/
|
||||
function depositFrom(
|
||||
function depositFromUsingManager(
|
||||
address market,
|
||||
address token,
|
||||
address from,
|
||||
|
@ -214,7 +214,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
token
|
||||
);
|
||||
|
||||
amt_ = sub(finalBal, initialBal);
|
||||
amt_ = sub(initialBal, finalBal);
|
||||
|
||||
convertWethToEth(isEth, tokenContract, amt_);
|
||||
|
||||
|
@ -273,7 +273,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
* @param getId ID to retrieve amt.
|
||||
* @param setId ID stores the amount of tokens withdrawn.
|
||||
*/
|
||||
function withdrawFrom(
|
||||
function withdrawFromUsingManager(
|
||||
address market,
|
||||
address token,
|
||||
address from,
|
||||
|
@ -346,7 +346,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
token_
|
||||
);
|
||||
|
||||
amt_ = sub(finalBal, initialBal);
|
||||
amt_ = sub(initialBal, finalBal);
|
||||
|
||||
convertWethToEth(isEth, tokenContract, amt_);
|
||||
|
||||
|
@ -401,7 +401,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
* @param getId ID to retrieve amt.
|
||||
* @param setId ID stores the amount of tokens borrowed.
|
||||
*/
|
||||
function borrowFrom(
|
||||
function borrowFromUsingManager(
|
||||
address market,
|
||||
address from,
|
||||
address to,
|
||||
|
@ -527,7 +527,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
* @param getId ID to retrieve amt.
|
||||
* @param setId ID stores the amount of tokens repaid.
|
||||
*/
|
||||
function paybackFrom(
|
||||
function paybackFromUsingManager(
|
||||
address market,
|
||||
address from,
|
||||
address to,
|
||||
|
@ -729,7 +729,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
* @param getId ID to retrieve amt.
|
||||
* @param setId ID stores the amount of tokens transferred.
|
||||
*/
|
||||
function transferBaseFrom(
|
||||
function transferBaseFromUsingManager(
|
||||
address market,
|
||||
address src,
|
||||
address dest,
|
||||
|
@ -824,7 +824,7 @@ abstract contract CompoundV3Resolver is Events, Helpers {
|
|||
* @param getId ID to retrieve amt.
|
||||
* @param setId ID stores the amount of tokens transferred.
|
||||
*/
|
||||
function transferAssetFrom(
|
||||
function transferAssetFromUsingManager(
|
||||
address market,
|
||||
address token,
|
||||
address src,
|
||||
|
|
Loading…
Reference in New Issue
Block a user