Saffron Mojito Auto Compounder
Introduction
This contract interfaces between Mojito Staking and the Saffron Adapter to provide auto compounding behavior and increase earnings
Miscellaneous State Variables
Type | Visibility | Name | Description |
---|---|---|---|
|
|
| Mojito chef address |
|
|
| LP token to auto compound into |
|
|
| Pool ID in farm's pool array |
|
|
| If auto compounding is enabled |
|
|
| Saffron Adapter to interact with underlying platform |
Constructor
Type | Name | Description |
---|---|---|
|
| Address of Saffron Adapter |
|
| Address of LP Asset being staked |
|
| Address of MojitoSwap router for trading assets |
|
| Address of Mojito Staking contract |
reset_approvals()
Reset LP token approvals to max value for use by AutoCompounder contracts
blend()
Transfer LP assets to Mojito Staking
Type | Name | Description |
---|---|---|
|
| Amount (wei) of LP Assets to be staked in Mojito |
spill()
Transfer LP assets out from Mojito Staking
Type | Name | Description |
---|---|---|
|
| Amount (wei) of LP Assets to be staked in Mojito |
|
| Address to receive the withdrawn assets |
autocompound()
Redeem Mojito Staking rewards, convert to LP tokens, deposit earnings
get_autocompounder_holdings()
Return adapter balance staked in Mojito Swap
get_mojito_chef_holdings()
Return adapter balance staked in Mojito Swap
set_mojito_chef()
Update Mojito Chef contract address
Type | Name | Description |
---|---|---|
|
| New Mojito Chef address |
set_autocompound_enabled()
Enable or disable auto compounding upon interaction with
Type | Name | Description |
---|---|---|
|
|
emergency_withdraw()
In case of emergency directly transfer LP assets out of Mojito Staking
Type | Name | Description |
---|---|---|
|
| Mojito Staking pool ID to withdraw from |
|
| Amount (wei) of LP Assets to be withdrawn from Mojito |
Last updated