Skip to content

Commit

Permalink
feat: Add relayOjoPriceData method
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Nov 18, 2023
1 parent e105401 commit 0be6fd7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions contracts/MockOjoContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ contract MockOjoContract {
ojo = IOjo(ojo_);
}

function relayOjoPriceData(
bytes32[] calldata assetNames
) external payable {
bytes memory commandParams = "0x";

ojo.callContractMethodWithOjoPriceData(
assetNames,
address(this),
OjoTypes.EMPTY_COMMAND_SELECTOR,
commandParams
);
}

function setBalanceWithOjoPriceData(
bytes32[] calldata assetNames,
uint256 multiplier
Expand Down

0 comments on commit 0be6fd7

Please sign in to comment.