- Preparing search index...
- The search index is not available
handle-sdk
Constructors
constructor
- new FxTokensSDK(c?): FxTokensSDK
-
Parameters
-
Optional
c: FxTokensConfig
Optional
Properties
Private
config
config: FxTokensConfig
Methods
Private
getFxTokenContract
- getFxTokenContract(fxTokenSymbol, signer): ERC20
-
Parameters
-
fxTokenSymbol: string
-
signer: Signer
Returns ERC20
Private
getFxTokenMulticall
- getFxTokenMulticall(fxTokenSymbol, provider): Promisified<FxTokenMulticall>
-
Parameters
-
fxTokenSymbol: string
-
provider: Provider
Returns Promisified<FxTokenMulticall>
getRepayAllowance
- getRepayAllowance(fxToken, account, signer): Promise<BigNumber>
-
Parameters
-
fxToken: string
-
account: string
-
signer: Signer
Returns Promise<BigNumber>
getSingleCollateralRepayAllowance
- getSingleCollateralRepayAllowance(fxToken, account, network, signer): Promise<BigNumber>
-
Parameters
-
fxToken: string
-
account: string
-
network: "arbitrum" | "polygon"
-
signer: Signer
Returns Promise<BigNumber>
Private
includeTokenPrice
- includeTokenPrice(token, price): FxToken
-
Parameters
-
token: Omit<FxToken, "price">
-
price: BigNumber
setRepayAllowance
- setRepayAllowance(fxTokenSymbol, amount, signer, options?): Promise<ContractTransaction>
-
Parameters
-
fxTokenSymbol: string
-
amount: BigNumber
-
signer: Signer
-
options: Overrides = {}
Returns Promise<ContractTransaction>
setSingleCollateralRepayAllowance
- setSingleCollateralRepayAllowance(fxTokenSymbol, amount, network, signer, options?): Promise<ContractTransaction>
-
Parameters
-
fxTokenSymbol: string
-
amount: BigNumber
-
network: "arbitrum" | "polygon"
-
signer: Signer
-
options: Overrides = {}
Returns Promise<ContractTransaction>