The swap1 function sends an application request into the protocol, this application request consists of the amount in which the user wants to swap.
function swap1(uint _amount) external;
_amount : The amount of asset you want to swap to the base token.
CEGORAS egoras = CEGORAS(0xd9E373F....);require(egoras.swap1(50), "unable to swap");
const instance = await new web3.eth.Contract(abi, address)await instance.methods.swap1("50").send({from: 0xMyAccount});