The staking feature allows users to stake their OADA tokens to receive sOADA (staked OADA) tokens, which are yield-bearing versions of OADA.
The StakeOadaRequest type defines the structure for staking requests:
// src/oada/actions.ts
// Type definition for OADA staking requests
// Specifies the amount of OADA tokens to stake
type StakeOadaRequest = {
amount: bigint;
};
The StakingAmoView interface defines the structure for staking pool information:
// src/oada/actions.ts
// Interface for staking pool information
// Contains details about the staking pool's state and parameters
export type StakingAmoView = {
soadaAmount: number; // Total amount of sOADA tokens
soadaLimit: number; // Maximum capacity of the staking pool
soadaBackingLovelace: number; // Total ADA backing the sOADA tokens
};