For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rebalancing

Whitelisting

Before rebalancing, the chosen contract to interact with must be whitelisted.

Unexpected error with integration github-files: Bad Gateway

This of course can be reverted here:

Unexpected error with integration github-files: Bad Gateway

Rebalance

In order to rebalance, you should build the calldata in order to swap, and pass the target. Slippage protection can be enforced. To put trust towards user, a slippage protection relative to the current oracle price can be set.

Unexpected error with integration github-files: Bad Gateway

The rebalancing can then be done via this function:

Unexpected error with integration github-files: Bad Gateway

or be accompanied by a position change like this:

Unexpected error with integration github-files: Bad Gateway

Last updated