Skip to content

Commit fcb632e

Browse files
committed
refactor: defer deposit vault calls, handle via orchestrator state
1 parent aeb3ad4 commit fcb632e

14 files changed

Lines changed: 165 additions & 65 deletions

File tree

artifacts/contracts/OrionConfig.sol/OrionConfig.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

artifacts/contracts/factories/EncryptedVaultFactory.sol/EncryptedVaultFactory.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

artifacts/contracts/factories/TransparentVaultFactory.sol/TransparentVaultFactory.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

artifacts/contracts/interfaces/IInternalStateOrchestrator.sol/IInternalStateOrchestrator.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,25 @@
159159
"stateMutability": "view",
160160
"type": "function"
161161
},
162+
{
163+
"inputs": [
164+
{
165+
"internalType": "address",
166+
"name": "vault",
167+
"type": "address"
168+
}
169+
],
170+
"name": "getVaultTotalAssetsForFulfillDeposit",
171+
"outputs": [
172+
{
173+
"internalType": "uint256",
174+
"name": "totalAssets",
175+
"type": "uint256"
176+
}
177+
],
178+
"stateMutability": "view",
179+
"type": "function"
180+
},
162181
{
163182
"inputs": [
164183
{

artifacts/contracts/orchestrators/InternalStatesOrchestrator.sol/InternalStatesOrchestrator.json

Lines changed: 21 additions & 2 deletions
Large diffs are not rendered by default.

artifacts/contracts/orchestrators/LiquidityOrchestrator.sol/LiquidityOrchestrator.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

artifacts/contracts/vaults/OrionEncryptedVault.sol/OrionEncryptedVault.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

artifacts/contracts/vaults/OrionTransparentVault.sol/OrionTransparentVault.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

contracts/interfaces/IInternalStateOrchestrator.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ interface IInternalStateOrchestrator is AutomationCompatibleInterface {
102102
/// @return totalAssets The total assets for fulfill redeem
103103
function getVaultTotalAssetsForFulfillRedeem(address vault) external view returns (uint256 totalAssets);
104104

105+
/// @notice Get total assets for fulfill deposit for a specific vault
106+
/// @param vault The vault address
107+
/// @return totalAssets The total assets for fulfill deposit
108+
function getVaultTotalAssetsForFulfillDeposit(address vault) external view returns (uint256 totalAssets);
109+
105110
/// @notice Get the list of tokens for the current epoch
106111
/// @return tokens The array of token addresses used in the current epoch
107112
/// @dev This function blocks if the internal state orchestrator is not idle

contracts/interfaces/ILiquidityOrchestrator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface ILiquidityOrchestrator is AutomationCompatibleInterface {
1313
Idle,
1414
SellingLeg,
1515
BuyingLeg,
16-
FulfillRedeem
16+
FulfillDepositAndRedeem
1717
}
1818

1919
/// @notice Returns the current upkeep phase

0 commit comments

Comments
 (0)