staked(address,address) :
This function returns the amount of a particular underlying asset that has been staked by a given account. It does this by accessing the userStaked mapping, which stores the amount of each underlying asset that has been staked by each account. The function takes two parameters, an account address and an underlying asset address, and returns the amount of the underlying asset that has been staked by the account. (autogenerated documentation)
stake() :
This function allows users to stake EUL tokens on a specific underlying asset. It takes an array of StakeOp objects as an argument, which contain the amount of EUL tokens to be staked and the underlying asset. The function then loops through the array and updates the userStaked mapping with the new amount of EUL tokens staked. It also emits a Stake event to notify other contracts of the staking action. Finally, it transfers the EUL tokens from the user to the contract if the amount staked is positive, or from the contract to the user if the amount staked is negative. (autogenerated documentation)
stakeGift(address,address) :
This function allows a user to stake a certain amount of a given underlying asset to a beneficiary address. It requires that the amount is less than 1e36 and if the amount is 0, the function will not execute. The function then adds the amount to the userStaked mapping for the beneficiary and underlying asset, and emits a Stake event. Finally, it transfers the amount from the eul address to the address of the contract. (autogenerated documentation)
stakePermit(uint8,bytes32,bytes32) :
This function is used to allow a user to stake a certain amount of tokens to a specific address. It takes in an array of StakeOp objects, a value, a deadline, and three bytes32 values (v, r, and s) as parameters. It first calls the IERC20Permit function to permit the user to transfer the specified amount of tokens to the address of the contract. It then calls the stake function to stake the tokens to the specified address. (autogenerated documentation)