f(x) btcUSD

Verified contract

Proxy

Active on Ethereum with 445 txns
Deployed by via 0x30d9becc at 19682576
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 44 additional slots
-
variable spans 47 additional slots
-
variable spans 48 additional slots
-
variable spans 1 additional slot
-
variable spans 1 additional slot
1 additional variable
ERC-20
--
0x1ab6226dc55e7f0e6effd4b3f6e9ffef89351a5c6b7e0f23475093e3a7d6128a
0xb39ee0cfba73690870654f9268d095dec53a25d1275266ab326002b958bf0229
0xa6ed4e14dd3252ba4fd1e76e4726737f0609923296df4ac4b92709ba898af50a
0x85feb6c4a38a5c66dd6e5c1329c5a8a52f08da0bdd38196ce7cfd337a1fc22d9
0xcb4acab9addb232a1f33e28da295405994a56e71836cacae8503de034ba9b96c
0x7480b277b75cb52e3e61b22d567551bf38336449f0f420c10b3c7c8391a2a475
0x25226f39244c4c8df36f0047bdcfa853faea34a42fbac665aeda0b9a7fb33ef9
0xbf4133955d18601b88befb4c8efd08168e71b340dcf4a80adcc63b452d8a5c78
0x7d96c3bc93cfa94b0a3de04bed2a28b62aec0ada81db8ed2173f87a65588e915
0x83709364a58bcae2ed6a5193240cd50979cc6bac318dc5f9b5c778dbbd4c95da

Functions
Getter at block 21245079
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DOMAIN_SEPARATOR(view returns (bytes32)
0x3c24d804cf09a6668535ac51ae504c3edd76f5263eccffaf2bf9b314218a337b
decimals(view returns (uint8)
18
eip712Domain(view returns (bytes1 fieldsstring namestring versionuint256 chainIdaddress verifyingContractbytes32 saltuint256[] extensions)
(fields=0x0f, name=f(x) btcUSD, version=1, chainId=1, verifyingContract=0x9d11ab23d33ad026c466ce3c124928fdb69ba20e, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
getMarkets(view returns (address[] _tokens)
[0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599]
getRebalancePools(view returns (address[] _pools)
[0xf291EC9C2F87A41386fd94eC4BCdC3270eD04482, 0xBB549046497364A1E26F94f7e93685Dc29FAd8c0]
 
isUnderCollateral(view returns (bool)
name(view returns (string)
f(x) btcUSD
 
nav(view returns (uint256 _nav)
symbol(view returns (string)
btcUSD
totalSupply(view returns (uint256)
15486114227764828832334
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
markets(addressview returns (address fTokenaddress treasuryaddress marketuint256 mintCapuint256 managed)
nonces(address ownerview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
admin(returns (address admin_)
changeAdmin(address newAdmin
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
addMarket(address _marketuint256 _mintCap
addRebalancePools(address[] _pools
approve(address spenderuint256 amountreturns (bool)
autoRedeem(uint256 _amountInaddress _receiveruint256[] _minOutsreturns (address[] _baseTokensuint256[] _amountOutsuint256[] _bonusOuts)
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
earn(address _pooluint256 _amountaddress _receiver
grantRole(bytes32 roleaddress account
increaseAllowance(address spenderuint256 addedValuereturns (bool)
initialize(string _namestring _symbol
mint(address _baseTokenuint256 _amountInaddress _receiveruint256 _minOutreturns (uint256 _amountOut)
mintAndEarn(address _pooluint256 _amountInaddress _receiveruint256 _minOutreturns (uint256 _amountOut)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
redeem(address _baseTokenuint256 _amountInaddress _receiveruint256 _minOutreturns (uint256 _amountOutuint256 _bonusOut)
redeemFrom(address _pooluint256 _amountInaddress _receiveruint256 _minOutreturns (uint256 _amountOutuint256 _bonusOut)
removeRebalancePools(address[] _pools
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
updateMintCap(address _baseTokenuint256 _newCap
wrap(address _baseTokenuint256 _amountaddress _receiver
wrapFrom(address _pooluint256 _amountaddress _receiver
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
AddMarket(address indexed baseTokenuint256 mintCap
AddRebalancePool(address indexed baseTokenaddress indexed pool
Approval(address indexed owneraddress indexed spenderuint256 value
EIP712DomainChanged(
Initialized(uint8 version
RemoveRebalancePool(address indexed baseTokenaddress indexed pool
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Transfer(address indexed fromaddress indexed touint256 value
Unwrap(address indexed baseTokenaddress indexed owneraddress indexed receiveruint256 amount
UpdateMintCap(address indexed baseTokenuint256 oldCapuint256 newCap
Wrap(address indexed baseTokenaddress indexed owneraddress indexed receiveruint256 amount
Constructor
constructor(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors
ErrorExceedMintCap(
ErrorInsufficientLiquidity(
ErrorLengthMismatch(
ErrorMarketAlreadySupported(
ErrorMarketInStabilityMode(
ErrorMarketWithInvalidPrice(
ErrorUnderCollateral(
ErrorUnsupportedMarket(
ErrorUnsupportedRebalancePool(