Skip to main content

Fidu

Fidu

Deployment on Ethereum mainnet:

https://etherscan.io/address/0x6a445E9F40e0b97c92d0b8a3366cEF1d67F700BF

Fidu (symbol: FIDU) is Goldfinch's liquidity token, representing shares in the Pool. When you deposit, we mint a corresponding amount of Fidu, and when you withdraw, we burn Fidu. The share price of the Pool implicitly represents the "exchange rate" between Fidu and USDC (or whatever currencies the Pool may allow withdraws in during the future)

OWNER_ROLE

bytes32 OWNER_ROLE

ASSET_LIABILITY_MATCH_THRESHOLD

uint256 ASSET_LIABILITY_MATCH_THRESHOLD

config

contract GoldfinchConfig config

GoldfinchConfigUpdated

event GoldfinchConfigUpdated(address who, address configAddress)

initialize

function __initialize__(address owner, string name, string symbol, contract GoldfinchConfig _config) external

mintTo

function mintTo(address to, uint256 amount) public

_Creates `amount` new tokens for `to`.

See {ERC20-_mint}.

Requirements:

  • the caller must have the `MINTERROLE`.

burnFrom

function burnFrom(address from, uint256 amount) public

_Destroys `amount` tokens from `account`, deducting from the caller's allowance.

See {ERC20-_burn} and {ERC20-allowance}.

Requirements:

  • the caller must have the MINTERROLE

canMint

function canMint(uint256 newAmount) internal view returns (bool)

canBurn

function canBurn(uint256 amountToBurn) internal view returns (bool)

fiduToUSDC

function fiduToUSDC(uint256 amount) internal pure returns (uint256)

fiduMantissa

function fiduMantissa() internal pure returns (uint256)

usdcMantissa

function usdcMantissa() internal pure returns (uint256)