Contract name: Quoter Protocol
Contract addresses:
Harmony Mainnet: 0xFFFD451F62bE856E0cADdAc7c9a2e60aC5842C48
Binance Smart Chain Mainnet: 0x76540F7e38dFCdF3b39A501Bb7ef77c3705f4F17
Harmony Testnet: 0x028739801886AC60E0428e918e2bC9cA5D06399E
Returns balance of a token available for use in Quoter.
Parameters:
Token address of a token to check balance of.
Returns:
Cancels order's quote.
Paramaters:
Order info contains timestamp and order id
createOrUpdateSession
Creates or updates session that lets maker and taker to trade without signing messages through wallet.
Parameters:
Expiration time in unix seconds timestamp
Returns:
One of the value from enum (created, updated) that indicates the status of session
Deposits given token of frontend to the Quoter smart contract and stores the balance information.
Address of token to deposit, depositing wallet must give an allowance to the Quoter smart contract for given amount
Amount of tokens to deposit
Returns:
The balance after depositing the tokens
Terminates active session
Fills order's quote, fully or partially (whichever is possible)
Parameters:
Signature to confirm quote ownership
Returns:
Amounts - filled taking and making amounts
fillOrderRFQCallPeriphery
Fills order's quote, fully or partially (whichever is possible) and calls external contract function
Parameters:
Signature to confirm quote ownership
Address of contract that will receive the call after successful validation of RFQ order and transfer from taker to maker
Returns:
Amounts - filled taking and making amounts
Returns session data
Parameters:
Wallet address of the session's owner
Returns:
Wallet address of the session's owner
Session expiration unix timestamp, might be zero if it was terminated
Number of transactions made during session
sessionExpirationTime
Returns expiration unix timestamp of given address session
Parameters:
Wallet address of the session's owner
Returns:
Session expiration unix timestamp, might be zero if it was terminated
setReferralBonus
//Opis
Parameters:
transferOwnership
//Opis
Parameters:
Address of wallet that will receive ownership
Returns:
Address of previous owner
Withdraws given token of frontend from the Quoter contract
Parameters:
Address of a token to withdraw
Amount of tokens to withdraw
Returns:
Balance after withdrawing the tokens
Event emmited when RFQ order was filled.
Parameters:
OwnershipTransfered
//opis
Parameters:
Event emmited on successful session creation
Parameters:
Address of wallet creating the session
Public key of the session
Session expiration time in unix timestamp
SessionTerminated
Event emmited on successful session termination
Parameters:
Address of wallet terminating the session
Public key of the session
Event emitted on successful session update
Parameters:
Address of wallet updating
the session
Public key of the session
Session expiration time in unix timestamp
SplitTokenTransfered
Event emitted on successful transfer of fee token - split between contract owner and frontend
Parameters:
Address of wallet that transfers token
Address of first recipient
Address of second recipient
Address of deposited token
Percentage used to split amount between recipient and splitTo
Balance after fee token transfer
Event emitted on successful deposit of token
Address of wallet depositing the token
Address of the deposited token
TokenTransferred
Event emitted on successful transfer of token
Parameters:
Address of wallet transfering the token
Address of the token recipient
Address of the transfered token
Event emitted on successful withdrawn of token
Parameters:
Address of wallet withdrawing the token
Address of the withdrawn token
Properties:
Wallet address of the session's owner
Session expiration unix timestamp, might be zero if it was terminated
Number of transactions made during session
Properties:
OrderRQFAmounts
Properties: