Skip to content

Commit 8e12488

Browse files
committed
feat: camel case
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
1 parent 364bdb1 commit 8e12488

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# <h1 align="center"> OVAL HoneyPot Demo </h1>
1+
# <h1 align="center"> Oval HoneyPot Demo </h1>
22

3-
**This repository is a demonstration of the OVAL system and a HoneyPot mechanism. It showcases how a backrunner can liquidate a position, in this particular case, how a HoneyPot can be emptied given a specific price change.**
3+
**This repository is a demonstration of the Oval system and a HoneyPot mechanism. It showcases how a backrunner can liquidate a position, in this particular case, how a HoneyPot can be emptied given a specific price change.**
44

55
![Github Actions](https://github.com/UMAprotocol/oval-demo/workflows/CI/badge.svg)
66

@@ -21,7 +21,7 @@ forge test`
2121
## Contracts Overview
2222

2323
- **HoneyPot**: Represents the honey pot, which can be emptied when a price oracle returns a value different from a pre-defined liquidation price. The honey pot's funds can also be reset by its owner.
24-
- **HoneyPotOVAL**: Acts as the oracle which retrieves prices from various sources like Chainlink, Chronicle, and Pyth.
24+
- **HoneyPotOval**: Acts as the oracle which retrieves prices from various sources like Chainlink, Chronicle, and Pyth.
2525
- **Test Contract**: Sets up the environment, including simulating price changes and testing the mechanisms for creating and emptying the HoneyPot.
2626

2727
## Deploy the Contracts

script/HoneyPot.s.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import "forge-std/Script.sol";
66

77
import {ChronicleMedianSourceMock} from "../src/mock/ChronicleMedianSourceMock.sol";
88
import {IMedian} from "oev-contracts/interfaces/chronicle/IMedian.sol";
9-
import {HoneyPotOVAL} from "../src/HoneyPotOVAL.sol";
9+
import {HoneyPotOval} from "../src/HoneyPotOval.sol";
1010
import {HoneyPot} from "../src/HoneyPot.sol";
1111
import {HoneyPotDAO} from "../src/HoneyPotDAO.sol";
1212
import {IAggregatorV3Source} from "oval-contracts/interfaces/chainlink/IAggregatorV3Source.sol";
1313

1414
contract HoneyPotDeploymentScript is Script {
15-
HoneyPotOVAL oval;
15+
HoneyPotOval oval;
1616
HoneyPot honeyPot;
1717
HoneyPotDAO honeyPotDAO;
1818
ChronicleMedianSourceMock chronicleMock;
@@ -32,7 +32,7 @@ contract HoneyPotDeploymentScript is Script {
3232
// Create mock ChronicleMedianSource and set the latest source data.
3333
chronicleMock = new ChronicleMedianSourceMock();
3434

35-
oval = new HoneyPotOVAL(
35+
oval = new HoneyPotOval(
3636
chainlink,
3737
address(chronicleMock),
3838
pyth,

src/HoneyPot.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract HoneyPot is Ownable {
1212
}
1313

1414
mapping(address => HoneyPotDetails) public honeyPots;
15-
IAggregatorV3Source public oracle; // OVAL serving as a Chainlink oracle
15+
IAggregatorV3Source public oracle; // Oval serving as a Chainlink oracle
1616

1717
event OracleUpdated(address indexed newOracle);
1818
event HoneyPotCreated(address indexed creator, int256 liquidationPrice, uint256 initialBalance);

src/HoneyPotOVAL.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {IAggregatorV3Source} from "oev-contracts/interfaces/chainlink/IAggregato
88
import {IMedian} from "oev-contracts/interfaces/chronicle/IMedian.sol";
99
import {IPyth} from "oev-contracts/interfaces/pyth/IPyth.sol";
1010

11-
contract HoneyPotOVAL is BaseController, BoundedUnionSourceAdapter, ChainlinkDestinationAdapter {
11+
contract HoneyPotOval is BaseController, BoundedUnionSourceAdapter, ChainlinkDestinationAdapter {
1212
constructor(
1313
address chainlinkSource,
1414
address chronicleSource,

test/HoneyPot.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {IAggregatorV3Source} from "oval-contracts/interfaces/chainlink/IAggregat
66
import {IMedian} from "oev-contracts/interfaces/chronicle/IMedian.sol";
77
import {IPyth} from "oev-contracts/interfaces/pyth/IPyth.sol";
88

9-
import {HoneyPotOVAL} from "../src/HoneyPotOVAL.sol";
9+
import {HoneyPotOval} from "../src/HoneyPotOval.sol";
1010
import {HoneyPot} from "../src/HoneyPot.sol";
1111
import {HoneyPotDAO} from "../src/HoneyPotDAO.sol";
1212
import {ChronicleMedianSourceMock} from "../src/mock/ChronicleMedianSourceMock.sol";
@@ -26,7 +26,7 @@ contract HoneyPotTest is CommonTest {
2626

2727
ChronicleMedianSourceMock chronicleMock;
2828

29-
HoneyPotOVAL oval;
29+
HoneyPotOval oval;
3030
HoneyPot honeyPot;
3131
HoneyPotDAO honeyPotDAO;
3232

@@ -35,7 +35,7 @@ contract HoneyPotTest is CommonTest {
3535

3636
function setUp() public {
3737
vm.createSelectFork("mainnet", 18419040); // Recent block on mainnet
38-
oval = new HoneyPotOVAL(
38+
oval = new HoneyPotOval(
3939
address(chainlink),
4040
address(chronicle),
4141
address(pyth),
@@ -145,7 +145,7 @@ contract HoneyPotTest is CommonTest {
145145
uint256 read = chronicle.read();
146146
chronicleMock.setLatestSourceData(read, age);
147147

148-
HoneyPotOVAL oval2 = new HoneyPotOVAL(
148+
HoneyPotOval oval2 = new HoneyPotOval(
149149
address(chainlink),
150150
address(chronicleMock),
151151
address(pyth),

0 commit comments

Comments
 (0)