https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/blob/master/contracts/main/stablecoin-core/FathomStablecoin.sol
The FXD token adheres to the ERC-20 standard and includes additional functionalities tailored to the Fathom protocol's needs.
nameDescription: Returns the name of the token.
Returns: string representing the token's name.
symbolDescription: Returns the token symbol.
Returns: string representing the token's symbol.
decimalsDescription: Returns the number of decimals the token uses.
Returns: uint8 representing the number of decimal places the token uses. This affects the granularity of the token.
totalSupplyDescription: Returns the total amount of FXD tokens currently in circulation.
Returns: uint256 representing the total supply of tokens.
balanceOfParameters:
account (address): The address of the token holder.
Description: Provides the balance of FXD tokens held by a specific account.
transferParameters:
to (address): The address of the recipient.
amount (uint256): The amount of FXD tokens to transfer.
allowanceParameters:
owner (address): The address of the token owner.
spender (address): The address of the spender.
approveParameters:
spender (address): The address of the spender.
amount (uint256): The amount of FXD tokens the spender is allowed to use.
transferFromParameters:
from (address): The address of the sender.
to (address): The address of the recipient.
mintParameters:
to (address): The address that will receive the created tokens.
amount (uint256): The amount of tokens to create.
burnParameters:
from (address): The address from which tokens will be burned.
amount (uint256): The amount of tokens to burn.
increaseAllowanceParameters:
spender (address): The address of the spender.
addedValue (uint256): The additional amount of tokens that the spender is allowed to spend.
decreaseAllowanceParameters:
spender (address): The address of the spender.
subtractedValue (uint256): The amount by which to decrease the spender's allowance.
TransferEmitted when: Tokens are moved from one account to another.
Parameters:
from (address indexed): The address of the sender.
ApprovalEmitted when: A spender is approved to use tokens from another account.
Parameters:
owner (address indexed): The address of the token owner.
uint256Returns: bool indicating whether the transfer was successful.
Emits: Transfer event.
Returns: uint256 representing the remaining amount of tokens allowed to be spent.
Returns: bool indicating whether the approval was successful.
Emits: Approval event.
amount (uint256): The amount of tokens to transfer.Description: Transfers tokens from one account to another, using an allowance mechanism.
Returns: bool indicating whether the transfer was successful.
Emits: Transfer event.
StablecoinAdapter in the process of taking the loan.StablecoinAdapter in the process of repaying the loan.Returns: bool indicating whether the operation was successful.
Returns: bool indicating whether the operation was successful.
tovalue (uint256): The amount of tokens transferred.
spendervalue (uint256): The amount of tokens the spender is allowed to use.