Skip to content

Conversation

@lastperson
Copy link
Collaborator

Add rebalancer contract and tests.
Closes: #11

@lastperson lastperson added this to the Liquidity MVP milestone Feb 6, 2025
@lastperson lastperson self-assigned this Feb 6, 2025
@lastperson lastperson linked an issue Feb 6, 2025 that may be closed by this pull request
4 tasks
import {IRebalancer} from './interfaces/IRebalancer.sol';
import {ICCTPTokenMessenger, ICCTPMessageTransmitter} from './interfaces/ICCTP.sol';

contract Rebalancer is IRebalancer, AccessControlUpgradeable {
Copy link
Member

Choose a reason for hiding this comment

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

what would be the process of adding another provider like across? Like should we move provider specific logic outside of rebalancer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is either an upgrade, or connecting another contract. Both actions require the same privileges, but upgrading keeps the logic more gas efficient.

@mpetrunic mpetrunic merged commit a7b0c26 into main Feb 10, 2025
3 checks 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.

Rebalancer with CCTP integration.

4 participants