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

QuantAMM v1 deployment #205

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

bulkcade
Copy link

@bulkcade bulkcade commented Mar 12, 2025

Deployment preparation: QuantAMMWeightedPool

commit TBD post merge

Deployment preparation tasks checklist:

  • Deployments README is updated with the new task name and link
  • Task README has a description and links to the artifacts
  • build-info is updated with artifacts compiled at the specified commit
  • Artifacts are generated from build-info
  • New task has a working fork test

Deprecating old tasks checklist:

  • Old task was moved to deprecated/ directory
  • Deployments README is updated: old task is moved to the 'deprecated' section, and links are updated with the deprecated/ prefix
  • Old task imports in index.ts, input.ts and fork tests are updated
  • Old task README is updated with a warning sign, a link to the replacement task and a short description

Code checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented in tests and scripts
  • Fork test block number and test cases are appropriate for this deployment
  • The base branch is either master, or there's a description of how to merge

Issue Resolution

@bulkcade bulkcade marked this pull request as draft March 12, 2025 23:59
EndymionJkb
EndymionJkb previously approved these changes Mar 13, 2025
Copy link
Collaborator

@EndymionJkb EndymionJkb left a comment

Choose a reason for hiding this comment

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

Looking great!

@@ -35,18 +37,19 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise
await task.save({ ChainlinkUsdcOracle: chainlinkUsdcOracleWrapper });

console.log('Deployed ChainlinkUsdcOracle');
const accounts = (await hre.ethers.getSigners()) as unknown as string[];
const accounts = await hre.ethers.getSigners();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider defining adminAddress = accounts[0].address for clarity and to future-proof against forgetting ".address"

Comment on lines +57 to +59
type PoolRoleAccounts = {
// Define the structure based on Solidity contract
};
Copy link
Collaborator

@EndymionJkb EndymionJkb Mar 14, 2025

Choose a reason for hiding this comment

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

Suggested change
type PoolRoleAccounts = {
// Define the structure based on Solidity contract
};
type PoolRoleAcounts = {
pauseManager: string,
swapFeeManager: string,
poolCreator: string,
}

Could define, or maybe don't need this? You're returning it correctly below:

roleAccounts: {
  pauseManager: ZERO_ADDRESS,
  swapFeeManager: ZERO_ADDRESS,
  poolCreator: ZERO_ADDRESS,
},

Copy link
Author

Choose a reason for hiding this comment

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

yea just thought it was clearer

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