mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
fix: interface declaration
This commit is contained in:
parent
fe76acb427
commit
b5a67e5b49
|
@ -216,32 +216,31 @@ interface IBoostedSavingsVault {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract contract IFeederPool {
|
interface IFeederPool {
|
||||||
// Mint
|
// Mint
|
||||||
function mint(
|
function mint(
|
||||||
address _input,
|
address _input,
|
||||||
uint256 _inputQuantity,
|
uint256 _inputQuantity,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 mintOutput);
|
) external returns (uint256 mintOutput);
|
||||||
|
|
||||||
function mintMulti(
|
function mintMulti(
|
||||||
address[] calldata _inputs,
|
address[] calldata _inputs,
|
||||||
uint256[] calldata _inputQuantities,
|
uint256[] calldata _inputQuantities,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 mintOutput);
|
) external returns (uint256 mintOutput);
|
||||||
|
|
||||||
function getMintOutput(address _input, uint256 _inputQuantity)
|
function getMintOutput(address _input, uint256 _inputQuantity)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
virtual
|
|
||||||
returns (uint256 mintOutput);
|
returns (uint256 mintOutput);
|
||||||
|
|
||||||
function getMintMultiOutput(
|
function getMintMultiOutput(
|
||||||
address[] calldata _inputs,
|
address[] calldata _inputs,
|
||||||
uint256[] calldata _inputQuantities
|
uint256[] calldata _inputQuantities
|
||||||
) external view virtual returns (uint256 mintOutput);
|
) external view returns (uint256 mintOutput);
|
||||||
|
|
||||||
// Swaps
|
// Swaps
|
||||||
function swap(
|
function swap(
|
||||||
|
@ -250,13 +249,13 @@ abstract contract IFeederPool {
|
||||||
uint256 _inputQuantity,
|
uint256 _inputQuantity,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 swapOutput);
|
) external returns (uint256 swapOutput);
|
||||||
|
|
||||||
function getSwapOutput(
|
function getSwapOutput(
|
||||||
address _input,
|
address _input,
|
||||||
address _output,
|
address _output,
|
||||||
uint256 _inputQuantity
|
uint256 _inputQuantity
|
||||||
) external view virtual returns (uint256 swapOutput);
|
) external view returns (uint256 swapOutput);
|
||||||
|
|
||||||
// Redemption
|
// Redemption
|
||||||
function redeem(
|
function redeem(
|
||||||
|
@ -264,36 +263,35 @@ abstract contract IFeederPool {
|
||||||
uint256 _fpTokenQuantity,
|
uint256 _fpTokenQuantity,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 outputQuantity);
|
) external returns (uint256 outputQuantity);
|
||||||
|
|
||||||
function redeemProportionately(
|
function redeemProportionately(
|
||||||
uint256 _fpTokenQuantity,
|
uint256 _fpTokenQuantity,
|
||||||
uint256[] calldata _minOutputQuantities,
|
uint256[] calldata _minOutputQuantities,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256[] memory outputQuantities);
|
) external returns (uint256[] memory outputQuantities);
|
||||||
|
|
||||||
function redeemExactBassets(
|
function redeemExactBassets(
|
||||||
address[] calldata _outputs,
|
address[] calldata _outputs,
|
||||||
uint256[] calldata _outputQuantities,
|
uint256[] calldata _outputQuantities,
|
||||||
uint256 _maxMassetQuantity,
|
uint256 _maxMassetQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 mAssetRedeemed);
|
) external returns (uint256 mAssetRedeemed);
|
||||||
|
|
||||||
function getRedeemOutput(address _output, uint256 _fpTokenQuantity)
|
function getRedeemOutput(address _output, uint256 _fpTokenQuantity)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
virtual
|
|
||||||
returns (uint256 bAssetOutput);
|
returns (uint256 bAssetOutput);
|
||||||
|
|
||||||
function getRedeemExactBassetsOutput(
|
function getRedeemExactBassetsOutput(
|
||||||
address[] calldata _outputs,
|
address[] calldata _outputs,
|
||||||
uint256[] calldata _outputQuantities
|
uint256[] calldata _outputQuantities
|
||||||
) external view virtual returns (uint256 mAssetAmount);
|
) external view returns (uint256 mAssetAmount);
|
||||||
|
|
||||||
// Views
|
// Views
|
||||||
function mAsset() external view virtual returns (address);
|
function mAsset() external view returns (address);
|
||||||
|
|
||||||
function getPrice() public view virtual returns (uint256 price, uint256 k);
|
function getPrice() external view returns (uint256 price, uint256 k);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IERC20 {
|
interface IERC20 {
|
||||||
|
|
|
@ -155,32 +155,31 @@ interface IStakingRewardsWithPlatformToken {
|
||||||
function getPlatformToken() external returns (address token);
|
function getPlatformToken() external returns (address token);
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract contract IFeederPool {
|
interface IFeederPool {
|
||||||
// Mint
|
// Mint
|
||||||
function mint(
|
function mint(
|
||||||
address _input,
|
address _input,
|
||||||
uint256 _inputQuantity,
|
uint256 _inputQuantity,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 mintOutput);
|
) external returns (uint256 mintOutput);
|
||||||
|
|
||||||
function mintMulti(
|
function mintMulti(
|
||||||
address[] calldata _inputs,
|
address[] calldata _inputs,
|
||||||
uint256[] calldata _inputQuantities,
|
uint256[] calldata _inputQuantities,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 mintOutput);
|
) external returns (uint256 mintOutput);
|
||||||
|
|
||||||
function getMintOutput(address _input, uint256 _inputQuantity)
|
function getMintOutput(address _input, uint256 _inputQuantity)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
virtual
|
|
||||||
returns (uint256 mintOutput);
|
returns (uint256 mintOutput);
|
||||||
|
|
||||||
function getMintMultiOutput(
|
function getMintMultiOutput(
|
||||||
address[] calldata _inputs,
|
address[] calldata _inputs,
|
||||||
uint256[] calldata _inputQuantities
|
uint256[] calldata _inputQuantities
|
||||||
) external view virtual returns (uint256 mintOutput);
|
) external view returns (uint256 mintOutput);
|
||||||
|
|
||||||
// Swaps
|
// Swaps
|
||||||
function swap(
|
function swap(
|
||||||
|
@ -189,13 +188,13 @@ abstract contract IFeederPool {
|
||||||
uint256 _inputQuantity,
|
uint256 _inputQuantity,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 swapOutput);
|
) external returns (uint256 swapOutput);
|
||||||
|
|
||||||
function getSwapOutput(
|
function getSwapOutput(
|
||||||
address _input,
|
address _input,
|
||||||
address _output,
|
address _output,
|
||||||
uint256 _inputQuantity
|
uint256 _inputQuantity
|
||||||
) external view virtual returns (uint256 swapOutput);
|
) external view returns (uint256 swapOutput);
|
||||||
|
|
||||||
// Redemption
|
// Redemption
|
||||||
function redeem(
|
function redeem(
|
||||||
|
@ -203,34 +202,33 @@ abstract contract IFeederPool {
|
||||||
uint256 _fpTokenQuantity,
|
uint256 _fpTokenQuantity,
|
||||||
uint256 _minOutputQuantity,
|
uint256 _minOutputQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 outputQuantity);
|
) external returns (uint256 outputQuantity);
|
||||||
|
|
||||||
function redeemProportionately(
|
function redeemProportionately(
|
||||||
uint256 _fpTokenQuantity,
|
uint256 _fpTokenQuantity,
|
||||||
uint256[] calldata _minOutputQuantities,
|
uint256[] calldata _minOutputQuantities,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256[] memory outputQuantities);
|
) external returns (uint256[] memory outputQuantities);
|
||||||
|
|
||||||
function redeemExactBassets(
|
function redeemExactBassets(
|
||||||
address[] calldata _outputs,
|
address[] calldata _outputs,
|
||||||
uint256[] calldata _outputQuantities,
|
uint256[] calldata _outputQuantities,
|
||||||
uint256 _maxMassetQuantity,
|
uint256 _maxMassetQuantity,
|
||||||
address _recipient
|
address _recipient
|
||||||
) external virtual returns (uint256 mAssetRedeemed);
|
) external returns (uint256 mAssetRedeemed);
|
||||||
|
|
||||||
function getRedeemOutput(address _output, uint256 _fpTokenQuantity)
|
function getRedeemOutput(address _output, uint256 _fpTokenQuantity)
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
virtual
|
|
||||||
returns (uint256 bAssetOutput);
|
returns (uint256 bAssetOutput);
|
||||||
|
|
||||||
function getRedeemExactBassetsOutput(
|
function getRedeemExactBassetsOutput(
|
||||||
address[] calldata _outputs,
|
address[] calldata _outputs,
|
||||||
uint256[] calldata _outputQuantities
|
uint256[] calldata _outputQuantities
|
||||||
) external view virtual returns (uint256 mAssetAmount);
|
) external view returns (uint256 mAssetAmount);
|
||||||
|
|
||||||
// Views
|
// Views
|
||||||
function mAsset() external view virtual returns (address);
|
function mAsset() external view returns (address);
|
||||||
|
|
||||||
function getPrice() public view virtual returns (uint256 price, uint256 k);
|
function getPrice() external view returns (uint256 price, uint256 k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user