Alluvial Finance Inc.
Shares Manager Interface (v1)
This interface exposes methods to handle the shares of the depositor and the ERC20 interface
Retrieve the allowance value for a spender
_owner
address
Address that issued the allowance
_spender
address
Address that received the allowance
_0
uint256
The allowance in shares for a given spender
Approves an account for future spendings
An approved account can use transferFrom to transfer funds on behalf of the token owner
_spender
address
Address that is allowed to spend the tokens
_value
uint256
The allowed amount in shares, will override previous value
_0
bool
True if success
Retrieve the balance of an account
_owner
address
Address to be checked
_0
uint256
The balance of the account in shares
Retrieve the underlying asset balance of an account
_owner
address
Address to be checked
_0
uint256
The underlying balance of the account
Retrieve the decimal count
_0
uint8
The decimal count
Decrease allowance to another account
_spender
address
Spender that receives the allowance
_subtractableValue
uint256
Amount of shares to subtract
_0
bool
True if success
Increase allowance to another account
_spender
address
Spender that receives the allowance
_additionalValue
uint256
Amount of shares to add
_0
bool
True if success
Retrieve the token name
_0
string
The token name
Retrieve the shares count from an underlying asset amount
_underlyingAssetAmount
uint256
Amount of underlying asset to convert
_0
uint256
The amount of shares worth the underlying asset amopunt
Retrieve the token symbol
_0
string
The token symbol
Retrieve the total token supply
_0
uint256
The total supply in shares
Retrieve the total underlying asset supply
_0
uint256
The total underlying asset supply
Performs a transfer from the message sender to the provided account
_to
address
Address receiving the tokens
_value
uint256
Amount of shares to be sent
_0
bool
True if success
Performs a transfer between two recipients
_from
address
Address sending the tokens
_to
address
Address receiving the tokens
_value
uint256
Amount of shares to be sent
_0
bool
True if success
Retrieve the underlying asset balance from an amount of shares
_shares
uint256
Amount of shares to convert
_0
uint256
The underlying asset balance represented by the shares
Emitted when the allowance of a spender
for an owner
is set by a call to {approve}. value
is the new allowance.
owner indexed
address
undefined
spender indexed
address
undefined
value
uint256
undefined
Emitted when the total supply is changed
totalSupply
uint256
undefined
Emitted when value
tokens are moved from one account (from
) to another (to
). Note that value
may be zero.
from indexed
address
undefined
to indexed
address
undefined
value
uint256
undefined
Allowance too low to perform operation
_from
address
Account where funds are sent from
_operator
address
Account attempting the transfer
_allowance
uint256
Current allowance
_value
uint256
Requested transfer value in shares
Balance too low to perform operation
Invalid empty transfer
Invalid transfer recipients
_from
address
Account sending the funds in the invalid transfer
_to
address
Account receiving the funds in the invalid transfer