SafeCertificateConverter
Computes a plan for converting a SAFE Ledger Entry Token (LET) into equity, from a RoundManager's round data.
Implements:
ICertificateConverter
Stub. The body of
computeConversionis commented out, and the function returns an emptyConversionPlan. The intended algorithm is kept in the source as a comment. Do not use this contract for live conversions.
Interface
function computeConversion(
address roundManager,
bytes32 roundId,
address certPrinter,
uint256 tokenId
) external view returns (ConversionPlan memory plan);Intended algorithm (from the source comments)
Read the source SAFE LET's
investmentAmountUSDandissuerUSDValuationAtTimeOfInvestment.Read round data from the RoundManager: the cap table snapshot's
cCapUsed, the rounding policy, the round price, and the primary security class and series.Compute the SAFE price as
PMVC / CCap, and take the lower of the SAFE price and the round price as the price basis.Compute
shares = investmentAmount / priceBasis, applying the round's rounding policy (floor, ceil or round-half-up).Return a
ConversionPlanwith the share count, price basis, and target class and series.
Last updated
Was this helpful?
