-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more efficient way of storing state for Staking contracts * [M-1] Block gas limit can be exceeded during setTimeUnit() and setRewardsPerUnit() when staker count grows * [C-1] Contract admins can lock staked tokens in the contract * [M-1] revised fix for Staking1155 * [H-1] TokenStake.sol rewards can be over- or under-awarded when the staking and reward tokens have different decimals * [M-2] ERC721 and ERC1155 tokens safe-transferred directly to contract will be locked and unrecoverable * [C-1] revised fix for large rewardsPerUnitTime * [L-1] Incorrect ERC165 implementation for NFTStake and EditionStake * [Q-2] Normalize support for ERC2771 trusted forwarder * [Q-3] Reentrancy init called twice * [Q-5] unitTime and rewardsPerUnitTime setter functions don’t check for new input data * [Q-6] getStakeInfo should be marked as external * [G-1] Halt array iteration after staker removed during withdraw() * [G-2] Loop reading from storage array length * [Q-7] Missing reward balance information * [M-3] TokenStake.sol: Double entry-point ERC20 tokens could be drained from the staking contract * [H-2] TokenStake.sol: Tokens with a tax on transfer will account for inaccurate amounts * virtual functions for bases * docs * v3.2.9 Co-authored-by: Krishang <krishang@thirdweb.com>
- Loading branch information
1 parent
3014c2c
commit 3d04ee7
Showing
36 changed files
with
2,853 additions
and
938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.