Cake Pulse Contract
Last updated
Last updated
Cake Pulse is new contract for default Risk Free Pool.
Please check below to discover details of Cake Pulse.
Contract name: CakePulse
Contract address: 0xE06A504A8b739cFb4DF4c7d773d2efE897D69F05
View CakePulse.sol on GitHub.
View the Scads: CakePulse contract on BscScan.
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
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
function redeemSnacks(IERC20 _snacks, uint256 _amount) public
_snacks:
$SNACKS token address
_amount:
desired $SNACKS amount to buy
function depositSnacks(address pool, uint256 amount) public
address:
Snacks staking pool address
amount:
desired $SNACKS amount to deposit
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
function addLiquidity(IRouter router, uint256 amount) public returns(uint256)
router:
ScadsRouter V1's address
amount:
SCADS-BUSD LP amount to be added
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