Skip to content

Instantly share code, notes, and snippets.

@ajb
Created November 23, 2022 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajb/ddf05c05125578d1f633ce7a354789cb to your computer and use it in GitHub Desktop.
Save ajb/ddf05c05125578d1f633ce7a354789cb to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
interface IERC20 {
function balanceOf(address) external view returns (uint256);
}
contract VeBalWithoutAura {
IERC20 public constant veBAL = IERC20(0xC128a9954e6c874eA3d62ce62B468bA073093F25);
address public constant auraAddress = 0xaF52695E1bB01A16D33D7194C28C42b10e0Dbec2;
function balanceOf(address user) external view returns (uint256) {
if (user == auraAddress) {
return 0;
} else {
return veBAL.balanceOf(user);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment