Add Liquidity (ETH)

The Save function sends an application request into the protocol, this application request consists of the market of which the asset is listed and the duration of the savings.

function save1(bool _isMarket, uint _duration) payable external;

  • _isMarket : true if the asset is a base market and false if the asset is the Token

  • _duration: How long do you want to save the assets in the pool before it can be withdrawn.

Solidity

CEGORAS egoras = CEGORAS(0xd9E373F....);
require(egoras.save1(true/false,90 ), "unable to save");

Web3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.save("true/false,90").send({value: 1 in wei, from: 0xMyAccount});