refactor coin selection for staking