Skip to content

Commit

Permalink
BIFI with Permit
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-monk committed Aug 24, 2023
1 parent 39a7e1a commit 1a1ef01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
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

0 comments on commit 1a1ef01

Please sign in to comment.