convert_asseto_basis_points_to_percent

Documentation for eth_defi.tokenised_fund.asseto.vault.convert_asseto_basis_points_to_percent function.

convert_asseto_basis_points_to_percent(raw_fee, basis_point_denominator)

Convert Asseto manager fee units to a fractional percent.

AoABTManager specifies mintFee and redemptionFee in basis points and defines BPS_DENOMINATOR as 10,000. The same source applies amount * fee / BPS_DENOMINATOR when processing subscriptions and redemption claims.

Parameters
  • raw_fee (int) – Fee value returned by the Asseto manager contract.

  • basis_point_denominator (int) – BPS_DENOMINATOR returned by the same contract.

Returns

Fee as a fractional Percent.

Raises

ValueError – If the manager reports an invalid denominator.

Return type

float