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

Add ekubo pools #8

Merged
merged 8 commits into from
Oct 25, 2024
Merged

Add ekubo pools #8

merged 8 commits into from
Oct 25, 2024

Conversation

Chepelau
Copy link
Contributor

No description provided.

@Chepelau
Copy link
Contributor Author

Chepelau commented Oct 21, 2024

This PR adds Arbitrary Proposal for adding ekubo pools (not options too!!). Please check it, as well as the fork test.

In constants.cairo, there is an updated amm class hash. Please check that the hash is the same as when building branch add-ekubo-options in our amm repo.

@tensojka @DaveVodrazka

@Chepelau
Copy link
Contributor Author

Also commented out test_add_custom_proposal fork test because it's outdated and failing on already voted.

Copy link
Contributor

@DaveVodrazka DaveVodrazka left a comment

Choose a reason for hiding this comment

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

Got the same class-hash for the AMM 👍

Copy link
Contributor

@tensojka tensojka left a comment

Choose a reason for hiding this comment

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

I would adjust the voladjspd, but otherwise lgtm!

Comment on lines +76 to +85
loop {
match voter_addresses.pop_front() {
Option::Some(address) => {
let current_voter: ContractAddress = (*address).try_into().unwrap();
prank(CheatTarget::One(gov_addr), current_voter, CheatSpan::TargetCalls(1));
props.vote(prop_id, 1);
},
Option::None(()) => { break (); }
}
};
Copy link
Contributor

Choose a reason for hiding this comment

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

did you know the famed for loop has come to our land?

https://community.starknet.io/t/cairo-v2-7-0-is-coming/114362

(not worth changing, just wanted to mention)


// Add the lptokens to the AMM
let call_voladjspd = FixedTrait::new_unscaled(10_000, false);
let put_voladjspd = FixedTrait::new_unscaled(50_000, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is too high, DMd

@tensojka tensojka merged commit 65858fc into master Oct 25, 2024
1 check passed
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