convertToShares

Calls the "convertToShares" function on the contract.

Example

import { convertToShares } from "thirdweb/extensions/erc4626";
const result = await convertToShares({
contract,
assets: ...,
});

Parameters

Returns

The parsed result of the function call.