MigrationHelper

BNB Smart Chain

0x6e85689f055b6894803d5135981f7b108c9dafd5

Solidity v0.6.12+commit.27d51765

🤖
Query this contract from your AI
Reference: 0x6e85689f055b6894803d5135981f7b108c9dafd5
Sample prompt: “Tell me the current state of bnb/0x6e85689f055b6894803d5135981f7b108c9dafd5”
No AI wired up yet? → mcp.smarts.md

Admin & Risk

Who can change the rules?

Block #100,287,219

Detected ownable controls from the verified ABI.

Ownable

Current controls

Owner
0xecc90d54b10add1ab746abe7e83abe178b72aa9e ↗ BscScan → smarts

Overview

Read Functions
8
Write Functions
11
Events
1

Read Functions

Block #100,287,219 · just now
MasterChefV1Addr() view → 0x73feaa1ee314f8c655e354234017be2193c9e24e

Get the MasterChef V1 contract address.✨ AI

Returns

Name Type Description
address The address of the MasterChef V1 contract used by this helper.✨ AI
MasterChefV1OriginOwner() view → 0xa1f482dc58145ba2210bc21878ca34000e2e8fe4

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
MasterChefV2Pid() view → 526

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
isBackupAllocPoints() view → true

Indicates whether backup allocation points are enabled.✨ AI

Returns

Name Type Description
bool True if backup allocation points are enabled, false otherwise.✨ AI
localPools(uint256) view

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
owner() view → 0xecc90d54b10add1ab746abe7e83abe178b72aa9e

Returns the address of the contract owner.✨ AI

dev: Returns the address of the current owner.

Returns

Name Type Description
address The address currently set as the owner of this contract.✨ AI
prevAllocPoints(uint256) view

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
totalAllocPoints() view → 126,357

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

addPoolToMigrate(pools: uint256[]) nonpayable

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
batchRecover(pools: uint256[]) nonpayable

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
batchSet(pools: uint256[]) nonpayable

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
hasBackupAllocPoints(_status: bool) nonpayable

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
kill() nonpayable

Permanently disables the contract and sends any remaining Ether to the designated recipient.✨ AI

recover(_pid: uint256) nonpayable

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
removePoolToMigrate(pools: uint256[]) nonpayable

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
renounceOwnership() nonpayable

Renounce ownership of the contract, removing the owner and leaving the contract ownerless.✨ AI

dev: Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
set(_pid: uint256) nonpayable

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
transferOwnership(newOwner: address) nonpayable

Transfers contract ownership to the specified new owner address.✨ AI

dev: Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.

Parameters

Name Type Description
newOwner address Address that will receive ownership of the contract.✨ AI
transferOwnershipForMasterChefV1() nonpayable

Transfers ownership of the MasterChef V1 contract to the configured recipient.✨ AI

Events

OwnershipTransferred(previousOwner: address, newOwner: address)
Name Type Indexed Description
previousOwner address
newOwner address