MigrationHelper
BNB Smart Chain0x6e85689f055b6894803d5135981f7b108c9dafd5
Solidity v0.6.12+commit.27d51765
Overview
Read Functions
Block #100,287,219 · just nowGet the MasterChef V1 contract address.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the MasterChef V1 contract used by this helper.✨ AI |
Returns the address recorded as the original owner of the MasterChefV1 contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the original owner of the MasterChefV1 contract.✨ AI |
Returns the pool id used for the MasterChefV2 contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The numeric pool identifier (pid) in MasterChefV2 associated with this migration helper.✨ AI |
Indicates whether backup allocation points are enabled.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if backup allocation points are enabled, false otherwise.✨ AI |
Return the local pool identifier at the given index.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The uint256 identifier of the local pool at the specified index.✨ AI |
Returns the address of the contract owner.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address currently set as the owner of this contract.✨ AI |
Read the previous allocation points for a specified pool index.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Previous allocation points for the specified pool index.✨ AI |
Returns the total allocation points across all pools.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total allocation point weight used to calculate each pool's share of rewards.✨ AI |
Write Functions
Add multiple pool ids to the migration list so the helper will migrate their rewards.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| pools | uint256[] | Array of pool ids (uint256) to add to the set of pools to migrate.✨ AI |
Recover assets from multiple pools in a single batched transaction.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| pools | uint256[] | Array of pool identifiers to recover assets from, processed in order.✨ AI |
Batch-update migration settings for the specified pools in a single transaction.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| pools | uint256[] | Array of pool identifiers to update; each element is a pool id (uint256).✨ AI |
Toggle checking for backup allocation points in the migration helper.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _status | bool | True to enable checking of backup allocation points, false to disable.✨ AI |
Permanently disables the contract and sends any remaining Ether to the designated recipient.✨ AI
Recover tokens associated with the given pool id and transfer them to the contract owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _pid | uint256 | Identifier of the pool to recover tokens from.✨ AI |
Remove one or more pools from the set scheduled for migration.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| pools | uint256[] | Array of pool IDs to remove from migration scheduling.✨ AI |
Renounce ownership of the contract, removing the owner and leaving the contract ownerless.✨ AI
Set the contract's pool id to the specified value.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _pid | uint256 | Pool identifier used to update the contract's stored pid.✨ AI |
Transfers contract ownership to the specified new owner address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | Address that will receive ownership of the contract.✨ AI |
Transfers ownership of the MasterChef V1 contract to the configured recipient.✨ AI
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |