Cake Pulse Contract

Cake Pulse is new contract for default Risk Free Pool.

Please check below to discover details of Cake Pulse.

Risk Free Pool - Cake PULSE

Contract info

Contract name: CakePulse Contract address: 0xE06A504A8b739cFb4DF4c7d773d2efE897D69F05

View CakePulse.sol on GitHub.

View the Scads: CakePulse contract on BscScan.

Functions

circulate

function circulate() public

Scads Service runs this function every 12 hours. This function includes main operations like exchange $SNACKS -> $SCADS -> $BUSD -> $CAKE, deposit/claim in Snacks Staking automatically.

Please check here to discover more details of Scads Service

buySnacks

function buySnacks(IERC20 _snacks, uint256 _amount, uint256 rate) public

_snacks: $SNACKS token address _amount: desired $SNACKS amount to buy rate : convert rate between $SNACKS and $SCADS

redeemSnacks

function redeemSnacks(IERC20 _snacks, uint256 _amount) public

_snacks: $SNACKS token address _amount: desired $SNACKS amount to buy

deposit

function depositSnacks(address pool, uint256 amount) public

address: Snacks staking pool address amount: desired $SNACKS amount to deposit

swap

function swap(IRouter router, address from, address to, uint256 amount) public returns(uint256)

router: ScadsRouter V1's address address: Input token address to be swapped address: Output token address amount: Target amount of output token

addLiquidity

function addLiquidity(IRouter router, uint256 amount) public returns(uint256)

router: ScadsRouter V1's address amount: SCADS-BUSD LP amount to be added

calculateBuyAmount

function calculateBuyAmount(IERC20 _snacks, uint256 _amount, uint256 rate) view public returns (uint256)

_snacks: $SNACKS token address _amount: desired $SNACKS amount to buy rate : convert rate between $SNACKS and $SCADS

Last updated