Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rice <[email protected]>
  • Loading branch information
mrice32 committed May 15, 2024
1 parent 4f82a9f commit e4aeac8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/factories/MutableUnlockersFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {IAggregatorV3Source} from "../interfaces/chainlink/IAggregatorV3Source.s
contract OvalChainlink is MutableUnlockersController, ChainlinkSourceAdapter, ChainlinkDestinationAdapter {
constructor(IAggregatorV3Source source, address[] memory unlockers, uint256 _lockWindow, uint256 _maxTraversal, address owner)
ChainlinkSourceAdapter(source)
MutableUnlockersController(_lockwindow, _maxTraversal, unlockers)
MutableUnlockersController(_lockWindow, _maxTraversal, unlockers)
ChainlinkDestinationAdapter(source.decimals())
{
_transferOwnership(owner);
Expand All @@ -20,21 +20,21 @@ contract OvalChainlink is MutableUnlockersController, ChainlinkSourceAdapter, Ch
contract MutableUnlockersFactory {
uint256 public immutable LOCK_WINDOW;
uint256 public immutable MAX_TRAVERSAL;
uint256 public immutable OWNER;
address public immutable OWNER;
address[] public unlockers;

constructor(uint256 lockWindow, uint256 maxTraversal, address owner, address[] memory _unlockers) {
LOCK_WINDOW = lockWindow;
MAX_TRAVERSAL = maxTraversal;
OWNER = owner;

for (uin256 i = 0; i < _unlockers.length; i++) {
for (uint256 i = 0; i < _unlockers.length; i++) {
unlockers.push(_unlockers[i]);
}
}

function createChainlink(IAggregatorV3Source source) external returns (address) {
return new OvalChainlink(source, unlockers, LOCK_WINDOW, MAX_TRAVERSAL, OWNER);
return address(new OvalChainlink(source, unlockers, LOCK_WINDOW, MAX_TRAVERSAL, OWNER));
}

// Add other create functions here.
Expand Down

0 comments on commit e4aeac8

Please sign in to comment.