Enzyme
Last updated
Last updated
Calculate a rebalancing for an Enzyme vault. The minimal params are:
signer: Address
vault: Address
baseEntries
baseEntries
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%)
0.005
Maximum allowed slippage for the calculated trades. (0.01 = 1%)
0.01
Max price impact for each calculated trade. (0.01 = 1%)
0.05
(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)
true
Example: true
Describes if the batch execution should revert if one trade fails. Otherwise the already positive executed trades are settled.
true
Describes if balance check should be skipped. (Can be useful for testing).
false
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.
false
Example: true
If true the rebalancing will be calculated asynchronously. The progress can be checked with the responded id
false
Example: true
Vault for which the rebalancing is calculated.
0x1b83ba4527C837d462D5b78d65A097dABae5ea89