Skip to content

docs: update errors #262

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

Draft
wants to merge 1 commit into
base: v3-outline
Choose a base branch
from
Draft

docs: update errors #262

wants to merge 1 commit into from

Conversation

mkflow27
Copy link
Collaborator

@mkflow27 mkflow27 commented May 2, 2025

Working on automating the error code updates.

Copy link

vercel bot commented May 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 0:19am

| `MulOverflow()` | `0x0cde6c26` | | MockGyroECLPPool |
| `DivInterval()` | `0xe03f5d57` | | MockGyroECLPPool |
| `OwnableUnauthorizedAccount(address)` | `0x118cdaa7` | address account | MockLBPool |
| `OwnableInvalidOwner(address)` | `0x1e4fbdf7` | address owner | MockLBPool |
Copy link
Contributor

@EndymionJkb EndymionJkb May 2, 2025

Choose a reason for hiding this comment

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

InvalidOwner is in the LBPPoolFactory; not sure where it's getting the "Ownable" from. We don't use that OZ contract directly (with LBPs, anyway; some of the hooks do).

| `ContractNameAlreadyRegistered(ContractType,)` | `0xdecd1563` | ContractType contractType, string contractName | MevCaptureHook |
| `ContractNameInUseAsAlias(string,)` | `0xedcd5939` | string contractName, address contractAddress | MevCaptureHook |
| `ContractAliasInUseAsName(ContractType,)` | `0xc5949bff` | ContractType contractType, string contractName | MevCaptureHook |
| `ContractNameNotRegistered(string)` | `0xcd3599f9` | string contractName | MevCaptureHook |
Copy link
Contributor

@EndymionJkb EndymionJkb May 2, 2025

Choose a reason for hiding this comment

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

ContractNameNotRegistered is in the BalancerContractRegistry

| `AmplificationFactorTooLow()` | `0xab923323` | | MockStablePool |
| `AmplificationFactorTooHigh()` | `0x9b80d390` | | MockStablePool |
| `AmpUpdateDurationTooShort()` | `0xcd6b022a` | | MockStablePool |
| `AmpUpdateRateTooFast()` | `0x1c708b92` | | MockStablePool |
Copy link
Contributor

Choose a reason for hiding this comment

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

The AmpUpdate errors are in regular StablePool - are you doing this by reading the ABI, vs. reading the contracts? There really shouldn't be any "Mock" contracts. (They sometimes do declare their own errors, but just for tests, so I don't think they need to be documented.)

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.

2 participants