Skip to content
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

[CT-950] safety heap methods #1821

Merged
merged 9 commits into from
Jul 3, 2024
Merged

[CT-950] safety heap methods #1821

merged 9 commits into from
Jul 3, 2024

Conversation

jayy04
Copy link
Contributor

@jayy04 jayy04 commented Jun 28, 2024

Changelist

[Describe or list the changes made in this PR]

Test Plan

[Describe how this PR was tested (if applicable)]

Author/Reviewer Checklist

  • If this PR has changes that result in a different app state given the same prior state and transaction list, manually add the state-breaking label.
  • If the PR has breaking postgres changes to the indexer add the indexer-postgres-breaking label.
  • If this PR isn't state-breaking but has changes that modify behavior in PrepareProposal or ProcessProposal, manually add the label proposal-breaking.
  • If this PR is one of many that implement a specific feature, manually label them all feature:[feature-name].
  • If you wish to for mergify-bot to automatically create a PR to backport your change to a release branch, manually add the label backport/[branch-name].
  • Manually add any of the following labels: refactor, chore, bug.

Summary by CodeRabbit

  • New Features

    • Introduced functionality to manage a safety heap, allowing insertion, removal, and heap operations for subaccounts.
  • Tests

    • Added tests to ensure correct sorting and maintenance of heap properties during subaccount operations.

Copy link

linear bot commented Jun 28, 2024

Copy link
Contributor

coderabbitai bot commented Jun 28, 2024

Walkthrough

This update enhances the decentralized finance protocol by managing a safety heap for subaccounts. The changes introduce new methods for inserting, removing, and maintaining subaccounts within the heap, ensuring proper order and integrity. Additionally, tests have been added to verify the functionality of these heap operations.

Changes

File Change Summary
protocol/x/subaccounts/keeper/safety_heap.go Introduced methods for managing a safety heap, including insertion, removal, and heapification operations.
protocol/x/subaccounts/keeper/safety_heap_test.go Added tests for verifying insertion, removal, and heap property maintenance for subaccounts in the safety heap.

A bunny in the code, hops with glee,
Introducing heaps for subaccount safety.
It adds and removes, with balance précis,
And test it does, oh so thrivingly.
In decentralized finance, it makes its decree,
Order and integrity, forever to be. 🐇🛠️

Tip

AI model upgrade

gpt-4o model for reviews and chat is now live

OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our Discord Community to provide any feedback or to report any issues.


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 8e59037 and 1cd630c.

Files selected for processing (2)
  • protocol/x/subaccounts/keeper/safety_heap.go (1 hunks)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Additional comments not posted (8)
protocol/x/subaccounts/keeper/safety_heap_test.go (1)

17-68: Comprehensive Testing of Safety Heap Insertion and Removal

The test function TestSafetyHeapInsertRemoval is well-structured and tests the heap operations thoroughly by:

  1. Creating a large set of subaccounts with varying asset positions.
  2. Randomly shuffling these subaccounts to simulate different scenarios.
  3. Inserting them into the heap and verifying the order after each insertion.
  4. Removing them from the heap and verifying the heap's integrity at each step.

Suggestions:

  • Consider edge cases where subaccounts might have identical asset positions to ensure the heap handles ties correctly.
  • It might be beneficial to break down this test into smaller functions for better readability and maintainability.
protocol/x/subaccounts/keeper/safety_heap.go (7)

9-20: Review of RemoveSubaccountFromSafetyHeap Function

This function correctly identifies the subaccount's index in the heap and removes it using the MustRemoveElementAtIndex function. The separation of concerns is maintained, and the function is concise.

Suggestions:

  • Ensure that the function handles cases where the subaccount is not found in the heap, possibly by verifying if the index retrieval was successful before attempting removal.

22-32: Review of AddSubaccountToSafetyHeap Function

The function is straightforward and effectively adds a subaccount to the heap. It uses the Insert method, which encapsulates the logic for adjusting the heap after insertion.

Suggestions:

  • Consider adding logging or metrics collection to monitor the performance and usage of heap operations, which could be crucial for debugging and performance tuning in a production environment.

36-52: Optimization Suggestion for Insert Function

The function performs essential heap operations and maintains the heap property by calling HeapifyUp. The implementation is correct.

Suggestions:

  • To improve performance, consider optimizing the SetSubaccountAtIndex and SetSafetyHeapLength operations if they involve significant computation or IO.

78-94: Review of HeapifyUp Function

This function correctly restores the heap property by moving an element up the heap until it is in the correct position. The recursive approach is appropriate for this operation.

Suggestions:

  • Ensure that the recursive depth does not become a performance issue on very large heaps. Consider an iterative approach if needed.

96-121: Review of HeapifyDown Function

The function effectively handles both left and right children during the heapify down process, ensuring that the heap property is maintained.

Suggestions:

  • Add more detailed comments explaining the logic, especially how it decides between left and right children, to improve code readability and maintainability.

123-138: Review of Swap Function

The Swap function is implemented correctly, handling the no-op case and swapping elements efficiently.

Suggestions:

  • Ensure that all uses of this function check for the validity of the indices before calling, to prevent potential errors.

140-174: Complex Logic in Less Function

The Less function uses financial risk calculations to determine the order of elements in the heap. This is a critical part of maintaining the heap's integrity.

Suggestions:

  • Given the complexity and importance of this function, consider adding unit tests specifically targeting various scenarios and edge cases in the risk comparison logic.

Comment on lines 54 to 76
// MustRemoveElementAtIndex removes the element at the given index
// from the safety heap.
func (k Keeper) MustRemoveElementAtIndex(
ctx sdk.Context,
store prefix.Store,
index uint32,
) {
length := k.GetSafetyHeapLength(store)
if index >= length {
panic(types.ErrSafetyHeapSubaccountNotFoundAtIndex)
}

// Swap the element with the last element.
k.Swap(store, index, length-1)

// Remove the last element.
k.DeleteSubaccountAtIndex(store, length-1)
k.SetSafetyHeapLength(store, length-1)

// Heapify down the element at the given index
// to restore the heap property.
k.HeapifyDown(ctx, store, index)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error Handling in MustRemoveElementAtIndex

The function includes a panic for an out-of-bounds index, which is a harsh failure mode.

Suggestions:

  • Replace panic with a more graceful error handling mechanism, such as returning an error to the caller. This change would make the system more robust and maintainable, especially in production environments where a panic could lead to service disruption.
- panic(types.ErrSafetyHeapSubaccountNotFoundAtIndex)
+ return fmt.Errorf("subaccount not found at index: %d", index)

Committable suggestion was skipped due to low confidence.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 1cd630c and 44bc08e.

Files selected for processing (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 44bc08e and ee6b55e.

Files selected for processing (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between ee6b55e and 233316f.

Files selected for processing (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 233316f and 729d8bc.

Files selected for processing (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 729d8bc and be41604.

Files selected for processing (2)
  • protocol/x/subaccounts/keeper/safety_heap.go (1 hunks)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap.go
Additional comments not posted (1)
protocol/x/subaccounts/keeper/safety_heap_test.go (1)

186-199: LGTM!

The helper function correctly verifies the heap properties by recursively checking that each node is less than its children.

Comment on lines 21 to 105
func TestSafetyHeapInsertRemoveMin(t *testing.T) {
perpetualId := uint32(0)
side := satypes.Long
totalSubaccounts := 1000

// Create 1000 subaccounts with balances ranging from -500 to 500.
// The subaccounts should be sorted by balance.
allSubaccounts := make([]satypes.Subaccount, 0)
for i := 0; i < totalSubaccounts; i++ {
subaccount := satypes.Subaccount{
Id: &satypes.SubaccountId{
Owner: types.MustBech32ifyAddressBytes(
config.Bech32PrefixAccAddr,
constants.AliceAccAddress,
),
Number: uint32(i),
},
AssetPositions: testutil.CreateUsdcAssetPositions(
// Create asset positions with balances ranging from -500 to 500.
big.NewInt(int64(i - totalSubaccounts/2)),
),
}

// Handle special case.
if i-totalSubaccounts/2 == 0 {
subaccount.AssetPositions = nil
}

allSubaccounts = append(allSubaccounts, subaccount)
}

for iter := 0; iter < 100; iter++ {
// Setup keeper state and test parameters.
ctx, subaccountsKeeper, _, _, _, _, _, _, _, _ := keepertest.SubaccountsKeepers(t, false)

// Shuffle the subaccounts so that insertion order is random.
slices.Shuffle(allSubaccounts)

store := subaccountsKeeper.GetSafetyHeapStore(ctx, perpetualId, side)
for i, subaccount := range allSubaccounts {
subaccountsKeeper.SetSubaccount(ctx, subaccount)
subaccountsKeeper.AddSubaccountToSafetyHeap(
ctx,
*subaccount.Id,
perpetualId,
side,
)

require.Equal(
t,
uint32(i+1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
}

// Make sure subaccounts are sorted correctly.
for i := 0; i < totalSubaccounts; i++ {
// Get the subaccount with the lowest safety score.
// In this case, the subaccount with the lowest USDC balance.
subaccountId := subaccountsKeeper.MustGetSubaccountAtIndex(store, uint32(0))
subaccount := subaccountsKeeper.GetSubaccount(ctx, subaccountId)

// Subaccounts should be sorted by asset position balance.
require.Equal(t, uint32(i), subaccountId.Number)
require.Equal(
t,
big.NewInt(int64(i-totalSubaccounts/2)),
subaccount.GetUsdcPosition(),
)

// Remove the subaccount from the heap.
subaccountsKeeper.RemoveSubaccountFromSafetyHeap(
ctx,
subaccountId,
perpetualId,
side,
)
require.Equal(
t,
uint32(totalSubaccounts-i-1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Consider verifying heap properties after each removal.

The test logic is comprehensive and ensures that subaccounts are inserted and removed correctly. However, it would be beneficial to verify the heap properties after each removal to ensure the heap remains valid throughout the process.

+  // Verify that the heap property is maintained after each removal.
+  verifyHeapProperties(t, subaccountsKeeper, ctx, store, 0)

Committable suggestion was skipped due to low confidence.

Comment on lines 107 to 184
func TestSafetyHeapInsertRemoveIndex(t *testing.T) {
perpetualId := uint32(0)
side := satypes.Long
totalSubaccounts := 100

// Create 1000 subaccounts with balances ranging from -500 to 500.
// The subaccounts should be sorted by balance.
allSubaccounts := make([]satypes.Subaccount, 0)
for i := 0; i < totalSubaccounts; i++ {
subaccount := satypes.Subaccount{
Id: &satypes.SubaccountId{
Owner: types.MustBech32ifyAddressBytes(
config.Bech32PrefixAccAddr,
constants.AliceAccAddress,
),
Number: uint32(i),
},
AssetPositions: testutil.CreateUsdcAssetPositions(
// Create asset positions with balances ranging from -500 to 500.
big.NewInt(int64(i - totalSubaccounts/2)),
),
}

// Handle special case.
if i-totalSubaccounts/2 == 0 {
subaccount.AssetPositions = nil
}

allSubaccounts = append(allSubaccounts, subaccount)
}

for iter := 0; iter < 100; iter++ {
// Setup keeper state and test parameters.
ctx, subaccountsKeeper, _, _, _, _, _, _, _, _ := keepertest.SubaccountsKeepers(t, false)

// Shuffle the subaccounts so that insertion order is random.
slices.Shuffle(allSubaccounts)

store := subaccountsKeeper.GetSafetyHeapStore(ctx, perpetualId, side)
for i, subaccount := range allSubaccounts {
subaccountsKeeper.SetSubaccount(ctx, subaccount)
subaccountsKeeper.AddSubaccountToSafetyHeap(
ctx,
*subaccount.Id,
perpetualId,
side,
)

require.Equal(
t,
uint32(i+1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
}

for i := totalSubaccounts; i > 0; i-- {
// Remove a random subaccount from the heap.
index := rand.Intn(i)

subaccountId := subaccountsKeeper.MustGetSubaccountAtIndex(store, uint32(index))
subaccountsKeeper.RemoveSubaccountFromSafetyHeap(
ctx,
subaccountId,
perpetualId,
side,
)

require.Equal(
t,
uint32(i-1),
subaccountsKeeper.GetSafetyHeapLength(store),
)

// Verify that the heap property is restored.
verifyHeapProperties(t, subaccountsKeeper, ctx, store, 0)
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Consider verifying heap properties after each removal.

The test logic is comprehensive and ensures that subaccounts are inserted and removed correctly at random indices. However, it would be beneficial to verify the heap properties after each removal to ensure the heap remains valid throughout the process.

+  // Verify that the heap property is maintained after each removal.
+  verifyHeapProperties(t, subaccountsKeeper, ctx, store, 0)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
func TestSafetyHeapInsertRemoveIndex(t *testing.T) {
perpetualId := uint32(0)
side := satypes.Long
totalSubaccounts := 100
// Create 1000 subaccounts with balances ranging from -500 to 500.
// The subaccounts should be sorted by balance.
allSubaccounts := make([]satypes.Subaccount, 0)
for i := 0; i < totalSubaccounts; i++ {
subaccount := satypes.Subaccount{
Id: &satypes.SubaccountId{
Owner: types.MustBech32ifyAddressBytes(
config.Bech32PrefixAccAddr,
constants.AliceAccAddress,
),
Number: uint32(i),
},
AssetPositions: testutil.CreateUsdcAssetPositions(
// Create asset positions with balances ranging from -500 to 500.
big.NewInt(int64(i - totalSubaccounts/2)),
),
}
// Handle special case.
if i-totalSubaccounts/2 == 0 {
subaccount.AssetPositions = nil
}
allSubaccounts = append(allSubaccounts, subaccount)
}
for iter := 0; iter < 100; iter++ {
// Setup keeper state and test parameters.
ctx, subaccountsKeeper, _, _, _, _, _, _, _, _ := keepertest.SubaccountsKeepers(t, false)
// Shuffle the subaccounts so that insertion order is random.
slices.Shuffle(allSubaccounts)
store := subaccountsKeeper.GetSafetyHeapStore(ctx, perpetualId, side)
for i, subaccount := range allSubaccounts {
subaccountsKeeper.SetSubaccount(ctx, subaccount)
subaccountsKeeper.AddSubaccountToSafetyHeap(
ctx,
*subaccount.Id,
perpetualId,
side,
)
require.Equal(
t,
uint32(i+1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
}
for i := totalSubaccounts; i > 0; i-- {
// Remove a random subaccount from the heap.
index := rand.Intn(i)
subaccountId := subaccountsKeeper.MustGetSubaccountAtIndex(store, uint32(index))
subaccountsKeeper.RemoveSubaccountFromSafetyHeap(
ctx,
subaccountId,
perpetualId,
side,
)
require.Equal(
t,
uint32(i-1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
// Verify that the heap property is restored.
verifyHeapProperties(t, subaccountsKeeper, ctx, store, 0)
}
}
}
func TestSafetyHeapInsertRemoveIndex(t *testing.T) {
perpetualId := uint32(0)
side := satypes.Long
totalSubaccounts := 100
// Create 1000 subaccounts with balances ranging from -500 to 500.
// The subaccounts should be sorted by balance.
allSubaccounts := make([]satypes.Subaccount, 0)
for i := 0; i < totalSubaccounts; i++ {
subaccount := satypes.Subaccount{
Id: &satypes.SubaccountId{
Owner: types.MustBech32ifyAddressBytes(
config.Bech32PrefixAccAddr,
constants.AliceAccAddress,
),
Number: uint32(i),
},
AssetPositions: testutil.CreateUsdcAssetPositions(
// Create asset positions with balances ranging from -500 to 500.
big.NewInt(int64(i - totalSubaccounts/2)),
),
}
// Handle special case.
if i-totalSubaccounts/2 == 0 {
subaccount.AssetPositions = nil
}
allSubaccounts = append(allSubaccounts, subaccount)
}
for iter := 0; iter < 100; iter++ {
// Setup keeper state and test parameters.
ctx, subaccountsKeeper, _, _, _, _, _, _, _, _ := keepertest.SubaccountsKeepers(t, false)
// Shuffle the subaccounts so that insertion order is random.
slices.Shuffle(allSubaccounts)
store := subaccountsKeeper.GetSafetyHeapStore(ctx, perpetualId, side)
for i, subaccount := range allSubaccounts {
subaccountsKeeper.SetSubaccount(ctx, subaccount)
subaccountsKeeper.AddSubaccountToSafetyHeap(
ctx,
*subaccount.Id,
perpetualId,
side,
)
require.Equal(
t,
uint32(i+1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
}
for i := totalSubaccounts; i > 0; i-- {
// Remove a random subaccount from the heap.
index := rand.Intn(i)
subaccountId := subaccountsKeeper.MustGetSubaccountAtIndex(store, uint32(index))
subaccountsKeeper.RemoveSubaccountFromSafetyHeap(
ctx,
subaccountId,
perpetualId,
side,
)
require.Equal(
t,
uint32(i-1),
subaccountsKeeper.GetSafetyHeapLength(store),
)
// Verify that the heap property is restored.
verifyHeapProperties(t, subaccountsKeeper, ctx, store, 0)
// Verify that the heap property is maintained after each removal.
verifyHeapProperties(t, subaccountsKeeper, ctx, store, 0)
}
}
}

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between be41604 and fe2caef.

Files selected for processing (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between fe2caef and 706335a.

Files selected for processing (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • protocol/x/subaccounts/keeper/safety_heap_test.go

@jayy04 jayy04 merged commit cf745f4 into main Jul 3, 2024
18 checks passed
@jayy04 jayy04 deleted the jy/safety-heap-methods branch July 3, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants