Alien Finance
AppTwitter
  • General
    • Overview
    • What's Native on Blast
    • Brand Kit
  • Open Source
    • Blast Multisig Tx Builder
  • Lending Protocol - DApp Pool
    • Market Parameters
    • Interest Rate Model
    • Contract Address
  • Lending Protocol - Blast Pool
    • Market Parameters
    • Interest Rate Model
    • Contract Address
    • Alien Leverage
      • Leverage FAQ
  • Smart Contract
    • AlienFinance
      • Interface: AlienFinance
    • BlastPriceOracle
      • Interface: BlastPriceOracle
    • AlienFinanceLens
      • Interface: AlienFinanceLens
    • TripleSlopeRateModel
      • Interface: TripleSlopeRateModel
    • AToken
    • DebtToken
    • TxBuilderExtension
    • UniswapExtension
    • FlashLoan
  • Links
    • App
    • Twitter
Powered by GitBook
On this page
  • Contract Address
  • UniswapExtension
  • Methods
  • Events
  1. Smart Contract

UniswapExtension

Last updated 9 months ago

Contract Address

  • Blast Pool:

  • Dapp Pool:

UniswapExtension

Methods

ACTION_SUPPLY

function ACTION_SUPPLY() external view returns (bytes32)

The action for supplying asset

Returns

Name
Type
Description

_0

bytes32

undefined

ACTION_SUPPLY_NATIVE_TOKEN

function ACTION_SUPPLY_NATIVE_TOKEN() external view returns (bytes32)

The action for supplying native token

Returns

Name
Type
Description

_0

bytes32

undefined

ACTION_SUPPLY_PTOKEN

function ACTION_SUPPLY_PTOKEN() external view returns (bytes32)

The action for supplying pToken

Returns

Name
Type
Description

_0

bytes32

undefined

ACTION_SUPPLY_STETH

function ACTION_SUPPLY_STETH() external view returns (bytes32)

The action for supplying stEth

Returns

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_0

bytes32

undefined

BLAST

function BLAST() external view returns (address)

The address of Blast

Returns

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_0

bytes32

undefined

SUB_ACTION_SWAP_COLLATERAL

function SUB_ACTION_SWAP_COLLATERAL() external view returns (bytes32)

The sub-action for swapping collateral

Returns

Name
Type
Description

_0

bytes32

undefined

SUB_ACTION_SWAP_DEBT

function SUB_ACTION_SWAP_DEBT() external view returns (bytes32)

The sub-action for swapping debt

Returns

Name
Type
Description

_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

Name
Type
Description

_0

contract IAlienFinance

undefined

execute

function execute(UniswapExtension.Action[] actions) external payable

Parameters

Name
Type
Description

actions

UniswapExtension.Action[]

undefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

Name
Type
Description

_0

address

undefined

pendingOwner

function pendingOwner() external view returns (address)

Returns the address of the pending owner.

Returns

Name
Type
Description

_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

Name
Type
Description

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

Name
Type
Description

newOwner

address

undefined

uniV2Factory

function uniV2Factory() external view returns (address)

The address of Uniswap V2 factory

Returns

Name
Type
Description

_0

address

undefined

uniV3Factory

function uniV3Factory() external view returns (address)

The address of Uniswap V3 factory

Returns

Name
Type
Description

_0

address

undefined

uniswapV2Call

function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes _data) external nonpayable

Parameters

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

_0

address

undefined

Events

OwnershipTransferStarted

event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)

Parameters

Name
Type
Description

previousOwner indexed

address

undefined

newOwner indexed

address

undefined

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

Name
Type
Description

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

Name
Type
Description

user

address

undefined

subAction

bytes32

undefined

tokenIn

address

undefined

tokenOut

address

undefined

amountIn

uint256

undefined

amountOut

uint256

undefined

0x2D07601Cf96Ee56E3370A05F7054e1044b40faEe
0xFbf1ecc384e47e1ED608F5aD9a53DD1D5cE91Dac