Skip to content

Commit

Permalink
added edits to bnb oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
jpick713 committed May 24, 2024
1 parent 1ac9d9e commit 7ffb1dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/peer-to-peer/oracles/custom/MysoBnbUsdOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

pragma solidity 0.8.19;

//import {ChainlinkBase} from "../chainlink/ChainlinkBase.sol";
import {ChainlinkArbitrumSequencerUSD} from "../chainlink/ChainlinkArbitrumSequencerUSD.sol";
import {ChainlinkBase} from "../chainlink/ChainlinkBase.sol";
//import {ChainlinkArbitrumSequencerUSD} from "../chainlink/ChainlinkArbitrumSequencerUSD.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IMysoTokenManager} from "../../interfaces/oracles/IMysoTokenManager.sol";
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
Expand All @@ -15,7 +15,7 @@ import {IGTOKEN} from "../../interfaces/oracles/IGTOKEN.sol";
/**
* @dev supports oracles which are compatible with v2v3 or v3 interfaces
*/
contract MysoBnbUsdOracle is ChainlinkArbitrumSequencerUSD, Ownable {
contract MysoBnbUsdOracle is ChainlinkBase, Ownable {
struct PriceParams {
// maxPrice is in 8 decimals for chainlink consistency
uint96 maxPrice;
Expand Down Expand Up @@ -61,7 +61,7 @@ contract MysoBnbUsdOracle is ChainlinkArbitrumSequencerUSD, Ownable {
uint96 _k,
uint32 _a,
uint32 _b
) ChainlinkArbitrumSequencerUSD(_tokenAddrs, _oracleAddrs) Ownable() {
) ChainlinkBase(_tokenAddrs, _oracleAddrs, 1e8) Ownable() {
mysoTokenManager = _mysoTokenManager;
mysoPriceParams = PriceParams(_maxPrice, _k, _a, _b);
_transferOwnership(_owner);
Expand Down

0 comments on commit 7ffb1dd

Please sign in to comment.