This function allows an instance of the contract to calculate and return the total amount of the token in circulation.
Another optional field used to identify a token, this is a three or four letter abbreviation of the token, just like BTC, ETH, AUG, or in this case AVEC. (AVEC, ONUS, and OMNI values are all contained within the Wealth Architect Eco Register Smart Contract.)
Number of Decimals
This function gets used to determine the decimal place for token value to calculate it correctly. (Precision) The most common number of decimals to consider is 18. (AVEC, ONUS, and OMNI use 18 decimals.)
This function lets the owner of a wallet send a given amount of the ONUS to another address, just like a conventional cryptocurrency transaction. (If you use the member function “swap type” to set the property ID you want to transfer from, a one-time AVEC transaction will occur on the following transfer unless reset with the same “swap type” function to the ONUS property ID. After the past AVEC swap occurs, the transfer function automatically resets your property ID to the global ONUS property ID.
This function lets the wallet owner send a given amount of the token to another address from an address that has approved a spend of its token balance to the owner, just like a conventional cryptocurrency transaction. This function behaves the same way that the standard Transfer function does. This function requires you to input the spender and receiver roles addresses. Please use an address that has approved your wallet address to spend funds.
This function acts like a withdraw function since the user can call it to take tokens out of their Equity Rent Envelopes. Therefore, take ownership can be used when a user has been approved to own a certain amount of tokens via equity rents calculations and wishes to withdraw said tokens from the function’s envelope number input.
This function allows the smart contract to store and return the balance of the provided address. The function accepts an address as a parameter, so You should know that the balance of any address is public. This function only includes the ONUS balance of the user unless the “swap type” function has temporarily set their current transferring property ID to an AVEC property; then, it will show the function callers balance in AVEC on that property.
When calling this function, the wallet owner authorizes or approves the given address to withdraw instances of the token from the owner’s address.
Token Of Owner By Index
Each non-fungible token owner can own more than one property at one time. Because its unique ID references each property, it can get challenging to keep track of the individual tokens that a user may own. To do this, the contract holds a record of the AVEC tokens balance totals of each property that each user owns. Because of this, each property owner AVEC balance owned by a user can get retrieved by its index in the list (array) of properties owned by the user. Token Of Owner By Index lets us return the AVEC balance for a specific property and user pair in this method.
This function returns the address of the owner of a property. Because each ERC721 property is non-fungible and unique, referenced on the blockchain via a unique ID. We can determine the owner of a property using its ID.
This function lets us discover AVEC properties metadata.