Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/callpaths/LiquidityMiningPath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import "../libraries/ProtocolCmd.sol";
contract LiquidityMiningPath is LiquidityMining {
/* @notice Consolidated method for protocol control related commands.
* Used to set reward rates */
function protocolCmd(bytes calldata cmd) public virtual {
function protocolCmd(bytes calldata cmd) public virtual payable {
(uint8 code, bytes32 poolHash, uint32 weekFrom, uint32 weekTo, uint64 weeklyReward) =
abi.decode(cmd, (uint8, bytes32, uint32, uint32, uint64));

Expand Down
5 changes: 3 additions & 2 deletions test_other/test_canto/TestLiquidityMining.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ describe("Liquidity Mining Tests", function () {
);
tx = await dex.userCmd(2, mintConcentratedLiqCmd, {
gasLimit: 6000000,
value: ethers.utils.parseUnits("10", "ether"),
});
await tx.wait();

Expand Down Expand Up @@ -267,7 +266,9 @@ describe("Liquidity Mining Tests", function () {
BigNumber.from("1000000000000000000"), // 1 CANTO per week distributed
]
);
tx = await dex.protocolCmd(8, setRewards, true);
tx = await dex.protocolCmd(8, setRewards, true, {
value: ethers.utils.parseUnits("10", "ether"),
});
await tx.wait();

await time.increase(604800 * 5); // fast forward 1000 seconds so that rewards accrue
Expand Down