Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Bug: Strat solidexJoint not matching in group #254

Open
storming0x opened this issue Mar 11, 2022 · 7 comments
Open

Bug: Strat solidexJoint not matching in group #254

storming0x opened this issue Mar 11, 2022 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers p2 Not Urgent/Important

Comments

@storming0x
Copy link
Contributor

This strat has the name Strategy_ProviderOfUSDCToNoHedgeSolidexJoint,

https://yearn.watch/network/fantom/vault/0xEF0210eB96c7EB36AF8ed1c20306462764935607/strategy/0x80332ecdc7ccdb187b95c97d4b33a8e918f8dd70

the group created here is not matching it https://github.com/yearn/yearn-watch/pull/246/files

@storming0x storming0x added bug Something isn't working p0 Critical/Needed good first issue Good for newcomers p2 Not Urgent/Important and removed p0 Critical/Needed labels Mar 11, 2022
@0xYao
Copy link

0xYao commented Mar 22, 2022

If I understand correctly, we simply need to change Solidex Joint in line 742 of risk-framework.json to Strategy_ProviderOfUSDCToNoHedgeSolidexJoint? And I don't think this strategy is active for the Ethereum network so I don't need to change the label in line 550 for now?

p.s. I am not sure how to derive the nameLike value.

@kyhoon
Copy link
Contributor

kyhoon commented Mar 22, 2022

If I understand correctly, we simply need to change Solidex Joint in line 742 of risk-framework.json to Strategy_ProviderOfUSDCToNoHedgeSolidexJoint? And I don't think this strategy is active for the Ethereum network so I don't need to change the label in line 550 for now?

For me, it seems like the issue was mainly concerning the one on Fantom, and it should be handled by now (after the merge in f899952)
I think the implementation in risk-framework.json file was fine, the mismatch of data in SDK and the helper contract seemed to be the problem atm

@0xYao
Copy link

0xYao commented Mar 22, 2022

If I understand correctly, we simply need to change Solidex Joint in line 742 of risk-framework.json to Strategy_ProviderOfUSDCToNoHedgeSolidexJoint? And I don't think this strategy is active for the Ethereum network so I don't need to change the label in line 550 for now?

For me, it seems like the issue was mainly concerning the one on Fantom, and it should be handled by now (after the merge in f899952) I think the implementation in risk-framework.json file was fine, the mismatch of data in SDK and the helper contract seemed to be the problem atm

Can you elaborate on what and where the SDK and the helper contract are? I am new to Yearn, sorry if the questions are silly :p

@kyhoon
Copy link
Contributor

kyhoon commented Mar 22, 2022

Can you elaborate on what and where the SDK and the helper contract are? I am new to Yearn, sorry if the questions are silly :p

hehe no worries, I am also trying to figure out how things work
so by the SDK I mean the yearn-sdk called from the VaultService instance
and by the helper contract I mean the strategiesHelper instance, which is a smart contract

@0xYao
Copy link

0xYao commented Mar 23, 2022

what is the data mismatch that you have found? e.g. for solidexJoint, what are the expected results from the sdk and helper contract, and what are the actual output?

@kyhoon
Copy link
Contributor

kyhoon commented Mar 23, 2022

what is the data mismatch that you have found? e.g. for solidexJoint, what are the expected results from the sdk and helper contract, and what are the actual output?

tbh I am also new to the codebase, not sure what exactly the expected results should be 🤔
What I have noticed is just that there are more strategies registered in the SDK compared to the helper contract atm (in Fantom)
If you are interested you could call the ABI from the code yourself which is pretty cool hehe

@storming0x
Copy link
Contributor Author

storming0x commented Mar 23, 2022

https://github.com/yearn/yearn-watch/pull/246/files

we need to debug why the entry in fantom is not being picked up.

Strategy_ProviderOfUSDCToNoHedgeSolidexJoint string should match for search string solidexjoint, solidex is a strategy that only exists on fantom

My guess is that having an ethereum group with the fantom and same name gives a problem on matching, can we debug by removing the ethereum group to confirm this is the bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers p2 Not Urgent/Important
Projects
None yet
Development

No branches or pull requests

3 participants