Skip to content
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

Merged
merged 8 commits into from
Dec 13, 2024

Conversation

jpsains
Copy link
Collaborator

@jpsains jpsains commented Dec 9, 2024

No description provided.

@jpsains jpsains requested a review from bergarces as a code owner December 9, 2024 14:42
@jpsains jpsains force-pushed the MMI-5817-implement-support-for-beefy-on-linea branch from 60017e5 to c93b46a Compare December 9, 2024 14:46
const db = new Database(`./${ChainIdToChainNameMap[chainId]}.db`, {
verbose: console.log,
})

Copy link
Collaborator

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(
Copy link
Collaborator

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.

jpsains and others added 3 commits December 12, 2024 18:30
…n/beefyMooTokenAdapter.ts

Co-authored-by: Bernardo Garces Chapero <[email protected]>
…n/beefyMooTokenAdapter.ts

Co-authored-by: Bernardo Garces Chapero <[email protected]>
Copy link

sonarcloud bot commented Dec 12, 2024

Please retry analysis of this Pull-Request directly on SonarQube Cloud

Copy link

sonarcloud bot commented Dec 13, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 30%)

See analysis details on SonarQube Cloud

@jpsains jpsains merged commit 491f776 into main Dec 13, 2024
50 of 51 checks passed
@jpsains jpsains deleted the MMI-5817-implement-support-for-beefy-on-linea branch December 13, 2024 12:37
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