Skip to content
🚧 Under Development! May be incomplete.Some pages/links may be incomplete or subject to change.

Honey

0x0E4aaF1351de4c0264C5c7056Ef3777b41BD8e03 | ABI JSON

This is the ERC20 token representation of Berachain's native stablecoin, HONEY.

Functions

mint

Mint Honey to the receiver.

Only the factory can call this function.

solidity
function mint(address to, uint256 amount) external onlyFactory;

Parameters

NameTypeDescription
toaddressThe receiver address.
amountuint256The amount of Honey to mint.

burn

Burn Honey from an account.

Only the factory can call this function.

solidity
function burn(address from, uint256 amount) external onlyFactory;

Parameters

NameTypeDescription
fromaddressThe account to burn Honey from.
amountuint256The amount of Honey to burn.

name

solidity
function name() public pure override returns (string memory);

symbol

solidity
function symbol() public pure override returns (string memory);

decimals

Returns the number of decimals used to get its user representation.

For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2).

solidity
function decimals() public view returns (uint8);

totalSupply

Returns the amount of tokens in existence.

solidity
function totalSupply() public view override returns (uint256);

balanceOf

Returns the amount of tokens owned by owner.

solidity
function balanceOf(address account) public view override returns (uint256);

transfer

Transfer amount tokens from the caller to to.

  • the caller must have a balance of at least amount
solidity
function transfer(address recipient, uint256 amount) public virtual override returns (bool);

allowance

Returns the amount of tokens that spender can spend on behalf of owner.

solidity
function allowance(address owner, address spender) public view virtual override returns (uint256);

approve

Sets amount as the allowance of spender over the caller's tokens.

solidity
function approve(address spender, uint256 amount) public virtual override returns (bool);

transferFrom

Transfers amount tokens from from to to.

  • sender must have a balance of at least amount
  • the caller must have allowance for sender's tokens of at least amount
solidity
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool);