MigrationHelper

BNB Smart Chain 瀏覽鏈

0x6e85689f055b6894803d5135981f7b108c9dafd5

Solidity v0.6.12+commit.27d51765

🤖
透過你的 AI 查詢此合約
參考: 0x6e85689f055b6894803d5135981f7b108c9dafd5
範例提示詞: "Tell me the current state of bnb/0x6e85689f055b6894803d5135981f7b108c9dafd5"
還沒有接入 AI?→ mcp.smarts.md · 瀏覽鏈

管理與風險

誰能修改規則?

Block #103,450,274

Detected ownable controls from the verified ABI.

Ownable

當前控制

Owner
0xecc90d54b10add1ab746abe7e83abe178b72aa9e ↗ BscScan → smarts

概覽

讀取函式
8
寫入函式
11
事件
1

讀取函式

Block #103,450,275 · just now
MasterChefV1Addr() view → 0x73feaa1ee314f8c655e354234017be2193c9e24e

Get the MasterChef V1 contract address.✨ AI

回傳值

名稱 類型 描述
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

回傳值

名稱 類型 描述
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

回傳值

名稱 類型 描述
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

回傳值

名稱 類型 描述
bool True if backup allocation points are enabled, false otherwise.✨ AI
localPools(uint256) view

Return the local pool identifier at the given index.✨ AI

參數

名稱 類型 描述
uint256

回傳值

名稱 類型 描述
uint256 The uint256 identifier of the local pool at the specified index.✨ AI
owner() view → 0xecc90d54b10add1ab746abe7e83abe178b72aa9e

Returns the address of the contract owner.✨ AI

開發者: Returns the address of the current owner.

回傳值

名稱 類型 描述
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

參數

名稱 類型 描述
uint256

回傳值

名稱 類型 描述
uint256 Previous allocation points for the specified pool index.✨ AI
totalAllocPoints() view → 126,357

Returns the total allocation points across all pools.✨ AI

回傳值

名稱 類型 描述
uint256 Total allocation point weight used to calculate each pool's share of rewards.✨ AI

寫入函式

addPoolToMigrate(pools: uint256[]) nonpayable

Add multiple pool ids to the migration list so the helper will migrate their rewards.✨ AI

參數

名稱 類型 描述
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

參數

名稱 類型 描述
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

參數

名稱 類型 描述
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

參數

名稱 類型 描述
_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

參數

名稱 類型 描述
_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

參數

名稱 類型 描述
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

開發者: 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

參數

名稱 類型 描述
_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

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

參數

名稱 類型 描述
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

事件

OwnershipTransferred(previousOwner: address, newOwner: address)
名稱 類型 已索引 描述
previousOwner address
newOwner address