pool-vault
Last updated
Last updated
List of Core Functions:
transfer
: Transfers a specified amount of tokens to a recipient.
get-contract-owner
: Retrieves the current contract owner.
set-contract-owner
: Sets a new contract owner.
is-contract-owner
: Checks if a given principal is the contract owner.
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.
Parameter | Type | Description |
---|---|---|
get-contract-owner
Retrieves the current contract owner.
No parameters.
set-contract-owner
Sets a new contract owner.
is-contract-owner
Checks if a given principal is the contract owner.
is-approved-contract
Checks if a contract is approved to interact with this contract.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
amount
uint
The amount of tokens to be transferred.
recipient
principal
The principal to receive the tokens.
f-t
<ft>
The fungible token to transfer.
owner
principal
The new owner of the contract.
caller
principal
The principal to check for ownership.
contract
principal
The contract to check for approval.