MarginAccount.sol
https://github.com/aloelabs/aloe-ii-core/blob/testnet-beta/src/MarginAccount.sol
The information provided by Aloe Labs, Inc. (“we,” “us” or “our”) on docs.aloe.capital (the “Site”) is for general informational purposes only. All information on the Site is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the Site.Under no circumstance shall we have any liability to you for any loss or damage of any kind incurred as a result of the use of the site or reliance on any information provided on the site. Your use of the site and your reliance on any information on the site is solely at your own risk.
Gives the
callee
complete control of the Margin Account. Only callable by Margin Account owner. Solvency is checked after callee is done executing.data
The bytes (arguments, etc.) that will be passed tocallee
allowances
The amounts of each token thatcallee
should have access to. In order: TOKEN0, TOKEN1, KITTY0, KITTY1. Avoid extraneousapprove
s by setting one or more entries to 0.
function modify(
IManager callee,
bytes calldata data,
uint256[4] calldata allowances
) external;
Adds liquidity to a Uniswap Position.
lower
The lower tick of the positionupper
The upper tick of the positionliquidity
The amount of liquidity to add
amount0
The amount of TOKEN0 that was used to create the positionamount1
The amount of TOKEN1 that was used to create the position
function uniswapDeposit(
int24 lower,
int24 upper,
uint128 liquidity
) external returns (uint256 amount0, uint256 amount1);
Removes liquidity to a Uniswap Position.
lower
The lower tick of the positionupper
The upper tick of the positionliquidity
The amount of liquidity to remove
burned0
The amount of TOKEN0 that was underlyingliquidity
burned1
The amount of TOKEN1 that was underlyingliquidity
collected0
The fees earned in TOKEN0, plusburned0
collected1
The fees earned in TOKEN1, plusburned1
function uniswapWithdraw(
int24 lower,
int24 upper,
uint128 liquidity
)
external
returns (
uint256 burned0,
uint256 burned1,
uint256 collected0,
uint256 collected1
);
Last modified 8mo ago