-
-
Save ajb/ddf05c05125578d1f633ce7a354789cb to your computer and use it in GitHub Desktop.
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
// 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