Zest Protocol Docs
  • What is Zest Protocol? 🍊
  • Unlocking Bitcoin Lending
  • Points
  • Zest Protocol Borrow
    • Zest Protocol Borrow Overview
      • How to use Stacks Market to Earn Yield
      • How to use Stacks Market to Borrow Assets
        • Traditional Borrowing
        • E-Mode Borrowing
      • How to use Stacks Market as a Liquidator
      • Protocol Design
        • Oracles
        • Interest Rates Mechanism and Risk Management
  • Zest Protocol BTCz
    • Zest Protocol BTCz Overview
      • BTCz
      • BTCz User Guide
      • BTCz FAQ
    • Audits
  • Zest Protocol BORROW - CONTRACTS
    • Zest Borrow Contracts Overview
    • Reserve and Configuration
      • pool-0-reserve
      • pool-reserve-data
        • Isolation Mode
      • pool-vault
    • Pool Logic
      • pool-borrow
      • liquidation-manager
    • Audits
  • ZEST PROTOCOL BTCz - CONTRACTS
    • BTCz Contracts Overview
  • Other
    • Disclaimer
Powered by GitBook
On this page
  1. Zest Protocol BORROW - CONTRACTS
  2. Reserve and Configuration

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.

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.

get-contract-owner

Retrieves the current contract owner.

No parameters.

set-contract-owner

Sets a new contract owner.

Parameter
Type
Description

owner

principal

The new owner of the contract.

is-contract-owner

Checks if a given principal is the contract owner.

Parameter
Type
Description

caller

principal

The principal to check for ownership.

is-approved-contract

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

Parameter
Type
Description

contract

principal

The contract to check for approval.

PreviousIsolation ModeNextPool Logic

Last updated 11 months ago

Page cover image