Skip to content

Autocrat Changes#69

Merged
Henry-E merged 22 commits intodevelopfrom
auto_checks
Mar 28, 2024
Merged

Autocrat Changes#69
Henry-E merged 22 commits intodevelopfrom
auto_checks

Conversation

@Henry-E
Copy link
Copy Markdown
Contributor

@Henry-E Henry-E commented Mar 17, 2024

Some minor changes to autocrat. Mostly config based.

@Henry-E
Copy link
Copy Markdown
Contributor Author

Henry-E commented Mar 18, 2024

Still TODO, getting the tests working again.

Comment thread programs/autocrat_v0/src/lib.rs
@Henry-E Henry-E requested a review from metaproph3t March 22, 2024 11:51
@Henry-E
Copy link
Copy Markdown
Contributor Author

Henry-E commented Mar 22, 2024

Thanks for the test fixes @Dodecahedr0x!

Comment thread programs/autocrat_v0/src/lib.rs Outdated
Comment thread programs/autocrat_v0/src/lib.rs Outdated
Comment thread programs/autocrat_v0/src/lib.rs Outdated
@Henry-E
Copy link
Copy Markdown
Contributor Author

Henry-E commented Mar 23, 2024

I'm still learning the tests. Is there a good way to check that the $5 increments is working as intended?

@Henry-E
Copy link
Copy Markdown
Contributor Author

Henry-E commented Mar 26, 2024

Anyone else forking this will have to decide on their own values for

  • MAX_OBSERVATION_CHANGE_PER_UPDATE_LOTS -> the $ value of the each twap move, in terms of price lots
  • expected value -> the starting $ value of the TWAP, in terms of price lots. Meta used to have EV = $1 but moved it up $100 in this change.

They will also need to decide whether the base and quote lot sizes are appropriate. E.g. minimum base lots size of 1 token when the token has 9 decimals, would mean base_lot_size = 1_000_000_000. And assuming the quote currency is USDC, which has 6 decimals, then a quote_lot_size = 100 allows price down to one hundredth of a cent or $0.0001. Meme coins sometimes have even lower prices, so quote lot size might need to be adjusted down further.

@Henry-E
Copy link
Copy Markdown
Contributor Author

Henry-E commented Mar 26, 2024

Brief summary of changes

  • Set default pass threshold to 3%
  • set max observation change per update lots to $5 and make it a configurable option
  • set default expected value to $100
  • Ensure that the open markets expire a minimum of 10 days from the creation of the proposal to allow for rent retrieval from openbook markets
  • Reduce the openbook base lot size so that people can trade in lots of 0.1 meta

@Henry-E Henry-E merged commit 8dfa34d into develop Mar 28, 2024
@Henry-E Henry-E deleted the auto_checks branch March 28, 2024 16:03
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