Implement adapter integration test and use it on uniswap and balancer
This commit is contained in:
@@ -188,10 +188,11 @@ contract BalancerV2SwapAdapter is ISwapAdapter {
|
||||
override
|
||||
returns (Capability[] memory capabilities)
|
||||
{
|
||||
capabilities = new Capability[](3);
|
||||
capabilities = new Capability[](4);
|
||||
capabilities[0] = Capability.SellOrder;
|
||||
capabilities[1] = Capability.BuyOrder;
|
||||
capabilities[2] = Capability.PriceFunction;
|
||||
capabilities[3] = Capability.HardLimits;
|
||||
}
|
||||
|
||||
function getTokens(bytes32 poolId)
|
||||
|
||||
@@ -30,7 +30,10 @@ interface ISwapAdapterTypes {
|
||||
TokenBalanceIndependent,
|
||||
// Indicates that prices are returned scaled, else it is assumed prices
|
||||
// still require scaling by token decimals. (required)
|
||||
ScaledPrices
|
||||
ScaledPrices,
|
||||
// Indicates that if we try to go over the sell limits, the pool will
|
||||
// revert (optional)
|
||||
HardLimits
|
||||
}
|
||||
|
||||
/// @dev Representation used for rational numbers such as prices.
|
||||
|
||||
Reference in New Issue
Block a user