It isn't immediately clear from context what this function does or how to use it, so I've made the function comment more verbose.
On a related note, the error messages for this function could use clarification as well - "Pair not found" isn't a particularly meaningful error without additional context.
It isn't immediately clear from context what this function does or how to use it, so I've made the function comment more verbose.
On a related note, the error messages for this function could use clarification as well - "Pair not found" isn't a particularly meaningful error without additional context.