Saffron Mojito Adapter v2
Introduction
This contract interfaces with Mojito Swap and provides a common SaffronAdapter interface expected for use by Saffron Pool contracts.
Miscellaneous State Variables
Type | Visibility | Name | Description |
---|---|---|---|
|
|
| Governance address |
|
|
| Pending governance address if accepted |
|
|
| Saffron Pool which owns this adapter |
|
|
| MLP address (Uni-V2 LP token) |
|
|
| Auto-Compounder for this adapter/platform |
|
|
| Platform name |
|
|
| Adapter name |
Constructor
Type | Name | Description |
---|---|---|
|
| Address of LP asset to be managed |
|
|
deploy_capital()
Add funds to underlying protocol. Called from pool's deposit function
Type | Name | Description |
---|---|---|
|
| Amount (wei) of LP Assets to be deployed to underlying platform |
return_capital()
Return funds to user. Called from pool's withdraw function
Type | Name | Description |
---|---|---|
|
| Amount (wei) of LP Assets to be staked in Mojito |
|
| Address to receive withdrawn funds |
get_holdings()
Return balance of Auto Compounder holdings
get_holdings_view()
Return balance of Auto Compounder holdings (read-only/view)
set_autocompounder()
Set a new Saffron autocompounder address
Type | Name | Description |
---|---|---|
|
| Address of new Saffron Auto Compounder contract |
set_pool()
Set a new Saffron Pool address
Type | Name | Description |
---|---|---|
|
| Address of new Saffron Pool contract |
set_lp()
Set new LP token address
Type | Name | Description |
---|---|---|
|
| Address of new LP token |
propose_governance()
Propose transfer of governance to new address
Type | Name | Description |
---|---|---|
|
| Address of proposed new governance |
accept_governance()
Accept the role of governance (must be called by previously proposed candidate)
sweep_erc()
Transfer LP assets to Mojito Staking
Type | Name | Description |
---|---|---|
|
| Amount (wei) of LP Assets to be staked in Mojito |
|
| Address to receive swept assets |
Last updated