-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from 1inch/deploy/solidly-oracle
[SC-1272] Redeploy SolidlyOracle
- Loading branch information
Showing
9 changed files
with
204 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.23; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
interface ISolidlyFactory { | ||
function getPair(IERC20 tokenA, IERC20 tokenB, bool stable) external view returns (address pair); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.23; | ||
|
||
import "./SolidlyOracle.sol"; | ||
import "../interfaces/ISolidlyFactory.sol"; | ||
|
||
contract SolidlyOracleNoCreate2 is SolidlyOracle { | ||
constructor(address _factory) SolidlyOracle(_factory, bytes32(0)) {} | ||
|
||
function _pairFor(IERC20 tokenA, IERC20 tokenB, bool stable) internal override view returns (address pair) { | ||
return ISolidlyFactory(FACTORY).getPair(tokenA, tokenB, stable); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
150 changes: 100 additions & 50 deletions
150
deployments/zksync/SolidlyOracleNoCreate2_MuteSwitch.json
Large diffs are not rendered by default.
Oops, something went wrong.