Skip to content

liquidation script V1#37

Closed
BranfordSWBF wants to merge 2 commits intomasterfrom
liq_engine
Closed

liquidation script V1#37
BranfordSWBF wants to merge 2 commits intomasterfrom
liq_engine

Conversation

@BranfordSWBF
Copy link

Naive method of performing liquidation --
iterates through all contracts, for each contract, issue liquidation requests for each account. Therefore, the check for whether to actually liquidate is only done at the contract level.

Moving forward, to reduce the compute needed on chain, we should only issue liquidation requests for accounts actually underwater (requires maintaining account state/positions off chain).

@BranfordSWBF BranfordSWBF requested review from LCyson and codchen June 8, 2022 00:36
seid query auth accounts | grep address | while read -r line ; do
account_address=$(echo "$line" | cut -d ":" -f 2 | tr -d ' ')
nonce=$RANDOM
seid tx dex liquidate $contract_address $nonce $account_address
Copy link
Collaborator

Choose a reason for hiding this comment

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

need some additional flags like --from and --chain-id here

@BrandonWeng
Copy link
Contributor

Closing this due to inactivity, feel free to re-open and ping me if it needs another review.

@BrandonWeng BrandonWeng closed this May 4, 2023
masih pushed a commit that referenced this pull request Sep 26, 2025
masih pushed a commit that referenced this pull request Sep 29, 2025
## Describe your changes and provide context
This adds in the helper functions for setting and getting wasm
dependencies from the ACL keeper. Still need to add additional handling
for initializing keeper in genesis and stuff, and will add in another
commit.

## Testing performed to validate your change
masih pushed a commit that referenced this pull request Sep 30, 2025
## Describe your changes and provide context
This adds in the helper functions for setting and getting wasm
dependencies from the ACL keeper. Still need to add additional handling
for initializing keeper in genesis and stuff, and will add in another
commit.

## Testing performed to validate your change
masih pushed a commit that referenced this pull request Oct 1, 2025
masih pushed a commit that referenced this pull request Oct 9, 2025
[SeiDB] PebbleDB Prune Clone Iterator value
masih pushed a commit that referenced this pull request Oct 23, 2025
@masih masih deleted the liq_engine branch October 31, 2025 15:50
masih pushed a commit that referenced this pull request Dec 17, 2025
[SeiDB] Add changeset proto generation and definition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants