diff --git a/contracts/interfaces/ICurveSwap.sol b/contracts/interfaces/ICurveSwap.sol index 433d9efa..40781a92 100644 --- a/contracts/interfaces/ICurveSwap.sol +++ b/contracts/interfaces/ICurveSwap.sol @@ -4,12 +4,12 @@ pragma solidity 0.8.19; // solhint-disable func-name-mixedcase -interface ICurveSwap { +interface ICurveSwapInt128 { function get_dy(int128 _from, int128 _to, uint256 _amount) external view returns (uint256); function get_dy_underlying(int128 _from, int128 _to, uint256 _amount) external view returns (uint256); } -interface ICurveSwapNew { +interface ICurveSwapUint256 { function get_dy(uint256 _from, uint256 _to, uint256 _amount) external view returns (uint256); function get_dy_underlying(uint256 _from, uint256 _to, uint256 _amount) external view returns (uint256); } diff --git a/contracts/oracles/CurveOracle.sol b/contracts/oracles/CurveOracle.sol index 92c9583c..8b381e75 100644 --- a/contracts/oracles/CurveOracle.sol +++ b/contracts/oracles/CurveOracle.sol @@ -92,14 +92,14 @@ contract CurveOracle is IOracle { if (!isUnderlying) { info = FunctionInfo({ balanceFuncSelector: ICurveRegistry.get_balances.selector, - dyFuncInt128Selector: ICurveSwap.get_dy.selector, - dyFuncUint256: ICurveSwapNew(pool).get_dy + dyFuncInt128Selector: ICurveSwapInt128.get_dy.selector, + dyFuncUint256: ICurveSwapUint256(pool).get_dy }); } else { info = FunctionInfo({ balanceFuncSelector: ICurveRegistry.get_underlying_balances.selector, - dyFuncInt128Selector: ICurveSwap.get_dy_underlying.selector, - dyFuncUint256: ICurveSwapNew(pool).get_dy_underlying + dyFuncInt128Selector: ICurveSwapInt128.get_dy_underlying.selector, + dyFuncUint256: ICurveSwapUint256(pool).get_dy_underlying }); }