Skip to main content

Conversion features

Reference for the conversion and conversion minter token features that turn a loan or convertible token into newly minted target tokens.

Two token features pair together to convert one instrument into another: the conversion feature on the loan or convertible token prices each conversion, and the conversion minter on the target token mints the resulting units for authorised converters.

Set up the pair in order: issue the target token with the conversion minter, issue the loan token with the conversion feature pointing at that target, and add the conversion feature's address to the minter's converter list. Then, for each round the loan token publishes, the target token's Supply management role accepts its price. Conversions fail if the target lacks a minter, does not list the converter, or has not accepted the round.

Each is a token feature configured by the token's governance role. Each entry lists the DALP Library instrument templates that include it.

Conversion

Turns a holder's balance of a loan or convertible token into newly minted target tokens against a governance-published trigger holding a round price per target token, once the target token has accepted the price shares mint at. A custodian can also force a conversion without the holder's signature.

The effective price is the round price less any discount (rounded down), capped at the price cap when configured. Principal (valued one-for-one in the denomination asset) plus any convertible accrued interest divides by the effective price, rounded down to the target token's decimals. Only the principal those target tokens pay for is retired, rounded up to the loan token's decimals, and the rest stays with the holder. Retiring principal and minting target tokens happen atomically: a failed mint reverts the retirement. The DALP Library includes conversion on Carbon Credit, Convertible Note, SAFE and Warrant.

A conversion links a loan token to a target token.Governance publishes a trigger that holds a round price per target token. A holder converts loan tokens against that trigger. The conversion feature sits on the loan token. It prices the conversion, then retires the converted principal by the configured debt method: burn or lock in escrow. It then calls the conversion minter on the target token, which accepts calls only from converters on its allow list. The minter mints the target tokens to the holder, once for each conversion identifier.A conversion links a loan token to a target token.Governance publishes a trigger that holds a round price per target token. A holder converts loan tokens against that trigger. The conversion feature sits on the loan token. It prices the conversion, then retires the converted principal by the configured debt method: burn or lock in escrow. It then calls the conversion minter on the target token, which accepts calls only from converters on its allow list. The minter mints the target tokens to the holder, once for each conversion identifier.

The conversion feature on the loan token and the conversion minter on the target token point at each other, and the minter mints only for listed converters.

All fourteen settings are fixed at issuance, except the window, which governance can change later. The Issue asset form shows the first six rows of the table, with the target token first, and an “Include accrued interest” switch for includeInterestInConversion. The other settings take their defaults, and you set them in the template's feature settings or through the Platform API.

Parameter
Description
Target token address (targetToken)
The DALP asset that holders receive. It must have the conversion minter and cannot be the loan token. No asset class is required.
Conversion denomination asset (denominationAsset)
The denomination asset that prices the conversion. Every trigger and any interest provider must use the same asset.
Conversion discount (BPS) (discountBps)
Discount on the trigger's round price, 0 to 9,999 basis points. The default is 0. A value of 2000 means 20%.
Conversion price cap (per share) (capPricePerShareWad)
The highest effective price for one target token, in the denomination asset, which the API takes as an 18-decimal fixed-point value. Leave it blank for no cap. It cannot change after issuance. To use a valuation cap, divide it by the fully diluted share count.
Conversion window start (conversionWindowStart)
When conversions open, as a date. Blank means open from now.
Conversion window end (conversionWindowEnd)
When conversions close. Blank means no deadline. It cannot be before the start.
Minimum conversion amount (minConversionAmount)
The smallest conversion, in loan token base units. The default is 0, which means no minimum.
Partial conversion allowed (partialAllowed)
Whether a holder can convert part of a balance. The default is false: the holder converts the whole balance.
Include interest in conversion (includeInterestInConversion)
Whether accrued interest converts with the principal. The default is false. When true, token creation also binds the conversion feature as the only consumer of the interest provider. That bind cannot be undone.
Interest provider (interestProvider)
The interest yield or fixed treasury yield feature that supplies the interest. 0 finds it automatically when exactly one is attached.
Close interest on conversion (closeInterestOnConversion)
Whether a full conversion stops the holder's interest accrual. The default is true.
Debt method (debtMethod)
How the loan side retires the principal: 0 Burn (the default) or 1 Lock. The retired value 2, MarkConverted, is refused.
Escrow address (escrowAddress)
The account that receives locked principal. Required when debtMethod is 1, and 0 otherwise.
Conversion minter (conversionMinter)
The conversion minter on the target token. 0, the default, finds it automatically.

Debt methods

The debtMethod parameter controls how converted principal is retired:

  • Burn (0, default): Destroys the converted principal.
  • Lock (1): Transfers converted principal to the configured escrowAddress.

MarkConverted (2) is retired. It left converted tokens in the holder's wallet, marked non-transferable, so the balance differed from the real holding. Token creation and the conversion feature refuse it (MarkConvertedRetired, DALP-4552). A conversion feature created with it before converts nothing more, and the tokens it marked stay marked: they remain non-transferable and non-burnable, excluded from available, transferable and valued balances, and a transfer can spend only tokens that are neither marked nor frozen. Custodian forced transfers and burns still move the marking with the tokens. Such a feature still blocks attaching interest yield or fixed treasury yield, and the feature factory refuses to replace it.

Post-issuance operations and rounding

After issuance, governance publishes or disables triggers and updates the conversion window (addressed under conversion-minter in the Platform API). Neither the Console nor the Platform API rotates or detaches conversion, though an on-chain governance call can replace the feature list.

A holder converts their own balance, and a custodian can force conversion. When a conversion includes interest, a full conversion that closes interest accrual first drains the remaining convertible interest (in up to 10 rounds via the Platform API), while forced conversions skip that drain. A conversion that leaves interest out goes through with interest still unsettled, and that interest stays claimable as cash. Interest conversion is refused while the token is paused or the holder is frozen. Principal retirement runs as a booked movement outside fee features, so transfer or external fees on the loan token do not reduce converted principal. See Token conversion and Corporate actions.

Conversions that round down to zero target tokens revert (ZeroTargetAmount). When rounding drops a fraction of a target token, the holder keeps the principal it would have bought: 100 notes at 0.72 into a 0-decimal target yields 138 tokens, retires 99.36 notes and leaves 0.64 notes in the holding to convert later. Conversion history records any remaining fraction of a target token without paying it out. It is at most what rounding the retired principal up to the loan token's decimals adds. Totals for the feature, each trigger and each holder count each conversion identifier once.

Worked example: Converting 100,000 loan tokens plus 3,000 accrued interest (18 decimals) against a 2.50 round price with a 20% discount (2.00) and a 1.80 price cap uses 1.80, issuing 57,222.22 target tokens (vs 51,500 without the cap or 55,555.56 without interest).

Conversion minter

Sits on the target token and mints only for conversion features on its allow list, rejecting all other callers. It also mints only for a trigger that the target token's Supply management role accepted at its effective price (the round price after the loan token's discount and cap, which sets the shares minted), and only while the trigger keeps that effective price, so the share register, not the loan token, decides the price at which shares are created. Until the target token accepts a trigger, it shows as “Awaiting acceptance”, and holders cannot convert against it. Each conversion carries a unique identifier marked used before minting to prevent replays, recording recipient, amount, loan token, converter and trigger. The DALP Library includes it on Carbon Credit and Convertible Target Equity (starting with an empty list).

Parameter
Description
Convertible classes (authorizedConverters)
The conversion features that may mint here. Zero to 100 rows, each a distinct conversion feature address. The list starts empty.

After issuance, governance adds conversion features via Add converter (non-conversion contracts are rejected) and removes them. Supply management accepts each published trigger via Accept trigger in the converter's row menu. Minting runs as a booked movement so target-token fees take no cut. Detaching the minter while a conversion is live causes conversions on that pair to revert. See Corporate Action.

Was this page helpful?