mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor changes
This commit is contained in:
parent
47af8e450e
commit
8c7b6a61be
|
@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
BuyInfo memory buyData
|
BuyInfo memory buyData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
||||||
|
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
SellInfo memory sellData
|
SellInfo memory sellData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
||||||
|
|
|
@ -16,13 +16,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Buy Function
|
* @dev Buy Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
|
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
|
||||||
* @param buyAmt amount of token to be bought
|
* @param _buyAmt amount of token to be bought
|
||||||
* @param getId Id to get buyAmt
|
* @param _getId Id to get buyAmt
|
||||||
* @param setId Id to store sellAmt
|
* @param _setId Id to store sellAmt
|
||||||
*/
|
*/
|
||||||
function buy(
|
function buy(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Sell Function
|
* @dev Sell Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
|
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
|
||||||
* @param sellAmt amount of token to be sold
|
* @param _sellAmt amount of token to be sold
|
||||||
* @param getId Id to get sellAmt
|
* @param _getId Id to get sellAmt
|
||||||
* @param setId Id to store buyAmt
|
* @param _setId Id to store buyAmt
|
||||||
*/
|
*/
|
||||||
function sell(
|
function sell(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
|
|
@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
BuyInfo memory buyData
|
BuyInfo memory buyData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
||||||
|
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
SellInfo memory sellData
|
SellInfo memory sellData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
||||||
|
|
|
@ -16,13 +16,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Buy Function
|
* @dev Buy Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
|
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
|
||||||
* @param buyAmt amount of token to be bought
|
* @param _buyAmt amount of token to be bought
|
||||||
* @param getId Id to get buyAmt
|
* @param _getId Id to get buyAmt
|
||||||
* @param setId Id to store sellAmt
|
* @param _setId Id to store sellAmt
|
||||||
*/
|
*/
|
||||||
function buy(
|
function buy(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Sell Function
|
* @dev Sell Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
|
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
|
||||||
* @param sellAmt amount of token to be sold
|
* @param _sellAmt amount of token to be sold
|
||||||
* @param getId Id to get sellAmt
|
* @param _getId Id to get sellAmt
|
||||||
* @param setId Id to store buyAmt
|
* @param _setId Id to store buyAmt
|
||||||
*/
|
*/
|
||||||
function sell(
|
function sell(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
|
|
@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
BuyInfo memory buyData
|
BuyInfo memory buyData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
||||||
|
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
SellInfo memory sellData
|
SellInfo memory sellData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
||||||
|
|
|
@ -16,13 +16,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Buy Function
|
* @dev Buy Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
|
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
|
||||||
* @param buyAmt amount of token to be bought
|
* @param _buyAmt amount of token to be bought
|
||||||
* @param getId Id to get buyAmt
|
* @param _getId Id to get buyAmt
|
||||||
* @param setId Id to store sellAmt
|
* @param _setId Id to store sellAmt
|
||||||
*/
|
*/
|
||||||
function buy(
|
function buy(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Sell Function
|
* @dev Sell Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
|
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
|
||||||
* @param sellAmt amount of token to be sold
|
* @param _sellAmt amount of token to be sold
|
||||||
* @param getId Id to get sellAmt
|
* @param _getId Id to get sellAmt
|
||||||
* @param setId Id to store buyAmt
|
* @param _setId Id to store buyAmt
|
||||||
*/
|
*/
|
||||||
function sell(
|
function sell(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
|
|
@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
BuyInfo memory buyData
|
BuyInfo memory buyData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
|
||||||
|
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
SellInfo memory sellData
|
SellInfo memory sellData
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
payable
|
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);
|
||||||
|
|
|
@ -15,13 +15,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Buy Function
|
* @dev Buy Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
|
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
|
||||||
* @param buyAmt amount of token to be bought
|
* @param _buyAmt amount of token to be bought
|
||||||
* @param getId Id to get buyAmt
|
* @param _getId Id to get buyAmt
|
||||||
* @param setId Id to store sellAmt
|
* @param _setId Id to store sellAmt
|
||||||
*/
|
*/
|
||||||
function buy(
|
function buy(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
/**
|
/**
|
||||||
* @dev Sell Function
|
* @dev Sell Function
|
||||||
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
|
||||||
* @param buyAddr token to be bought
|
* @param _buyAddr token to be bought
|
||||||
* @param sellAddr token to be sold
|
* @param _sellAddr token to be sold
|
||||||
* @param fee pool fees for buyAddr-sellAddr token pair
|
* @param _fee pool fees for buyAddr-sellAddr token pair
|
||||||
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
|
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
|
||||||
* @param sellAmt amount of token to be sold
|
* @param _sellAmt amount of token to be sold
|
||||||
* @param getId Id to get sellAmt
|
* @param _getId Id to get sellAmt
|
||||||
* @param setId Id to store buyAmt
|
* @param _setId Id to store buyAmt
|
||||||
*/
|
*/
|
||||||
function sell(
|
function sell(
|
||||||
address _buyAddr,
|
address _buyAddr,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user