Enzyme
Last updated
Last updated
Calculate a rebalancing for an Enzyme vault. The minimal params are:
signer: Address
vault: Address
baseEntries
baseEntries
/0.1/rebalancing/enzyme
31Third API key (Request via dev@31third.com)
Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)
The wallet that is used to sign the rebalancing and send it on-chain.
0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B
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%)
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).
Vault for which the rebalancing is calculated.
0x1b83ba4527C837d462D5b78d65A097dABae5ea89
Describes if batch trading should be enabled (if not trades can be executed one-by-one)
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
List of target entries (token and allocation)
List of base entries (token and amount). (If an empty array is passed all vault tokens are considered as base allocation)
(COMING SOON) Settings for liquidity sources (DEXs, market makers, DeFi protocols)