Interpret relative weights in a Cardano delegation portfolio
A CIP-17 portfolio describes intended pool allocations in relative units. Weights need not add up to one hundred, and reading them as percentages can underallocate almost the entire balance.
Normalize by the sum of weights
The illustrative portfolio has total weight five. Multiply each weight by the amount allocated to this portfolio and divide by five. The target for A is 100 ADA and the target for B is 150 ADA.
pool A: weight 2
pool B: weight 3
allocatable stake: 250 ADA
For amounts that do not divide exactly in lovelace, use integer arithmetic and a documented remainder rule so the targets still sum to the allocatable stake. Compare pools by their IDs rather than displayed names.
Distinguish targets from actual delegation
The portfolio is an off-chain description. Implementing a split can require separate staking credentials and wallet support. Verify actual delegations and stake distribution on the target network before presenting an allocation as active. cips.cardano.org Cardano CIP-17