gETH vs gAVAX
Improvements to G-Derivatives resulted in some differences between these two ERC1155 contracts.
Avoiders
/**
* @notice Mapping of user addresses who chose to restrict the usage of interfaces
**/
mapping(address => bool) private _interfaceAvoiders;
function isAvoider(address account) public view virtual returns (bool) {
return _interfaceAvoiders[account];
}
/**
* @notice One can desire to restrict the affect of interfaces on their gETH,
* this can be achieved by simply calling this function
* @param isAvoid true: restrict interfaces, false: allow the interfaces,
**/
function avoidInterfaces(bool isAvoid) external virtual {
_interfaceAvoiders[_msgSender()] = isAvoid;
emit InterfacesAvoided(_msgSender(), isAvoid);
}Denominator
priceUpdateTimestamp
Last updated