Struct cw_controllers::Claims [−][src]
pub struct Claims<'a>(_);
Implementations
pub fn create_claim(
&self,
storage: &mut dyn Storage,
addr: &Addr,
amount: Uint128,
release_at: Expiration
) -> StdResult<()>
pub fn create_claim(
&self,
storage: &mut dyn Storage,
addr: &Addr,
amount: Uint128,
release_at: Expiration
) -> StdResult<()>
This creates a claim, such that the given address can claim an amount of tokens after the release date.
This iterates over all mature claims for the address, and removes them, up to an optional cap. it removes the finished claims and returns the total amount of tokens to be released.