Saffron Converter
Last updated
Last updated
Saffron Converter
struct Conversion
Structure containing conversion steps for swapping tokens with any Uniswap V2 style router
Type | Name | Description |
---|---|---|
|
| Router to do the conversion: QuickSwap, SushiSwap, etc. |
|
| Token to convert from |
|
| Token to convert to |
|
| Percentage of tokenFrom to convert: 50 == half, 100 == all |
|
| Bitmask of operations: 1=remove, 2=swap, 4=add, 8=fee-on-transfer |
Type | Visibility | Name | Description |
---|---|---|---|
|
|
| Governance address |
|
|
| Pending governance address if accepted |
|
|
| List of supported conversions |
|
|
| Internal state for reentrancy guard |
preapprove_conversions()
Pre approve conversions
init_conversions()
Init conversions
Type | Name | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
|
convert()
Convert
remove_liquidity_would_return_zero()
Type | Name | Description |
---|---|---|
|
| |
|
|
get_amount_out()
Get amount out
Type | Name | Description |
---|---|---|
|
| |
|
| |
|
| |
|
|
sort_tokens()
Sort tokens
Type | Name | Description |
---|---|---|
|
| |
|
|
pair_for()
Pair for
Type | Name | Description |
---|---|---|
|
| |
|
| |
|
|
get_conversion()
Get Conversion
Type | Name | Description |
---|---|---|
|
|
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 |