๐Frontend Helper
The frontend helper contract is used to make it easy for frontends or other contracts to provide liquidity and lock the LP for incentives with a single message.
Once users have provided liquidity on WW pools via the pair contract, there is an additional step to lock the LP tokens for incentives in the incentive contract of the pool they provided liquidity to. These two actions are separate, so in a normal scenario, the user would need to first provide liquidity and then lock it, effectively signing two separate transactions.
The frontend helper allows users to do this in a single transaction, by providing liquidity and locking it for incentives via the deposit message.
The following are the messages that can be executed on the frontend helper contract:
Instantiate
Instantiates the frontend helper.
Migrate
Migrates the frontend helper. This is to be triggered by the owner.
ExecuteMsg
Deposit
Deposits assets into a pair pool and opens or expands a position on the respective incentive contract with the received LP tokens.
Update config
Updates the configuration of the frontend helper.
Queries
Config
Retrieves the configuration of the frontend helper.
Last updated