Quipuswap
public struct Quipuswap
All functions related to Quipuswap
-
Constant pulled from: https://github.com/madfish-solutions/quipuswap-sdk/blob/4c38ce4a44d7c15da197ecb28e6521f3ac8ff527/src/defaults.ts
Declaration
Swift
public static let FEE_FACTOR: Int
-
Constant pulled from: https://github.com/madfish-solutions/quipuswap-sdk/blob/4c38ce4a44d7c15da197ecb28e6521f3ac8ff527/src/defaults.ts
Declaration
Swift
public static let VETO_PERIOD: Decimal
-
Constant pulled from:https://github.com/madfish-solutions/quipuswap-sdk/blob/4c38ce4a44d7c15da197ecb28e6521f3ac8ff527/src/defaults.ts
Declaration
Swift
public static let VOTING_PERIOD: Decimal
-
Constant pulled from: https://github.com/madfish-solutions/quipuswap-sdk/blob/4c38ce4a44d7c15da197ecb28e6521f3ac8ff527/src/defaults.ts
Declaration
Swift
public static let ACCURANCY_MULTIPLIER: Decimal
-
Use TzKTClient’s methods of storage and bigmap queries, to extract any recorded pending rewards the user might be due, for providing liquidity to a pool
Declaration
Swift
public static func getPendingRewards(fromExchange exchange: String, forAddress address: String, tzKTClient: TzKTClient, completion: @escaping ((Result<XTZAmount, KukaiError>) -> Void))
-
Wrapper around
getPendingRewards(..., completion: )
to make it easier to create bulk queries, through combineDeclaration
Swift
public static func getPendingRewards(fromExchange exchange: String, forAddress address: String, tzKTClient: TzKTClient) -> Future<(exchange: String, rewards: XTZAmount), KukaiError>
-
Use TzKTClient’s methods of storage and bigmap queries, to extract any recorded pending rewards the user might be due, for providing liquidity to a pool
Declaration
Swift
public static func getBulkPendingRewards(fromExchanges exchanges: [String], forAddress address: String, tzKTClient: TzKTClient, completion: @escaping ((Result<[(exchange: String, rewards: XTZAmount)], KukaiError>) -> Void))