Skip to main content

AutoSdexFarmFacet

The Native token vault (pid=0) has a special feature that can automatically reinvest Sdex farmed. This Facet Is Internal to the Diamond, coordinating the restaking by the {SdexVaultFacet}

Functions

enterStaking

Enter Staking is called by by the Vault to reinvest any Sdex it has accrued into the pool

Declaration

  function enterStaking(
uint256 amount
) public onlyDiamond

Modifiers:

Modifier
onlyDiamond

Args:

ArgTypeDescription
amountuint256The amount of Sdex to be invested into the Sdex Pool (pid=0)

leaveStaking

leave staking coordinates the {SdexVaultFacets} removal of funds from the pool to distribute to users or too recollect prior to restaking

Declaration

  function leaveStaking(
uint256 amount
) public onlyDiamond

Modifiers:

Modifier
onlyDiamond

Args:

ArgTypeDescription
amountuint256The amount of funds the {SdexVaultFacet} withdraws from the Sdex pool (pid=1)

Events

Deposit

No description

Withdraw

No description