mirror of
https://github.com/luxfi/captable.git
synced 2026-10-30 17:01:02 +00:00
- pkg/waterfall: 4-tier liquidation preference engine Senior liq prefs → participating pro-rata → non-participating as-converted comparison → common remainder. Participation caps, multi-seniority tiers, insufficient proceeds handling (9 tests) - pkg/valuation: 409A FMV tracking Valuation history, safe harbor dates, expiration (12-month), method tracking (DCF, comparable, backsolve, OPM) (8 tests) - pkg/exercise: Stock option exercise workflows ISO/NSO tax calculation (AMT, ordinary income, withholding), 83(b) election deadline tracking, early exercise, cashless/net exercise, partial exercise (11 tests)
13 lines
454 B
Go
13 lines
454 B
Go
package valuation
|
|
|
|
import "context"
|
|
|
|
// Repository defines storage for 409A valuation operations.
|
|
type Repository interface {
|
|
Create(ctx context.Context, v *Valuation409A) error
|
|
Get(ctx context.Context, id string) (*Valuation409A, error)
|
|
GetLatest(ctx context.Context, companyID, shareClassID string) (*Valuation409A, error)
|
|
List(ctx context.Context, companyID string) ([]*Valuation409A, error)
|
|
Update(ctx context.Context, v *Valuation409A) error
|
|
}
|