Starknet Router V2
Last updated
Last updated
Parameter name | Type | Description |
---|---|---|
Parameter name | Type | Description |
---|---|---|
_owner
ContractAddress
owner of router contract
token_in
ContractAddress
contract address of token to sell
token_out
ContractAddress
contract address of token to buy
amount_in
u256
amount of token to sell
min_received
u256
minimum received amount of user get
destination
ContractAddress
The receiver address for the output token
token_in
ContractAddress
contract address of token to sell
token_out
ContractAddress
contract address of token to buy
rate
u32
rate * 10**4 gives 4 precision points
protocol_id
u32
procotol id
extra_data
Array<felt252>
extra data for route
sender
ContractAddress
address that execute the transaction.
token_in
ContractAddress
contract address of token to sell
token_out
CoıntractAddress
contract address of token to buy
amount_in
u256
amount of token to sold
amount_out
u256
amount of token to bought.
to
ContractAddress
receiver address for the output token