* Refactor excess interfaces * Compiles on 0.6 * Refactored into try/catch * Rebase and Refactored to v06 * Handle invalid registry in LP * Update packages/asset-swapper/contracts/src/LiquidityProviderSampler.sol Co-authored-by: Lawrence Forman <lawrence@0xproject.com> * chore: [asset-swapper] Move Bridge Addresses and Gas schedule * curve->pool * lint * Refactor to fix module load order * Move FEE Schedule * rollup: Swerve/Sushi/SnowSwap/DODO (#7) * rollup: Swerve/Sushi * DODO Rollup + Snowswap Swerve * hardcode addresses temporarily * rebase * rename to SUSHISWAP_ROUTER * CHANGELOGs * CHANGELOGs Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
39 lines
1.1 KiB
Solidity
39 lines
1.1 KiB
Solidity
pragma solidity ^0.6;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
contract DummyLiquidityProvider
|
|
{
|
|
/// @dev Quotes the amount of `makerToken` that would be obtained by
|
|
/// selling `sellAmount` of `takerToken`.
|
|
/// @param sellAmount Amount of `takerToken` to sell.
|
|
/// @return makerTokenAmount Amount of `makerToken` that would be obtained.
|
|
function getSellQuote(
|
|
address, /* takerToken */
|
|
address, /* makerToken */
|
|
uint256 sellAmount
|
|
)
|
|
external
|
|
view
|
|
returns (uint256 makerTokenAmount)
|
|
{
|
|
makerTokenAmount = sellAmount - 1;
|
|
}
|
|
|
|
/// @dev Quotes the amount of `takerToken` that would need to be sold in
|
|
/// order to obtain `buyAmount` of `makerToken`.
|
|
/// @param buyAmount Amount of `makerToken` to buy.
|
|
/// @return takerTokenAmount Amount of `takerToken` that would need to be sold.
|
|
function getBuyQuote(
|
|
address, /* takerToken */
|
|
address, /* makerToken */
|
|
uint256 buyAmount
|
|
)
|
|
external
|
|
view
|
|
returns (uint256 takerTokenAmount)
|
|
{
|
|
takerTokenAmount = buyAmount + 1;
|
|
}
|
|
}
|