MarginPoolContract class for managing MarginPool operations.
Configuration for MarginPoolContract
The key to identify the pool
A function that takes a Transaction object
Get the total borrow shares
The key to identify the margin pool
The ID of the deepbook pool
Check if a deepbook pool is allowed for borrowing
Get the margin pool ID
Get the current interest rate
Get the last update timestamp
Get the max utilization rate
Get the minimum borrow amount
Mint a supplier cap for margin pool
Mint a referral for a margin pool
Get the protocol spread
Get the supply cap
Get the total supply shares
The supplier cap object
The amount to deposit
Optional
The ID of the referral
Supply to a margin pool
Get the total borrow amount
Get the total supply amount
The ID of the supplier cap
Get user supply amount for a supplier cap
Get user supply shares for a supplier cap
The amount to withdraw
Withdraw from a margin pool
Withdraw referral fees from a margin pool
MarginPoolContract class for managing MarginPool operations.