@@ -158,6 +158,17 @@ contract BuyGDCloneV2 is Initializable {
158158 return swapCeloWithPath (_minAmount, refundGas, celoPath);
159159 }
160160
161+ /**
162+ * @notice Swaps Celo for GD tokens using a custom Uniswap path.
163+ */
164+ function swapCeloWithPath (
165+ uint256 _minAmount ,
166+ address payable refundGas ,
167+ UniswapPath memory _path
168+ ) public payable returns (uint256 bought ) {
169+ return _swapCeloViaUniswap (_minAmount, refundGas, _path);
170+ }
171+
161172 /**
162173 * @notice Swaps Celo for GD tokens via Uniswap using the given path.
163174 * @dev Uses quoter (same as getExpectedReturnFromUniswapPath) for expected output; no oracle.
@@ -271,17 +282,6 @@ contract BuyGDCloneV2 is Initializable {
271282 emit BoughtFromUniswap (CUSD, amountIn, bought);
272283 }
273284
274- /**
275- * @notice Swaps Celo for GD tokens using a custom Uniswap path.
276- */
277- function swapCeloWithPath (
278- uint256 _minAmount ,
279- address payable refundGas ,
280- UniswapPath memory _path
281- ) public payable returns (uint256 bought ) {
282- return _swapCeloViaUniswap (_minAmount, refundGas, _path);
283- }
284-
285285 /**
286286 * @notice Swaps cUSD for G$ tokens using Mento reserve.
287287 * @dev Requires Mento broker, exchange provider, and exchange ID to be configured.
0 commit comments