-
Notifications
You must be signed in to change notification settings - Fork 48
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
Mmi 5817 implement support for beefy on linea #387
Conversation
60017e5
to
c93b46a
Compare
packages/adapters-library/src/adapters/beefy/products/moo-token/beefyMooTokenAdapter.ts
Outdated
Show resolved
Hide resolved
const db = new Database(`./${ChainIdToChainNameMap[chainId]}.db`, { | ||
verbose: console.log, | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could run the query to fetch the pools once and passed the value to every delete query, instead of calculating it every time.
SELECT p.pool_id
FROM adapters a
JOIN pools p ON p.adapter_id = a.adapter_id
WHERE a.protocol_id = ? AND a.product_id = ?
The way it's written was ok for a sql script, where you cannot (should not) use variables, but that restriction does not apply here.
} | ||
} | ||
|
||
protected async unwrapProtocolToken( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are not being inherited and used by a subclass, they should be private.
packages/adapters-library/src/adapters/beefy/products/moo-token/beefyMooTokenAdapter.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Bernardo Garces Chapero <[email protected]>
…n/beefyMooTokenAdapter.ts Co-authored-by: Bernardo Garces Chapero <[email protected]>
…n/beefyMooTokenAdapter.ts Co-authored-by: Bernardo Garces Chapero <[email protected]>
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
Quality Gate failedFailed conditions |
No description provided.