splitSponsorshipAmount
@raizfc/contracts / splitSponsorshipAmount
Function: splitSponsorshipAmount()
splitSponsorshipAmount(
amountInCents):Readonly<{ownerCents:number;platformCents:number; }>
Defined in: sponsor/sponsor.dto.ts:149
SPEC-DOMAIN-SPONSOR-001 "Split 80/20" — reuses constants.ts#SPONSOR_ENTITY_CREDIT_PERCENT
instead of a hardcoded literal; mirrors splitSupportAmount's "no rounding leftover" guarantee
(the platform share absorbs the remainder so ownerCents + platformCents always equals the
original amount exactly). Shared by the backend and mocks so both apply the identical rule.
Parameters
amountInCents
number
Returns
Readonly<{ ownerCents: number; platformCents: number; }>