Skip to content

Commit

Permalink
Merge branch 'deploy' into serge/deploy24_to_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
farnyser committed Apr 22, 2024
2 parents b796955 + d08ef26 commit 88e4502
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions bin/liquidator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ async fn main() -> anyhow::Result<()> {
.await?;
let mango_group = mango_account.fixed.group;

let signer_is_owner = mango_account.fixed.owner == liqor_owner.pubkey();
if cli.rebalance == BoolArg::True && !signer_is_owner {
warn!("rebalancing on delegated accounts will be unable to free token positions reliably, withdraw dust manually");
}

let group_context = MangoGroupContext::new_from_rpc(client.rpc_async(), mango_group).await?;

let mango_oracles = group_context
Expand Down
2 changes: 1 addition & 1 deletion bin/liquidator/src/rebalance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ impl Rebalancer {
// Imagine SOL at 0.04 USDC-native per SOL-native: Any amounts below 25 SOL-native
// would not be worth a single USDC-native.
//
// To avoid errors, we consider all amounts below 2 * (1/oracle) dust and don't try
// To avoid errors, we consider all amounts below 1000 * (1/oracle) dust and don't try
// to sell them. Instead they will be withdrawn at the end.
// Purchases will aim to purchase slightly more than is needed, such that we can
// again withdraw the dust at the end.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockworks-foundation/mango-v4",
"version": "0.23.1",
"version": "0.24.0",
"description": "Typescript Client for mango-v4 program.",
"repository": "https://github.com/blockworks-foundation/mango-v4",
"author": {
Expand Down
1 change: 1 addition & 0 deletions ts/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5912,6 +5912,7 @@ export class MangoClient {
opts?: MangoClientOptions,
): MangoClient {
const idl = IDL;
console.log(opts);

return new MangoClient(
new Program<MangoV4>(idl as MangoV4, programId, provider),
Expand Down

0 comments on commit 88e4502

Please sign in to comment.