Skip to content

Commit

Permalink
Stage version of Rewards V2 (#12)
Browse files Browse the repository at this point in the history
* Preliminary CometRewardsV2 functionality with MerkleProof

* feat: restructorized contract storage, fixed all compilaion errors

* fix: multiple assets compaign

* fix: compaigns functionality

* feat: Add finishAccrued and startAccrued bug fix (#5)

* feat: claimed calculation fix

* feat: claimed calculation fix

* feat: add CometRewards V1 interaction

* wip: tests and new contract version

* wip: contract update with more tests

* wip: new contract update and revert changes to CometRewards

* wip: cover most of the contract and fix some bugs

* wip: coverage improvement

* feat: complited contract changes and test coverage

* feat: remove package-lock

* feat: set yarn file to the main branch version

* feat: update yarn file
  • Loading branch information
dmitriy-woof-software committed Apr 10, 2024
1 parent cb53e0b commit fae7e0e
Show file tree
Hide file tree
Showing 9 changed files with 9,138 additions and 95 deletions.
9 changes: 7 additions & 2 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
module.exports = {
skipFiles: ['test/', 'vendor/', 'ERC20.sol']
};
configureYulOptimizer: true, // (Experimental). Should resolve 'stack too deep' in projects using ABIEncoderV2.
skipFiles: ['test/', 'vendor/', 'ERC20.col'],
mocha: {
fgrep: '[skip-on-coverage]',
invert: true
}
};
18 changes: 18 additions & 0 deletions contracts/CometRewardsInterface.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.15;

/**
* @title Compound's CometRewards Interface
* @notice An efficient monolithic money market protocol
* @author Compound
*/
abstract contract CometRewardsInterface {
struct RewardOwed {
address token;
uint owed;
}

function getRewardOwed(address comet, address account) virtual external returns (RewardOwed memory);
function claim(address comet, address src, bool shouldAccrue) virtual external;
function claimTo(address comet, address src, address to, bool shouldAccrue) virtual external;
}
Loading

0 comments on commit fae7e0e

Please sign in to comment.