Spark
https://spark.fi/ (opens in a new tab)
Deployments
Action: deposit
Parameters
| Name | Type | Description |
|---|---|---|
targets | string[] (required) | ETH | Token symbols | DSR_sDAI | SKY_USDS |Token addresses |
Target: ERC-20
For targets that are ERC-20 tokens, the following functions are allowed:
TARGET below refers to the ERC-20 token address of each element given in
targets.
TARGET · approve
Approve SparkLendingPoolV3 to spend TARGET tokens on behalf of the avatar.
-
Contract:
TARGET -
Function:
approve(address,uint256)Parameter Constraint spenderequal to SparkLendingPoolV3amount-
SparkLendingPoolV3 · supply
Deposit TARGET tokens to the Spark lending pool and receive spToken tokens in exchange.
-
Contract:
SparkLendingPoolV3 -
Function:
supply(address,uint256,address,uint16)Parameter Constraint assetequal to TARGETamount- onBehalfOfequal to AVATARreferralCode-
SparkLendingPoolV3 · setUserUseReserveAsCollateral
Set/unset deposited asset as collateral.
-
Contract:
SparkLendingPoolV3 -
Function:
setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to TARGETuseAsCollateral-
SparkLendingPoolV3 · withdraw
Redeem spToken and withdraw TARGET.
-
Contract:
SparkLendingPoolV3 -
Function:
withdraw(address,uint256,address)Parameter Constraint assetequal to TARGETamount- toequal to AVATAR
RewardsController · claimRewards
Claim rewards.
-
Contract:
RewardsController -
Function:
claimRewards(address[],uint256,address,address)Parameter Constraint assets- amount- toequal to AVATARreward-
RewardsController · claimAllRewards
Claim all rewards.
-
Contract:
RewardsController -
Function:
claimAllRewards(address[],address)Parameter Constraint assets- toequal to AVATAR
Target: ETH
For "ETH" as an element of targets, the following functions are allowed:
spWETH · approve
Approve WrappedTokenGatewayV3 to spend spWETH tokens on behalf of the avatar.
-
Contract:
spWETH -
Function:
approve(address,uint256)Parameter Constraint spenderequal to WrappedTokenGatewayV3amount-
WrappedTokenGatewayV3 · depositETH
Deposit ETH and receive spWETH in exchange.
-
Contract:
WrappedTokenGatewayV3 -
Function:
depositETH(address,address,uint16)Ξ allow sending ETHParameter Constraint addressequal to SparkLendingPoolV3onBehalfOfequal to AVATARreferralCode-
SparkLendingPoolV3 · setUserUseReserveAsCollateral
Set/unset deposited asset as collateral.
-
Contract:
SparkLendingPoolV3 -
Function:
setUserUseReserveAsCollateral(address,bool)Parameter Constraint assetequal to TARGETuseAsCollateral-
WrappedTokenGatewayV3 · withdrawETH
Redeem spWETH and withdraw ETH.
-
Contract:
WrappedTokenGatewayV3 -
Function:
withdrawETH(address,uint256,address)Parameter Constraint addressequal to SparkLendingPoolV3amount- toequal to AVATAR
RewardsController · claimRewards
Claim rewards.
-
Contract:
RewardsController -
Function:
claimRewards(address[],uint256,address,address)Parameter Constraint assets- amount- toequal to AVATARreward-
RewardsController · claimAllRewards
Claim all rewards.
-
Contract:
RewardsController -
Function:
claimAllRewards(address[],address)Parameter Constraint assets- toequal to AVATAR
Target: DSR_sDAI
DAI · approve
Approve sDAI to spend DAI tokens on behalf of the avatar.
-
Contract:
DAI -
Function:
approve(address,uint256)Parameter Constraint spenderequal to sDAIamount-
sDAI · deposit
Deposit DAI tokens and receive sDAI tokens in exchange.
-
Contract:
sDAI -
Function:
deposit(uint256,address)Parameter Constraint assets- receiverequal to AVATAR
sDAI · redeem
Redeem sDAI and withdraw DAI.
-
Contract:
sDAI -
Function:
redeem(uint256,address,address)Parameter Constraint shares- receiverequal to AVATARownerequal to AVATAR
sDAI · withdraw
Redeem sDAI and withdraw DAI.
-
Contract:
sDAI -
Function:
withdraw(uint256,address,address)Parameter Constraint shares- receiverequal to AVATARownerequal to AVATAR
Target: SKY_USDS
DAI · approve
Approve MigrationActions to spend DAI tokens on behalf of the avatar.
-
Contract:
DAI -
Function:
approve(address,uint256)Parameter Constraint spenderequal to MigrationActionsamount-
USDS · approve - MigrationActions as spender
Approve MigrationActions to spend USDS tokens on behalf of the avatar.
-
Contract:
USDS -
Function:
approve(address,uint256)Parameter Constraint spenderequal to MigrationActionsamount-
USDS · approve - sUSDS as spender
Approve sUSDS to spend USDS tokens on behalf of the avatar.
-
Contract:
USDS -
Function:
approve(address,uint256)Parameter Constraint spenderequal to sUSDSamount-
MigrationActions · migrateDAIToUSDS
Burns DAI tokens and mints USDS tokens for the receiver.
-
Contract:
MigrationActions -
Function:
migrateDAIToUSDS(address,uint256)Parameter Constraint receiverequal to AVATARassetsIn-
MigrationActions · migrateDAIToSUSDS
Burns DAI tokens and mints sUSDS tokens for the receiver.
-
Contract:
MigrationActions -
Function:
migrateDAIToSUSDS(address,uint256)Parameter Constraint receiverequal to AVATARassetsIn-
MigrationActions · downgradeUSDSToDAI
Burns USDS tokens and mints DAI tokens for the receiver.
-
Contract:
MigrationActions -
Function:
downgradeUSDSToDAI(address,uint256)Parameter Constraint receiverequal to AVATARassetsIn-
sUSDS · deposit
Deposit USDS tokens and receive sUSDS tokens in exchange.
-
Contract:
sUSDS -
Function:
deposit(uint256,address)Parameter Constraint assets- receiverequal to AVATAR
sUSDS · withdraw
Redeem sUSDS and withdraw USDS.
-
Contract:
sUSDS -
Function:
withdraw(uint256,address,address)Parameter Constraint assets- receiverequal to AVATARownerequal to AVATAR
Action: borrow
Parameters:
| Name | Type | Description |
|---|---|---|
targets | string[] (required) | ETH | Token symbols | Token addresses |
sUSDS · redeem
Redeem sUSDS and withdraw USDS.
-
Contract:
sUSDS -
Function:
redeem(uint256,address,address)Parameter Constraint shares- receiverequal to AVATARownerequal to AVATAR
Action: borrow
Parameters:
| Name | Type | Description |
|---|---|---|
targets | string[] (required) | ETH | Token symbols | Token addresses |
Target: SKY_USDS
DAI · approve
Approve MigrationActions to spend DAI tokens on behalf of the avatar.
-
Contract:
DAI -
Function:
approve(address,uint256)Parameter Constraint spenderequal to MigrationActionsamount-
USDS · approve - MigrationActions as spender
Approve MigrationActions to spend USDS tokens on behalf of the avatar.
-
Contract:
USDS -
Function:
approve(address,uint256)Parameter Constraint spenderequal to MigrationActionsamount-
USDS · approve - sUSDS as spender
Approve sUSDS to spend USDS tokens on behalf of the avatar.
-
Contract:
USDS -
Function:
approve(address,uint256)Parameter Constraint spenderequal to sUSDSamount-
MigrationActions · migrateDAIToUSDS
Burns DAI tokens and mints USDS tokens for the receiver.
-
Contract:
MigrationActions -
Function:
migrateDAIToUSDS(address,uint256)Parameter Constraint receiverequal to AVATARassetsIn-
MigrationActions · migrateDAIToSUSDS
Burns DAI tokens and mints sUSDS tokens for the receiver.
-
Contract:
MigrationActions -
Function:
migrateDAIToSUSDS(address,uint256)Parameter Constraint receiverequal to AVATARassetsIn-
MigrationActions · downgradeUSDSToDAI
Burns USDS tokens and mints DAI tokens for the receiver.
-
Contract:
MigrationActions -
Function:
downgradeUSDSToDAI(address,uint256)Parameter Constraint receiverequal to AVATARassetsIn-
sUSDS · deposit
Deposit USDS tokens and receive sUSDS tokens in exchange.
-
Contract:
sUSDS -
Function:
deposit(uint256,address)Parameter Constraint assets- receiverequal to AVATAR
sUSDS · withdraw
Redeem sUSDS and withdraw USDS.
-
Contract:
sUSDS -
Function:
withdraw(uint256,address,address)Parameter Constraint assets- receiverequal to AVATARownerequal to AVATAR
sUSDS · redeem
Redeem sUSDS and withdraw USDS.
-
Contract:
sUSDS -
Function:
redeem(uint256,address,address)Parameter Constraint shares- receiverequal to AVATARownerequal to AVATAR
Action: borrow
Parameters:
| Name | Type | Description |
|---|---|---|
targets | string[] (required) | ETH | Token symbols | Token addresses |
Target: ERC-20
For targets that are ERC-20 tokens, the following functions are allowed:
TARGET below refers to the ERC-20 token address of each element given in
targets.
TARGET · approve
Approve SparkLendingPoolV3 to spend TARGET tokens on behalf of the avatar.
-
Contract:
TARGET -
Function:
approve(address,uint256)Parameter Constraint spenderequal to SparkLendingPoolV3amount-
SparkLendingPoolV3 · borrow
Receive TARGET tokens and receive debtToken.
-
Contract:
SparkLendingPoolV3 -
Function:
borrow(address,uint256,uint256,uint16,address)Parameter Constraint assetequal to TARGETamount- interestRateMode- referralCode- onBehalfOfequal to AVATAR
SparkLendingPoolV3 · repay
Repay borrowed TARGET tokens.
-
Contract:
SparkLendingPoolV3 -
Function:
repay(address,uint256,uint256,address)Parameter Constraint assetequal to TARGETamount- rateMode- onBehalfOfequal to AVATAR
Target: ETH
For "ETH" as an element of targets, the following functions are allowed:
variableDebtWETH · approveDelegation
Set the amount of allowance for WrappedTokenGatewayV3 to borrow of variableDebtWETH.
-
Contract:
variableDebtWETH -
Function:
approveDelegation(address,uint256)Parameter Constraint delegateeequal to WrappedTokenGatewayV3amount-
WrappedTokenGatewayV3 · borrowETH
Receive ETH and variableDebtWETH token.
-
Contract:
WrappedTokenGatewayV3 -
Function:
borrowETH(address,uint256,uint256,uint16)Parameter Constraint addressequal to AaveLendingPoolV3amount- interestRateMode- referralCode-
WrappedTokenGatewayV3 · repayETH
Repay borrowed ETH.
-
Contract:
WrappedTokenGatewayV3 -
Function:
repayETH(address,uint256,uint256,address)Ξ allow sending ETHParameter Constraint addressequal to AaveLendingPoolV3amount- rateMode- onBehalfOfequal to AVATAR