mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor change
This commit is contained in:
parent
a43317b69b
commit
2e21b0df0e
|
@ -22,10 +22,11 @@ abstract contract Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
contract SwapHelpers is Helper {
|
contract SwapHelpers is Helper {
|
||||||
/**
|
/**
|
||||||
*@param _connectors name of the connectors in preference order.
|
*@dev Performs the swap usign the dex aggregators.
|
||||||
*@param _inputData data for the swap cast.
|
*@param _connectors name of the connectors in preference order.
|
||||||
*/
|
*@param _inputData data for the swap cast.
|
||||||
|
*/
|
||||||
function _swap(string[] memory _connectors, InputData memory _inputData)
|
function _swap(string[] memory _connectors, InputData memory _inputData)
|
||||||
internal
|
internal
|
||||||
returns (
|
returns (
|
||||||
|
@ -51,7 +52,7 @@ contract SwapHelpers is Helper {
|
||||||
keccak256("swap(address,address,uint256,uint256,bytes,uint256)")
|
keccak256("swap(address,address,uint256,uint256,bytes,uint256)")
|
||||||
);
|
);
|
||||||
|
|
||||||
string memory _1INCH = "1INCH-A";
|
string memory _1INCH = "1INCH-A";
|
||||||
if (keccak256(bytes(_connectors[i])) == keccak256(bytes(_1INCH))) {
|
if (keccak256(bytes(_connectors[i])) == keccak256(bytes(_1INCH))) {
|
||||||
swapData = bytes4(
|
swapData = bytes4(
|
||||||
keccak256(
|
keccak256(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user