Swap2

The swap2 function sends an application request into the protocol, this application request consists of the amount of the base token in which the user wants to swap.

function swap2() payable external;

Solidity

CEGORAS egoras = CEGORAS(0xd9E373F....);
require(egoras.swap2( ), "unable to swap");

Web3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.swap2("50").send({from: 0xMyAccount});
Contents
Solidity
Web3