From c38fb552e9a05956fd1d7477dec1c79827b757e2 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Thu, 21 Mar 2024 13:09:29 +0800 Subject: [PATCH] feat: make getQuote a public function * useful for 3rd part integration. No need to make a 2nd call to the quoter. --- solidity/SwapPool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidity/SwapPool.sol b/solidity/SwapPool.sol index 609b59d..6df6a21 100644 --- a/solidity/SwapPool.sol +++ b/solidity/SwapPool.sol @@ -119,7 +119,7 @@ contract SwapPool { return fee; } - function getQuote(address _outToken, address _inToken, uint256 _value) private returns (uint256) { + function getQuote(address _outToken, address _inToken, uint256 _value) public returns (uint256) { bool r; bytes memory v; uint256 quote;