Spark on Gnosis Chain
Deployments
Name | Address |
---|---|
SparkLendingPoolV3 | 0x2Dae5307c5E3FD1CF5A72Cb6F698f915860607e0 (opens in a new tab) |
WrappedTokenGatewayV3 | 0xBD7D6a9ad7865463DE44B05F04559f65e3B11704 (opens in a new tab) |
spWXDAI | 0xC9Fe2D32E96Bb364c7d29f3663ed3b27E30767bB (opens in a new tab) |
variableDebtWXDAI | 0x868ADfDf12A86422524EaB6978beAE08A0008F37 (opens in a new tab) |
sDAI | 0xaf204776c7245bF4147c2612BF6e5972Ee483701 (opens in a new tab) |
RewardsController | 0x98e6BcBA7d5daFbfa4a92dAF08d3d7512820c30C (opens in a new tab) |
SavingsXDaiAdapter | 0xD499b51fcFc66bd31248ef4b28d656d67E591A94 (opens in a new tab) |
Action: deposit
Parameters
Name | Type | Description |
---|---|---|
targets | string[] (required) | XDAI | DSR_sDAI | 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 spender
equal to SparkLendingPoolV3
amount
-
SparkLendingPoolV3 · supply
Deposit TARGET
and receive spToken
tokens in exchange.
-
Contract:
SparkLendingPoolV3
-
Function:
supply(address,uint256,address,uint16)
Parameter Constraint asset
equal to TARGET
amount
- onBehalfOf
equal to AVATAR
referralCode
-
SparkLendingPoolV3 · setUserUseReserveAsCollateral
Set/unset deposited asset as collateral.
-
Contract:
SparkLendingPoolV3
-
Function:
setUserUseReserveAsCollateral(address,bool)
Parameter Constraint asset
equal to TARGET
useAsCollateral
-
SparkLendingPoolV3 · withdraw
Redeem spToken
and withdraw TARGET
tokens.
-
Contract:
SparkLendingPoolV3
-
Function:
withdraw(address,uint256,address)
Parameter Constraint asset
equal to TARGET
amount
- to
equal to AVATAR
RewardsController · claimRewards
Claim rewards.
-
Contract:
RewardsController
-
Function:
claimRewards(address[],uint256,address,address)
Parameter Constraint assets
- amount
- to
equal to AVATAR
reward
-
RewardsController · claimAllRewards
Claim all rewards.
-
Contract:
RewardsController
-
Function:
claimAllRewards(address[],address)
Parameter Constraint assets
- to
equal to AVATAR
Target: XDAI
For "XDAI"
as an element of targets
, the following functions are allowed:
spWXDAI · approve
Approve WrappedTokenGatewayV3
to spend spWXDAI
tokens on behalf of the avatar.
-
Contract:
spWXDAI
-
Function:
approve(address,uint256)
Parameter Constraint spender
equal to WrappedTokenGatewayV3
amount
-
WrappedTokenGatewayV3 · depositETH
Deposit XDAI and receive spWXDAI
tokens in exchange.
-
Contract:
WrappedTokenGatewayV3
-
Function:
depositETH(address,address,uint16)
Ξ allow sending XDAIParameter Constraint address
equal to SparkLendingPoolV3
onBehalfOf
equal to AVATAR
referralCode
-
SparkLendingPoolV3 · setUserUseReserveAsCollateral
Set/unset deposited asset as collateral.
-
Contract:
SparkLendingPoolV3
-
Function:
setUserUseReserveAsCollateral(address,bool)
Parameter Constraint asset
equal to TARGET
useAsCollateral
-
WrappedTokenGatewayV3 · withdrawETH
Redeem spWXDAI
and withdraw XDAI tokens.
-
Contract:
WrappedTokenGatewayV3
-
Function:
withdrawETH(address,uint256,address)
Parameter Constraint address
equal to SparkLendingPoolV3
amount
- to
equal to AVATAR
RewardsController · claimRewards
Claim rewards.
-
Contract:
RewardsController
-
Function:
claimRewards(address[],uint256,address,address)
Parameter Constraint assets
- amount
- to
equal to AVATAR
reward
-
RewardsController · claimAllRewards
Claim all rewards.
-
Contract:
RewardsController
-
Function:
claimAllRewards(address[],address)
Parameter Constraint assets
- to
equal to AVATAR
Target: DSR_sDAI
sDAI · approve
Approve sDAI
to spend SavingsXDaiAdapter
tokens on behalf of the avatar.
-
Contract:
sDAI
-
Function:
approve(address,uint256)
Parameter Constraint spender
equal to SavingsXDaiAdapter
amount
-
WXDAI · approve
Approve WXDAI
to spend SavingsXDaiAdapter
tokens on behalf of the avatar.
-
Contract:
WXDAI
-
Function:
approve(address,uint256)
Parameter Constraint spender
equal to SavingsXDaiAdapter
amount
-
SavingsXDaiAdapter · depositXDAI
Deposit XDAI
and receive sDAI
tokens in exchange.
-
Contract:
SavingsXDaiAdapter
-
Function:
depositXDAI(address)
Ξ allow sending XDAIParameter Constraint receiver
equal to AVATAR
SavingsXDaiAdapter · redeemXDAI
Redeem sDAI
and withdraw XDAI
tokens.
-
Contract:
SavingsXDaiAdapter
-
Function:
redeemXDAI(uint256,address)
Parameter Constraint shares
- receiver
equal to AVATAR
SavingsXDaiAdapter · deposit
Deposit WXDAI
and receive sDAI
tokens in exchange.
-
Contract:
SavingsXDaiAdapter
-
Function:
deposit(uint256,address)
Parameter Constraint assets
- receiver
equal to AVATAR
SavingsXDaiAdapter · redeem
Redeem sDAI
and withdraw WXDAI
tokens.
-
Contract:
SavingsXDaiAdapter
-
Function:
redeem(uint256,address)
Parameter Constraint shares
- receiver
equal to AVATAR
Action: borrow
Parameters:
Name | Type | Description |
---|---|---|
targets | string[] (required) | XDAI | 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 spender
equal to SparkLendingPoolV3
amount
-
SparkLendingPoolV3 · borrow
Receive TARGET
and receive debtToken
tokens.
-
Contract:
SparkLendingPoolV3
-
Function:
borrow(address,uint256,uint256,uint16,address)
Parameter Constraint asset
equal to TARGET
amount
- interestRateMode
- referralCode
- onBehalfOf
equal to AVATAR
SparkLendingPoolV3 · repay
Repay borrowed TARGET
tokens.
-
Contract:
SparkLendingPoolV3
-
Function:
repay(address,uint256,uint256,address)
Parameter Constraint asset
equal to TARGET
amount
- rateMode
- onBehalfOf
equal to AVATAR
Target: XDAI
For "XDAI"
as an element of targets
, the following functions are allowed:
variableDebtWXDAI · approveDelegation
Set the amount of allowance for WrappedTokenGatewayV3
to borrow variableDebtWXDAI
tokens.
-
Contract:
variableDebtWXDAI
-
Function:
approveDelegation(address,uint256)
Parameter Constraint delegatee
equal to WrappedTokenGatewayV3
amount
-
WrappedTokenGatewayV3 · borrowXDAI
Receive XDAI and variableDebtWXDAI
tokens.
-
Contract:
WrappedTokenGatewayV3
-
Function:
borrowXDAI(address,uint256,uint256,uint16)
Parameter Constraint address
equal to AaveLendingPoolV3
amount
- interestRateMode
- referralCode
-
WrappedTokenGatewayV3 · repayXDAI
Repay borrowed XDAI.
-
Contract:
WrappedTokenGatewayV3
-
Function:
repayXDAI(address,uint256,uint256,address)
Ξ allow sending XDAIParameter Constraint address
equal to AaveLendingPoolV3
amount
- rateMode
- onBehalfOf
equal to AVATAR