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.
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
deploy_capital()
Add funds to underlying protocol. Called from pool's deposit function
uint256
lp_amount
Amount (wei) of LP Assets to be deployed to underlying platform
return_capital()
Return funds to user. Called from pool's withdraw function
uint256
lp_amount
Amount (wei) of LP Assets to be staked in Mojito
address
to
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
address
_autocompounder
Address of new Saffron Auto Compounder contract
set_pool()
Set a new Saffron Pool address
address
pool
Address of new Saffron Pool contract
set_lp()
Set new LP token address
address
addr
Address of new LP token
propose_governance()
Propose transfer of governance to new address
address
to
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
address
amount_qlp
Amount (wei) of LP Assets to be staked in Mojito
address
to
Address to receive swept assets