UniswapExtension
Contract Address
Blast Pool: 0x2D07601Cf96Ee56E3370A05F7054e1044b40faEe
Dapp Pool: 0xFbf1ecc384e47e1ED608F5aD9a53DD1D5cE91Dac
UniswapExtension
Methods
ACTION_SUPPLY
function ACTION_SUPPLY() external view returns (bytes32)
The action for supplying asset
Returns
_0
bytes32
undefined
ACTION_SUPPLY_NATIVE_TOKEN
function ACTION_SUPPLY_NATIVE_TOKEN() external view returns (bytes32)
The action for supplying native token
Returns
_0
bytes32
undefined
ACTION_SUPPLY_PTOKEN
function ACTION_SUPPLY_PTOKEN() external view returns (bytes32)
The action for supplying pToken
Returns
_0
bytes32
undefined
ACTION_SUPPLY_STETH
function ACTION_SUPPLY_STETH() external view returns (bytes32)
The action for supplying stEth
Returns
_0
bytes32
undefined
ACTION_UNISWAP_V2_EXACT_INPUT
function ACTION_UNISWAP_V2_EXACT_INPUT() external view returns (bytes32)
The action for exact input swap thru Uniswap v2
Returns
_0
bytes32
undefined
ACTION_UNISWAP_V2_EXACT_OUTPUT
function ACTION_UNISWAP_V2_EXACT_OUTPUT() external view returns (bytes32)
The action for exact output swap thru Uniswap v2
Returns
_0
bytes32
undefined
ACTION_UNISWAP_V3_EXACT_INPUT
function ACTION_UNISWAP_V3_EXACT_INPUT() external view returns (bytes32)
The action for exact input swap thru Uniswap v3
Returns
_0
bytes32
undefined
ACTION_UNISWAP_V3_EXACT_OUTPUT
function ACTION_UNISWAP_V3_EXACT_OUTPUT() external view returns (bytes32)
The action for exact output swap thru Uniswap v3
Returns
_0
bytes32
undefined
BLAST
function BLAST() external view returns (address)
The address of Blast
Returns
_0
address
undefined
SUB_ACTION_CLOSE_LONG_POSITION
function SUB_ACTION_CLOSE_LONG_POSITION() external view returns (bytes32)
The sub-action for closing long position
Returns
_0
bytes32
undefined
SUB_ACTION_CLOSE_SHORT_POSITION
function SUB_ACTION_CLOSE_SHORT_POSITION() external view returns (bytes32)
The sub-action for closing short position
Returns
_0
bytes32
undefined
SUB_ACTION_OPEN_LONG_POSITION
function SUB_ACTION_OPEN_LONG_POSITION() external view returns (bytes32)
The sub-action for opening long position
Returns
_0
bytes32
undefined
SUB_ACTION_OPEN_SHORT_POSITION
function SUB_ACTION_OPEN_SHORT_POSITION() external view returns (bytes32)
The sub-action for opening short position
Returns
_0
bytes32
undefined
SUB_ACTION_SWAP_COLLATERAL
function SUB_ACTION_SWAP_COLLATERAL() external view returns (bytes32)
The sub-action for swapping collateral
Returns
_0
bytes32
undefined
SUB_ACTION_SWAP_DEBT
function SUB_ACTION_SWAP_DEBT() external view returns (bytes32)
The sub-action for swapping debt
Returns
_0
bytes32
undefined
acceptOwnership
function acceptOwnership() external nonpayable
The new owner accepts the ownership transfer.
alien
function alien() external view returns (contract IAlienFinance)
The address of AlienFinance
Returns
_0
contract IAlienFinance
undefined
execute
function execute(UniswapExtension.Action[] actions) external payable
Parameters
actions
UniswapExtension.Action[]
undefined
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
_0
address
undefined
pendingOwner
function pendingOwner() external view returns (address)
Returns the address of the pending owner.
Returns
_0
address
undefined
renounceOwnership
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
seize
function seize(address recipient, address asset) external nonpayable
Admin seizes the asset from the contract.
Parameters
recipient
address
The recipient of the seized asset
asset
address
The asset to seize
transferOwnership
function transferOwnership(address newOwner) external nonpayable
Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.
Parameters
newOwner
address
undefined
uniV2Factory
function uniV2Factory() external view returns (address)
The address of Uniswap V2 factory
Returns
_0
address
undefined
uniV3Factory
function uniV3Factory() external view returns (address)
The address of Uniswap V3 factory
Returns
_0
address
undefined
uniswapV2Call
function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes _data) external nonpayable
Parameters
sender
address
undefined
amount0
uint256
undefined
amount1
uint256
undefined
_data
bytes
undefined
uniswapV3SwapCallback
function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes _data) external nonpayable
Called to msg.sender
after executing a swap via IUniswapV3Pool#swap.
In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
Parameters
amount0Delta
int256
The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.
amount1Delta
int256
The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.
_data
bytes
undefined
weth
function weth() external view returns (address)
The address of WETH
Returns
_0
address
undefined
Events
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
Parameters
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
SwapExecuted
event SwapExecuted(address user, bytes32 subAction, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut)
The event of a swap being executed
Parameters
user
address
undefined
subAction
bytes32
undefined
tokenIn
address
undefined
tokenOut
address
undefined
amountIn
uint256
undefined
amountOut
uint256
undefined
Last updated