Wallet
Calculate a rebalancing for a wallet. The minimal params are:
signer: Address
wallet: Address
baseEntries
baseEntries
Last updated
Calculate a rebalancing for a wallet. The minimal params are:
signer: Address
wallet: Address
baseEntries
baseEntries
Last updated
Sell tokens are passed with amounts, buy tokens are passed as percentage allocation
The wallet that is used to sign the rebalancing and send it on-chain.
"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
List of base entries (token and amount)
List of target entries (token and allocation)
Maximum deviation from the target allocation. (0.01 = 1%)
Maximum allowed slippage for the calculated trades. (0.01 = 1%)
Max price impact for each calculated trade. (0.01 = 1%)
(COMING SOON) Settings for liquidity sources (DEXs, market makers, DeFi protocols)
Describes if batch trading should be enabled (if not trades can be executed one-by-one)
Describes if the batch execution should revert if one trade fails. Otherwise the already positive executed trades are settled.
Describes if balance check should be skipped. (Can be useful for testing).
If true, an exception is thrown, indicating that no price pair can be found for at least one of the tokens. (Only assets with a balance greater than 0 are considered.) If false, the rebalancing is still calculated without considering the tokens with no pairs.
If true the rebalancing will be calculated asynchronously. The progress can be checked with the responded id
Wallet for which the rebalancing is calculated.
"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
Unique ID of the calculated rebalancing.
"0096124c-19df-4459-8cbb-7615fdc7c157"
Value of assets sold in the rebalancing. (in USD)
12345.67
Estimated loss of total portfolio value. (in USD)
12.34
Estimated total portfolio value after the rebalancing. (in USD)
12345.67
Minimal total portfolio value after the rebalancing. (in USD)
12325.67
Estimated network fees for the rebalancing. (in WEI)
"20000000000000000"
Estimated network fees for the rebalancing. (in USD)
23.45
Estimated protocol fees for the rebalancing. (in USD)
23.45
List of tokens for which the allowance has to be increased before executing the rebalancing. (List based on the wallet passed in the rebalancing request.)
List of trades which will be executed to fulfill the rebalancing.
[Just if a batch trade is requested, otherwise use txHandler per trade] Address of the contract to send the txData to. It will be our batch trade contract if it is a rebalancing transaction. However, in some special cases, it may also be a different contract, for example, in the case of wrapping ETH into WETH.
[Just if a batch trade is requested, otherwise use txData per trade] Call data to execute the rebalancing. (Must be sent to the txHandler contract address.)
Call value to execute the rebalancing. (Must be sent to the txHandler contract address.)
List of tokens for which no price pair could be found.
Currently, this is not a hard expiration timestamp. The rebalancing transaction can still be executed if the timestamp has expired, but there may already be substantial price changes on the market. (With the introduction of RFQ, the timestamp will be a hard deadline for executing the rebalancing transaction at a given quote. If the timestamp expires, a new quote will be issued with a new timestamp.)
"2024-04-29T06:40:39.808Z"
Is executable based on wallet permissions for smart contracts