IAccountant

The interface defines the functions and their signatures for the IAccountant contract.

Functions

isSubscribed

Checks if a given UID is subscribed.

Parameters

Name
Type
Description

uid_

uint32

The UID to check

Returns

  • true if the UID is subscribed, otherwise false.

decimals

Gets the number of decimals of the token.

Returns

  • The number of decimals.

balanceOf

Gets the balance of the token for a given owner and ID.

Parameters

Name
Type
Description

owner

address

The owner's address

id

uint256

The ID of the token

Returns

  • The balance of the token for the owner and ID.

subtractMP

Subtracts membership points from an account for a specific era.

Parameters

Name
Type
Description

account

address

The account's address

nthEra

uint256

The nth era

amount

uint256

The amount to subtract

pointOf

Gets the membership points of an account for a specific era.

Parameters

Name
Type
Description

account

address

The account's address

nthEra

uint256

The nth era

Returns

  • The membership points of the account for the specific era.

Last updated