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

aux contract amm in constructor #8

Open
wants to merge 1 commit into
base: aux_contract
Choose a base branch
from

Conversation

DaveVodrazka
Copy link
Contributor

We will need to deploy to Testnet as well as Mainnet, this enables us to deploy to different networks with different AMM addresses

@MarekHauzr
Copy link
Member

can we either in here

fn get_user_pool_infos(user: ContractAddress) -> Array<UserPoolInfo> {
or in here calculate the pool value on if the user has non zero balance of lptoken_balance?

@MarekHauzr
Copy link
Member

please do

how about I create another aux contract that would look like this:
fn get_user_pool_infos(user: ContractAddress, lp: ContractAddress) -> UserPoolInfo

that should cut down on number of steps and the logic on FE would still be pretty much the same (just 4 requests instead of 1)

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