-
Notifications
You must be signed in to change notification settings - Fork 12
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 4belt Pool Strategy #36
base: master
Are you sure you want to change the base?
Conversation
test/belt/4belt.js
Outdated
await send.ether(etherGiver, governance, "100" + "000000000000000000") | ||
|
||
await setupExternalContracts(); | ||
[controller, vault, strategy,,feeForwarder] = await setupCoreProtocol({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need the feeForwarder here, added the logic to add a path in the hh-utils file. Add "liquidationPath": [belt, wbnb, eth]
to the inputs instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved it
test/belt/4belt.js
Outdated
}); | ||
|
||
await strategy.setSellFloor(0, {from:governance}); | ||
await feeForwarder.setConversionPath(belt, eth, [belt, wbnb, eth], {from:governance}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, see previous comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved it
test/utilities/hh-utils.js
Outdated
@@ -175,7 +175,7 @@ async function setupCoreProtocol(config) { | |||
console.log("Strategy and vault added to Controller."); | |||
} | |||
|
|||
return [controller, vault, strategy, rewardPool]; | |||
return [controller, vault, strategy, rewardPool, feeRewardForwarder]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, see other comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved it
Belt is a Curve clone. It deploys the deposited stables into 4Belt pool to make them appreciate over time. Their pool contains DAI, USDC, USDT and BUSD. It has about $770m liquidity.
Test result:
test/belt/4belt.js
: