Saffron Mojito Adapter v2
Last updated
Last updated
This contract interfaces with Mojito Swap and provides a common SaffronAdapter interface expected for use by Saffron Pool contracts.
Type | Visibility | Name | Description |
---|---|---|---|
Type | Name | Description |
---|---|---|
deploy_capital()
Add funds to underlying protocol. Called from pool's deposit function
return_capital()
Return funds to user. Called from pool's withdraw function
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
set_pool()
Set a new Saffron Pool address
set_lp()
Set new LP token address
propose_governance()
Propose transfer of governance to new address
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 |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
uint256
lp_amount
Amount (wei) of LP Assets to be deployed to underlying platform
uint256
lp_amount
Amount (wei) of LP Assets to be staked in Mojito
address
to
Address to receive withdrawn funds
address
_autocompounder
Address of new Saffron Auto Compounder contract
address
pool
Address of new Saffron Pool contract
address
addr
Address of new LP token
address
to
Address of proposed new governance
address
amount_qlp
Amount (wei) of LP Assets to be staked in Mojito
address
to
Address to receive swept assets
address
public
governance
Governance address
address
public
new_governance
Pending governance address if accepted
address
public
saffron_pool
Saffron Pool which owns this adapter
IERC20
public
MLP
MLP address (Uni-V2 LP token)
SaffronMojitoAutocompounder
public
autocompounder
Auto-Compounder for this adapter/platform
string
public
platform
Platform name
string
public
name
Adapter name
address
_lp_address
Address of LP asset to be managed
string
_name