• Computes the expected tokens which are withdrawn given a number of vault tokens and in which ratios.

    Parameters

    • vault: VaultInformation

      The vault.

    • vaultTokens: bigint
    • withdrawRatio: bigint[]

      The ratios between the tokens. Is a weighted ratio, so [100, 50, 250] = [100/400 = 25%, 50/400 = 12.5%, 250/400 = 62.5%] Please ensure that there is at least 1 non-zero element.

    Returns bigint[]