Closed gsk967 closed 1 month ago
The changes in this pull request focus on the TokenPrice
method within the Keeper
struct in the oracle.go
file. The modification involves the removal of the check for blacklisted tokens, allowing the method to continue processing even if a token is blacklisted. This change alters the control flow, impacting how errors are handled in relation to token pricing without modifying any exported or public entity signatures.
File Path | Change Summary |
---|---|
x/leverage/keeper/oracle.go | Removed check for blacklisted tokens in TokenPrice method, altering control flow and error handling. |
sequenceDiagram
participant Client
participant Keeper
participant TokenService
Client->>Keeper: Request Token Price
Keeper->>TokenService: Fetch Token Price
TokenService-->>Keeper: Return Token Price
Keeper-->>Client: Return Token Price
In the garden where tokens play,
A blacklisted friend can join the fray.
No more checks to hold them back,
Prices flow on a smoother track.
Hops of joy in the code we see,
A brighter path for you and me! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 62.01%. Comparing base (
7f05ad4
) to head (2e29fb9
). Report is 542 commits behind head on main.
We are getting error when fetching the token price of blacklisted token , this pr will fix that , We only removing the asset from leverage token registry if supply is zero
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit
Bug Fixes
Refactor
TokenPrice
method for better handling of token validation scenarios.