Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIFI with Permit #238

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 3 additions & 2 deletions contracts/BIFI/infra/BIFI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
pragma solidity ^0.8.0;

import "@openzeppelin-4/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin-4/contracts/token/ERC20/extensions/ERC20Permit.sol";

contract BIFI is ERC20 {
contract BIFI is ERC20, ERC20Permit {

constructor(address treasury) ERC20("Beefy", "BIFI") {
constructor(address treasury) ERC20("Beefy", "BIFI") ERC20Permit("Beefy") {
_mint(treasury, 80_000 ether);
}

Expand Down
5 changes: 3 additions & 2 deletions contracts/BIFI/strategies/DCA/BeefyERC721Enumerable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ abstract contract BeefyERC721Enumerable is ERC721, IERC721Enumerable {
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
uint256 tokenId,
uint256 batchSize
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
super._beforeTokenTransfer(from, to, tokenId, batchSize);

// Only allow one NFT for each address.
require(_ownedTokens[to][0] == 0, "to: address already owns NFT");
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@
integrity sha512-qIy6tLx8rtybEsIOAlrM4J/85s2q2nPkDqj/Rx46VakBZ0LwtFhXIVub96LXHczQX0vaqmAueDqNPXtbSXSaYQ==

"@openzeppelin-4/contracts@npm:@openzeppelin/contracts":
version "4.7.2"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.7.2.tgz#7587416fe2d35abf574193515b8971bfe9f64bc7"
integrity sha512-4n/JL9izql8303mPqPdubuna/DWEMbmOzWYUWyCPhjhiEr2w3nQrjE7vZz1fBF+wzzP6dZbIcsgqACk53c9FGA==
version "4.9.3"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.9.3.tgz#00d7a8cf35a475b160b3f0293a6403c511099364"
integrity sha512-He3LieZ1pP2TNt5JbkPA4PNT9WC3gOTOlDcFGJW4Le4QKqwmiNJCRt44APfxMxvq7OugU/cqYuPcSBzOw38DAg==

"@openzeppelin/contracts-upgradeable@^4.9.3":
version "4.9.3"
Expand Down
Loading