Skip to content

Commit

Permalink
Merge pull request #111 from P4-Games/fix/gamma-conditions
Browse files Browse the repository at this point in the history
[fix] 🔥 remove invalid validation (#2)
  • Loading branch information
dappsar authored Dec 27, 2023
2 parents 160f06b + 69e430f commit 179cc08
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions contracts/gamma/GammaCards.v5.sol
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,6 @@ contract NofGammaCardsV5 is ERC721, ERC721URIStorage, ERC721Burnable, Ownable {
uint256 contractBalance = IERC20(DAI_TOKEN).balanceOf(address(this));
require(contractBalance >= secondaryAlbumPrize, "Insufficient funds (contract).");

uint256 userAllowance = IERC20(DAI_TOKEN).allowance(msg.sender, address(this));
require(userAllowance >= secondaryAlbumPrize,
"Insufficient allowance to transfer prize for burning cards.");

mustPayPrize = true;
}

Expand Down

0 comments on commit 179cc08

Please sign in to comment.