Learn
Gnosis

Spark on Gnosis Chain

Deployments

NameAddress
SparkLendingPoolV30x2Dae5307c5E3FD1CF5A72Cb6F698f915860607e0 (opens in a new tab)
WrappedTokenGatewayV30xBD7D6a9ad7865463DE44B05F04559f65e3B11704 (opens in a new tab)
spWXDAI0xC9Fe2D32E96Bb364c7d29f3663ed3b27E30767bB (opens in a new tab)
variableDebtWXDAI0x868ADfDf12A86422524EaB6978beAE08A0008F37 (opens in a new tab)
sDAI0xaf204776c7245bF4147c2612BF6e5972Ee483701 (opens in a new tab)
RewardsController0x98e6BcBA7d5daFbfa4a92dAF08d3d7512820c30C (opens in a new tab)
SavingsXDaiAdapter0xD499b51fcFc66bd31248ef4b28d656d67E591A94 (opens in a new tab)

Action: deposit

Parameters

NameTypeDescription
targetsstring[] (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)

    ParameterConstraint
    spenderequal to SparkLendingPoolV3
    amount-

SparkLendingPoolV3 · supply

Deposit TARGET and receive spToken tokens in exchange.

  • Contract: SparkLendingPoolV3

  • Function: supply(address,uint256,address,uint16)

    ParameterConstraint
    assetequal to TARGET
    amount-
    onBehalfOfequal to AVATAR
    referralCode-

SparkLendingPoolV3 · setUserUseReserveAsCollateral

Set/unset deposited asset as collateral.

  • Contract: SparkLendingPoolV3

  • Function: setUserUseReserveAsCollateral(address,bool)

    ParameterConstraint
    assetequal to TARGET
    useAsCollateral-

SparkLendingPoolV3 · withdraw

Redeem spToken and withdraw TARGET tokens.

  • Contract: SparkLendingPoolV3

  • Function: withdraw(address,uint256,address)

    ParameterConstraint
    assetequal to TARGET
    amount-
    toequal to AVATAR

RewardsController · claimRewards

Claim rewards.

  • Contract: RewardsController

  • Function: claimRewards(address[],uint256,address,address)

    ParameterConstraint
    assets-
    amount-
    toequal to AVATAR
    reward-

RewardsController · claimAllRewards

Claim all rewards.

  • Contract: RewardsController

  • Function: claimAllRewards(address[],address)

    ParameterConstraint
    assets-
    toequal 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)

    ParameterConstraint
    spenderequal to WrappedTokenGatewayV3
    amount-

WrappedTokenGatewayV3 · depositETH

Deposit XDAI and receive spWXDAI tokens in exchange.

  • Contract: WrappedTokenGatewayV3

  • Function: depositETH(address,address,uint16) Ξ allow sending XDAI

    ParameterConstraint
    addressequal to SparkLendingPoolV3
    onBehalfOfequal to AVATAR
    referralCode-

SparkLendingPoolV3 · setUserUseReserveAsCollateral

Set/unset deposited asset as collateral.

  • Contract: SparkLendingPoolV3

  • Function: setUserUseReserveAsCollateral(address,bool)

    ParameterConstraint
    assetequal to TARGET
    useAsCollateral-

WrappedTokenGatewayV3 · withdrawETH

Redeem spWXDAI and withdraw XDAI tokens.

  • Contract: WrappedTokenGatewayV3

  • Function: withdrawETH(address,uint256,address)

    ParameterConstraint
    addressequal to SparkLendingPoolV3
    amount-
    toequal to AVATAR

RewardsController · claimRewards

Claim rewards.

  • Contract: RewardsController

  • Function: claimRewards(address[],uint256,address,address)

    ParameterConstraint
    assets-
    amount-
    toequal to AVATAR
    reward-

RewardsController · claimAllRewards

Claim all rewards.

  • Contract: RewardsController

  • Function: claimAllRewards(address[],address)

    ParameterConstraint
    assets-
    toequal to AVATAR

Target: DSR_sDAI

sDAI · approve

Approve sDAI to spend SavingsXDaiAdapter tokens on behalf of the avatar.

  • Contract: sDAI

  • Function: approve(address,uint256)

    ParameterConstraint
    spenderequal to SavingsXDaiAdapter
    amount-

WXDAI · approve

Approve WXDAI to spend SavingsXDaiAdapter tokens on behalf of the avatar.

  • Contract: WXDAI

  • Function: approve(address,uint256)

    ParameterConstraint
    spenderequal to SavingsXDaiAdapter
    amount-

SavingsXDaiAdapter · depositXDAI

Deposit XDAI and receive sDAI tokens in exchange.

  • Contract: SavingsXDaiAdapter

  • Function: depositXDAI(address) Ξ allow sending XDAI

    ParameterConstraint
    receiverequal to AVATAR

SavingsXDaiAdapter · redeemXDAI

Redeem sDAI and withdraw XDAI tokens.

  • Contract: SavingsXDaiAdapter

  • Function: redeemXDAI(uint256,address)

    ParameterConstraint
    shares-
    receiverequal to AVATAR

SavingsXDaiAdapter · deposit

Deposit WXDAI and receive sDAI tokens in exchange.

  • Contract: SavingsXDaiAdapter

  • Function: deposit(uint256,address)

    ParameterConstraint
    assets-
    receiverequal to AVATAR

SavingsXDaiAdapter · redeem

Redeem sDAI and withdraw WXDAI tokens.

  • Contract: SavingsXDaiAdapter

  • Function: redeem(uint256,address)

    ParameterConstraint
    shares-
    receiverequal to AVATAR

Action: borrow

Parameters:

NameTypeDescription
targetsstring[] (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)

    ParameterConstraint
    spenderequal to SparkLendingPoolV3
    amount-

SparkLendingPoolV3 · borrow

Receive TARGET and receive debtToken tokens.

  • Contract: SparkLendingPoolV3

  • Function: borrow(address,uint256,uint256,uint16,address)

    ParameterConstraint
    assetequal to TARGET
    amount-
    interestRateMode-
    referralCode-
    onBehalfOfequal to AVATAR

SparkLendingPoolV3 · repay

Repay borrowed TARGET tokens.

  • Contract: SparkLendingPoolV3

  • Function: repay(address,uint256,uint256,address)

    ParameterConstraint
    assetequal to TARGET
    amount-
    rateMode-
    onBehalfOfequal 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)

    ParameterConstraint
    delegateeequal to WrappedTokenGatewayV3
    amount-

WrappedTokenGatewayV3 · borrowXDAI

Receive XDAI and variableDebtWXDAI tokens.

  • Contract: WrappedTokenGatewayV3

  • Function: borrowXDAI(address,uint256,uint256,uint16)

    ParameterConstraint
    addressequal to AaveLendingPoolV3
    amount-
    interestRateMode-
    referralCode-

WrappedTokenGatewayV3 · repayXDAI

Repay borrowed XDAI.

  • Contract: WrappedTokenGatewayV3

  • Function: repayXDAI(address,uint256,uint256,address) Ξ allow sending XDAI

    ParameterConstraint
    addressequal to AaveLendingPoolV3
    amount-
    rateMode-
    onBehalfOfequal to AVATAR