Function: swapGet
@torque-labs/torque-utils • Docs
@torque-labs/torque-utils / swapGet
Function: swapGet()
Parameters
Returns
Promise
<ActionGetResponse
>
Defined in
Last updated
@torque-labs/torque-utils • Docs
@torque-labs/torque-utils / swapGet
Promise
<ActionGetResponse
>
Last updated
Parameter | Type | Description |
---|---|---|
swapAction
object
-
swapAction.inAmount
?
null
| number
The amount of tokens to swap from
swapAction.inToken
?
null
| string
The token to swap from
swapAction.outAmount
?
null
| number
The amount of tokens to swap to
swapAction.outToken
?
null
| string
The token to swap to
swapAction.usdcValue
?
null
| number
The USDC value TODO: USDC Value for which token?
offerId
?
string
-
offerTitle
?
string
-
publisherHandle
?
string
-
offerImageUrl
?
string
-
remainingConversions
?
number
-
userRewardType
?
string
-
userRewardToken
?
string
-
userRewardAmount
?
number
-
raffleRewardType
?
string
-
raffleRewardToken
?
string
-
raffleRewardAmount
?
number
-
holdForSeconds
?
number
-
currentConversions
?
number
-