launchpad_withdraw.gno
CollectDepositGns
func CollectDepositGns(
cur realm,
depositID string
) (int64, error)CollectDepositGns withdraws the GNS amount recorded by a deposit.
Halt check: reverts while the Withdraw halt scope is active.
Parameters
Name
Type
Description
cur
realm
current realm context; callers use cross(cur) when crossing into this realm.
depositID
string
identifier of the deposit whose GNS is collected.
Return Values
Name
Type
Description
amount
int64
GNS amount withdrawn from the deposit.
err
error
non-nil when the deposit cannot be collected.
Last updated