Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rfq: fix potential nil pointer panic
Because we don't return if the error returned from the price oracle is non-nil, the asset rate might be nil in case we couldn't talk to the oracle. So we need to use fn.MaybeSome() instead of fn.Some() with a dereference.
- Loading branch information