For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

source

Last updated