-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F/denom fix injective testing #242
Conversation
WalkthroughThe changes include updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Exchange
participant Mocks
User->>Exchange: Launch Market
Exchange->>Mocks: Use MOCK_BASE_DENOM
Mocks-->>Exchange: Return "inj"
Exchange->>User: Market Launched
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
Cargo.lock
is excluded by!**/*.lock
Files selected for processing (4)
- packages/injective-testing/CHANGELOG.md (1 hunks)
- packages/injective-testing/Cargo.toml (1 hunks)
- packages/injective-testing/src/mocks.rs (1 hunks)
- packages/injective-testing/src/test_tube/exchange.rs (8 hunks)
Files skipped from review due to trivial changes (1)
- packages/injective-testing/Cargo.toml
Additional comments not posted (8)
packages/injective-testing/CHANGELOG.md (2)
8-12
: LGTM!The changelog entry for version 1.1.2 is clear and concise. It documents a specific fix related to decimals used as denoms in spot markets, which likely improves the accuracy of calculations or representations in that functionality.
14-18
: LGTM!The changelog entry for version 1.1.1 is clear and concise. It documents a general fix for incorrect denoms, which likely addresses a prior issue affecting calculations or representations in the system. This change enhances the accuracy and reliability of the system's handling of financial data related to denoms.
packages/injective-testing/src/mocks.rs (1)
16-16
: Verify the impact of changing the base denomination.The base denomination used in the mock setup is changed from
"ubase"
to"inj"
. This is a semantically significant change.Please verify that this change does not break any functionality relying on this constant. Run the following script to search for the usage of
MOCK_BASE_DENOM
in the codebase and review the results:packages/injective-testing/src/test_tube/exchange.rs (5)
2-2
: LGTM!The changes to the
mocks
import statement are approved.
438-439
: LGTM!The changes to replace the hardcoded string literals with constants in the
launch_spot_market
function are approved.
457-458
: LGTM!The changes to replace the hardcoded string literals with constants in the
launch_spot_market_atom
function are approved.
503-505
: LGTM!The changes to replace the hardcoded string literals with constants in the
launch_perp_market
function are approved.
529-531
: LGTM!The changes to replace the hardcoded string literals with constants in the
launch_perp_market_atom
function are approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
See changelog
Summary by CodeRabbit
New Features
Bug Fixes
Chores
injective-testing
package to reflect new releases.