-
Notifications
You must be signed in to change notification settings - Fork 3
Dev #162
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
Merged
Merged
Dev #162
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0358438
feat: enhance IOrionStrategist interface and implement vault linking …
ojasarora77 4ac69fe
test: update test as per params
ojasarora77 66743a5
feat: add mock contracts and tests for strategist linking
ojasarora77 96b352c
fix: remove unused signer
ojasarora77 aee6389
feat: Equal Weight Portfolio allocation
ojasarora77 65682c7
chore: docstring
ojasarora77 9325c0f
feat: implement ApyStrategistBase contract
ojasarora77 52307bb
feat: add KBestApyEqualWeighted strategy contract
ojasarora77 a1ec7e0
feat: add KBestApyWeightedAverage strategy contract
ojasarora77 6ee729c
test: add comprehensive tests for new strategies including EqualWeigh…
ojasarora77 a0b25b7
fix: remove dust from fulfillRedeem
matteoettam09 cefc6be
Merge pull request #161 from OrionFinanceAI/main
matteoettam09 13fb046
fix: eliminates the uninitialized local variable finding
ojasarora77 a68c389
chore: natspec
ojasarora77 70a6230
fix: int truncation
ojasarora77 aea6f72
chore: Added override to submitIntent()
ojasarora77 cb352d9
test: exercises the initialize() path directly — no updateStrategist(…
ojasarora77 1e55c44
fix: apy test strategy
ojasarora77 2b38ac6
test:_getSharePrice return on 0 decimal
ojasarora77 683b1c8
chore: ignore inequality
ojasarora77 3634db3
chore: bump version
ojasarora77 c01d0e6
feat: enable invariant monitoring for partially rebalanced portfolio
matteoettam09 c589f7d
feat: USDC-Normalised Pricing
ojasarora77 d8d7e5a
chor: mock feed for testing
ojasarora77 62fccc9
test: quoteFeed cross-rate normalisation path using MockChainlinkFeed
ojasarora77 29cf9ac
chore: add qoute feed params to existing tests
ojasarora77 6a5120b
chore: slither ignore unused return
ojasarora77 6da44d0
test: cross-rate: ETH/USDC via ETH/USD ÷ USDC/USD
ojasarora77 f3b8a5f
chore: refacto
matteoettam09 072ae01
fix: remove duplicate _epochBufferHistory push on first sellminibatch
matteoettam09 ecf8fd1
fix: _recordBufferCheckpoint, Commitment refresh can drift from real …
matteoettam09 e6033d2
chore: bump
matteoettam09 ee5f85e
chore: override
ojasarora77 61e2e81
Merge pull request #169 from OrionFinanceAI/invariant
matteoettam09 bc29bf6
fix: combine Apy strategies
matteoettam09 f2611e6
chore: PR review
matteoettam09 b7d07ed
fix: apy strategy, checkpoint at construction
matteoettam09 81f76c5
test: strategist contracts
matteoettam09 f856197
chore: deprecate tests now performed in zkVM and in integration testi…
matteoettam09 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ types | |
| .venv | ||
| protocol-costs | ||
| contracts/test | ||
| test/fixtures | ||
|
|
||
| # files | ||
| *.env | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,18 @@ | ||
| // SPDX-License-Identifier: BUSL-1.1 | ||
| pragma solidity ^0.8.28; | ||
|
|
||
| import "./IOrionTransparentVault.sol"; | ||
| import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; | ||
|
|
||
| /// @title IOrionStrategist | ||
| /// @notice Interface for strategies that compute portfolio intents on-demand | ||
| /// @notice Interface for smart contract strategists that compute portfolio intents on-demand. | ||
| /// @author Orion Finance | ||
| /// @dev Strategists can be smart contracts that implement this interface to provide | ||
| /// dynamic portfolio allocation logic in a fully transparent manner. | ||
| /// @dev Implementors must support ERC-165 so that vaults can detect and auto-link them on assignment. | ||
| /// @custom:security-contact security@orionfinance.ai | ||
| interface IOrionStrategist { | ||
| /// @notice Submit the current portfolio intent based on market conditions and logic. | ||
| /// @param vault The vault to submit the intent to | ||
| function submitIntent(IOrionTransparentVault vault) external; | ||
| interface IOrionStrategist is IERC165 { | ||
| /// @notice Link this strategist to a vault. Can only be called once per deployment. | ||
| /// @param vault_ The vault address to link to this strategist. | ||
| function setVault(address vault_) external; | ||
|
|
||
| /// @notice Compute the current portfolio intent from on-chain state and submit it to the linked vault. | ||
| function submitIntent() external; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.