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.
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 include. The other settings take their defaults, and you set them in the template's feature settings or through the Platform API.
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).
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.