We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create in the Mayachain AMM a method to make the approves to the Mayachain router. Take the Thorchain AMM as reference
async approveTCRouterToSpend( asset: Asset, amount = MAX_APPROVAL, walletIndex = 0, ): Promise<ethers.providers.TransactionResponse> { const contractAddress = getContractAddressFromAsset(asset) const router = await this.thorchainCache.getRouterAddressForChain(asset.chain) const approveParams: ApproveParams = { contractAddress, spenderAddress: router, amount: baseAmount(amount.toString(), this.evmClient.config.gasAssetDecimals), walletIndex, } return await this.evmClient.approve(approveParams) }
The text was updated successfully, but these errors were encountered:
0xp3gasus
Successfully merging a pull request may close this issue.
Create in the Mayachain AMM a method to make the approves to the Mayachain router. Take the Thorchain AMM as reference
The text was updated successfully, but these errors were encountered: