UNPKG

@molecularlabs/nucleus-frontend

Version:
21 lines 484 B
import { TellerAbi } from "../contracts/teller-abi"; import { getClient } from "../lib/client"; const getPreviewFee = async ({ shareAmount, bridgeData, contractAddress, chainId }) => { const client = await getClient(chainId); const rate = await client.readContract({ abi: TellerAbi, address: contractAddress, functionName: "previewFee", args: [shareAmount, bridgeData] }); return rate; }; export { getPreviewFee }; //# sourceMappingURL=teller.mjs.map