Skip to main content

AmmalgamDebtERC20

Git Source

Inherits: AmmalgamERC20Base, IAmmalgamDebtERC20

Functions

constructor

constructor(
string memory name,
string memory symbol,
TokenType _tokenType
) AmmalgamERC20Base(name, symbol, _tokenType);

approve

function approve(address, uint256) public pure override(ERC20, IERC20) returns (bool);

increaseAllowance

function increaseAllowance(address, uint256) public pure override(ERC20) returns (bool);

decreaseAllowance

function decreaseAllowance(address, uint256) public pure override(ERC20) returns (bool);

allowance

function allowance(address receiver, address spender) public view override(ERC20, IERC20) returns (uint256);

debtAllowance

Sets amount as the allowance of spender to send receiver debt tokens. Map key is the receiver of the debt approving the debt to be moved to them.

function debtAllowance(address receiver, address spender) public view override returns (uint256);

approveDebt

function approveDebt(address spender, uint256 amount) public override returns (bool);

_approve

Map key is the receiver of the debt approving the debt to be moved to them.

function _approve(address receiver, address spender, uint256 amount) internal override;

_spendAllowance

override this method to be able to use debtAllowance

function _spendAllowance(address receiver, address spender, uint256 amount) internal override;

transfer

function transfer(address receiver, uint256 amount) public override(ERC20, IERC20) returns (bool);

transferFrom

function transferFrom(address owner, address receiver, uint256 amount) public override(ERC20, IERC20) returns (bool);

_afterTokenTransfer

function _afterTokenTransfer(address owner, address receiver, uint256) internal override;

increaseDebtAllowance

function increaseDebtAllowance(address spender, uint256 addedValue) public override returns (bool);

decreaseDebtAllowance

function decreaseDebtAllowance(address spender, uint256 subtractedValue) public override returns (bool);

claimDebt

function claimDebt(address owner, uint256 amount) public override;