default fn release(&mut self) -> Result<(), PSP22TokenTimelockError> {
        if Self::env().block_timestamp() < self.get_mut().release_time {
            return Err(PSP22TokenTimelockError::CurrentTimeIsBeforeReleaseTime)
        }
        let amount = self._contract_balance();
        if amount == 0 {
            return Err(PSP22TokenTimelockError::NoTokensToRelease)
        }
        self._withdraw(amount)
    }
/// Transfers the tokens held by timelock to the beneficairy
Transfers the tokens held by timelock to the beneficairy
Transfers the tokens held by timelock to the beneficairy
default fn release(&mut self) -> Result<(), PSP22TokenTimelockError> {
        if Self::env().block_timestamp() < self.get_mut().release_time {
            return Err(PSP22TokenTimelockError::CurrentTimeIsBeforeReleaseTime)
        }
        let amount = self._contract_balance();
        if amount == 0 {
            return Err(PSP22TokenTimelockError::NoTokensToRelease)
        }
        self._withdraw(amount)
    }
default fn release ( & mut self ) -> Result < ( ) , PSP22TokenTimelockError > { if Self :: env ( ) . block_timestamp ( ) < self . get_mut ( ) . release_time { return Err ( PSP22TokenTimelockError :: CurrentTimeIsBeforeReleaseTime ) } let amount = self . _contract_balance ( ) ; if amount == 0 { return Err ( PSP22TokenTimelockError :: NoTokensToRelease ) } self . _withdraw ( amount ) }
Transfers the tokens held by timelock to the beneficairy
Transfers the tokens held by timelock to the beneficairy
&mut self
&mut self