pub fn withdraw<T: Config>(amount: BalanceOf<T>)
Expand description
The extrinsic from timegraph allows account to refund the token to the user
§Flow
- Ensure the origin is a signed account.
- Validate the amount is greater than zero.
- Ensure the sender and receiver are not the same.
- Validate the withdrawal sequence number.
- Transfer the funds.
- Increment the withdrawal sequence number.
- Emit a
Event::Withdrawal
event.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::withdraw
.