Evaluation copy under final audit

Strategy Execution

UPM acts as a controlled execution layer that allows users to perform approved strategy operations through a standardized interface. All executable actions must correspond to whitelisted strategies registered within the UPM’s internal registry.

This ensures that only verified and approved contracts can be called, maintaining consistency, safety, and protocol-level control. No arbitrary or unregistered contract execution is permitted within the UPM framework.

Single Call Execution

The UPM enables execution of a single approved strategy call without deploying new custom contracts. Every execution request passes through registry validation to confirm that the target contract is a registered strategy.

Example doCall implementation:

UPM.doCall
function doCall(address target, bytes memory data) external returns (bytes memory result) {
    result = target.functionCall(data);
}

Use case

Simple swap:

// Build call data
bytes memory callData = abi.encodeWithSelector(
    OrbtUCE.swapExactIn.selector,
    address(WBTC),
    address(0xBTC),
    1e8,
    msg.sender,
    0
);

// Execute via UPM
upm.doCall(address(orbtUCE), callData);

Batch Call Execution

UPM also supports batch execution of multiple approved strategy calls in a single atomic transaction. Each target address must exist in the UPM registry; otherwise, the transaction will revert. This structure allows for multi-step strategies to be executed securely and atomically.

Example doBatchCalls implementation:

Use case

multi-step strategy (atomic):

1

Swap and deposit to Savings (example)

Build batch calls:

  • Step 1: Swap WBTC → 0xBTC via OrbtUCE (UPM receives 0xBTC temporarily)

  • Step 2: Deposit 0xBTC to USM, receive s0xBTC (user receives s0xBTC)

Code (conceptual):


Every strategy executed through the UPM is derived from a base strategy contract. This base layer standardizes protocol operations and embeds the fee and buyback model, ensuring that a consistent mechanism is followed for yield allocation, treasury contributions, and ecosystem sustainability.

All registered strategies must inherit from this base contract to be eligible for execution within the UPM framework.

Last updated