Skip to Content
Stacks Market V1

pool-vault

List of Core Functions:

  1. transfer: Transfers a specified amount of tokens to a recipient.
  2. get-contract-owner: Retrieves the current contract owner.
  3. set-contract-owner: Sets a new contract owner.
  4. is-contract-owner: Checks if a given principal is the contract owner.
  5. is-approved-contract: Checks if a contract is approved to interact with this contract.

Detailed Tables:

transfer

Transfers a specified amount of tokens to a recipient.

ParameterTypeDescription
amountuintThe amount of tokens to be transferred.
recipientprincipalThe principal to receive the tokens.
f-t<ft>The fungible token to transfer.

get-contract-owner

Retrieves the current contract owner.

No parameters.

set-contract-owner

Sets a new contract owner.

ParameterTypeDescription
ownerprincipalThe new owner of the contract.

is-contract-owner

Checks if a given principal is the contract owner.

ParameterTypeDescription
callerprincipalThe principal to check for ownership.

is-approved-contract

Checks if a contract is approved to interact with this contract.

ParameterTypeDescription
contractprincipalThe contract to check for approval.
Last updated on