Skip to content

Alm plugin#143

Open
fourlen wants to merge 44 commits intointegral-v1.2.1from
alm-plugin
Open

Alm plugin#143
fourlen wants to merge 44 commits intointegral-v1.2.1from
alm-plugin

Conversation

@fourlen
Copy link
Copy Markdown
Contributor

@fourlen fourlen commented Mar 25, 2025

No description provided.

Comment thread src/plugin/contracts/AlgebraBasePluginALM.sol Outdated
Comment thread src/plugin/contracts/AlgebraBasePluginALMFactory.sol
Comment thread src/plugin/contracts/RebalanceManager.sol Outdated
Comment thread src/plugin/contracts/RebalanceManager.sol Outdated
Comment thread src/plugin/contracts/RebalanceManager.sol Outdated
debych
debych previously requested changes Mar 26, 2025
Comment thread src/plugin/contracts/plugins/AlmPlugin.sol Outdated
@debych debych changed the base branch from integral-v1.2.1-develop to integral-v1.2 March 27, 2025 13:52
@debych debych changed the base branch from integral-v1.2 to integral-v1.2.1 March 27, 2025 13:52
@debych debych dismissed their stale review March 27, 2025 13:53

Going to renew the review

Comment thread src/plugin/contracts/AlgebraBasePluginALM.sol Outdated
slowTwapTick = _getTwapTick(slowTwapPeriod);
fastTwapTick = _getTwapTick(fastTwapPeriod);
} else {
failedToObtainTWAP = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO filedToObtainTWAP handling should be completely removed then. If the only case when it is true is before slowTwapPeriod then we perhaps should just skip rebalance and not set pause and Special state

Comment thread src/plugin/contracts/RebalanceManager.sol Outdated
require(!isAlmInitialized, 'Already initialized');
isAlmInitialized = true;
paused = false;
// TODO: добавить require'ов
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add require statements:

  • vault is not zero
  • thresholds validation

Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol
Comment thread src/plugin/contracts/base/BaseRebalanceManager.sol Outdated
Comment thread src/plugin/contracts/AlgebraBasePluginALM.sol Outdated
@debych debych self-requested a review April 1, 2025 10:48
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.

3 participants