minor changes

This commit is contained in:
Richa-iitr 2022-05-03 15:39:13 +05:30
parent 47af8e450e
commit 8c7b6a61be
8 changed files with 56 additions and 64 deletions

View File

@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
BuyInfo memory buyData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
SellInfo memory sellData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);

View File

@ -16,13 +16,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Buy Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param buyAmt amount of token to be bought
* @param getId Id to get buyAmt
* @param setId Id to store sellAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param _buyAmt amount of token to be bought
* @param _getId Id to get buyAmt
* @param _setId Id to store sellAmt
*/
function buy(
address _buyAddr,
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Sell Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param sellAmt amount of token to be sold
* @param getId Id to get sellAmt
* @param setId Id to store buyAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param _sellAmt amount of token to be sold
* @param _getId Id to get sellAmt
* @param _setId Id to store buyAmt
*/
function sell(
address _buyAddr,

View File

@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
BuyInfo memory buyData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
SellInfo memory sellData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);

View File

@ -16,13 +16,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Buy Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param buyAmt amount of token to be bought
* @param getId Id to get buyAmt
* @param setId Id to store sellAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param _buyAmt amount of token to be bought
* @param _getId Id to get buyAmt
* @param _setId Id to store sellAmt
*/
function buy(
address _buyAddr,
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Sell Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param sellAmt amount of token to be sold
* @param getId Id to get sellAmt
* @param setId Id to store buyAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param _sellAmt amount of token to be sold
* @param _getId Id to get sellAmt
* @param _setId Id to store buyAmt
*/
function sell(
address _buyAddr,

View File

@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
BuyInfo memory buyData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
SellInfo memory sellData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);

View File

@ -16,13 +16,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Buy Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param buyAmt amount of token to be bought
* @param getId Id to get buyAmt
* @param setId Id to store sellAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param _buyAmt amount of token to be bought
* @param _getId Id to get buyAmt
* @param _setId Id to store sellAmt
*/
function buy(
address _buyAddr,
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Sell Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param sellAmt amount of token to be sold
* @param getId Id to get sellAmt
* @param setId Id to store buyAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param _sellAmt amount of token to be sold
* @param _getId Id to get sellAmt
* @param _setId Id to store buyAmt
*/
function sell(
address _buyAddr,

View File

@ -43,7 +43,6 @@ abstract contract Helpers is DSMath, Basic {
BuyInfo memory buyData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _buyAmt = getUint(buyData.getId, buyData.buyAmt);
@ -102,7 +101,6 @@ abstract contract Helpers is DSMath, Basic {
SellInfo memory sellData
)
internal
payable
returns (string memory _eventName, bytes memory _eventParam)
{
uint256 _sellAmt = getUint(sellData.getId, sellData.sellAmt);

View File

@ -15,13 +15,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Buy Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param buyAmt amount of token to be bought
* @param getId Id to get buyAmt
* @param setId Id to store sellAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of sellAmt/buyAmt with slippage
* @param _buyAmt amount of token to be bought
* @param _getId Id to get buyAmt
* @param _setId Id to store sellAmt
*/
function buy(
address _buyAddr,
@ -47,13 +47,13 @@ abstract contract UniswapResolver is Helpers, Events {
/**
* @dev Sell Function
* @notice Swap token(sellAddr) with token(buyAddr), buy token with minimum sell token
* @param buyAddr token to be bought
* @param sellAddr token to be sold
* @param fee pool fees for buyAddr-sellAddr token pair
* @param unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param sellAmt amount of token to be sold
* @param getId Id to get sellAmt
* @param setId Id to store buyAmt
* @param _buyAddr token to be bought
* @param _sellAddr token to be sold
* @param _fee pool fees for buyAddr-sellAddr token pair
* @param _unitAmt The unit amount of buyAmt/sellAmt with slippage
* @param _sellAmt amount of token to be sold
* @param _getId Id to get sellAmt
* @param _setId Id to store buyAmt
*/
function sell(
address _buyAddr,