Source Code
Latest 25 from a total of 1,267 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim Rewards | 426864671 | 2 days ago | IN | 0 ETH | 0.0000351 | ||||
| Claim Rewards | 423198175 | 13 days ago | IN | 0 ETH | 0.00003466 | ||||
| Claim Rewards | 409887811 | 51 days ago | IN | 0 ETH | 0.00000643 | ||||
| Claim Rewards | 408726041 | 55 days ago | IN | 0 ETH | 0.00001701 | ||||
| Claim Rewards | 405032461 | 65 days ago | IN | 0 ETH | 0.00002331 | ||||
| Claim Rewards | 399060172 | 83 days ago | IN | 0 ETH | 0.0000247 | ||||
| Claim Rewards | 398653663 | 84 days ago | IN | 0 ETH | 0.00002218 | ||||
| Claim Rewards | 398473523 | 84 days ago | IN | 0 ETH | 0.0000491 | ||||
| Claim Rewards | 398473342 | 84 days ago | IN | 0 ETH | 0.00006883 | ||||
| Claim Rewards | 397786689 | 86 days ago | IN | 0 ETH | 0.00024996 | ||||
| Claim Rewards | 395951333 | 92 days ago | IN | 0 ETH | 0.00001795 | ||||
| Claim Rewards | 395950940 | 92 days ago | IN | 0 ETH | 0.00002418 | ||||
| Claim Rewards | 395805372 | 92 days ago | IN | 0 ETH | 0.00002451 | ||||
| Claim Rewards | 394172154 | 97 days ago | IN | 0 ETH | 0.00000966 | ||||
| Claim Rewards | 393767639 | 98 days ago | IN | 0 ETH | 0.00002333 | ||||
| Claim Rewards | 392927141 | 100 days ago | IN | 0 ETH | 0.00004411 | ||||
| Claim Rewards | 392767607 | 101 days ago | IN | 0 ETH | 0.00000666 | ||||
| Claim Rewards | 392432580 | 102 days ago | IN | 0 ETH | 0.00001719 | ||||
| Claim Rewards | 392432465 | 102 days ago | IN | 0 ETH | 0.00002366 | ||||
| Claim Rewards | 392283281 | 102 days ago | IN | 0 ETH | 0.00000716 | ||||
| Claim Rewards | 391702722 | 104 days ago | IN | 0 ETH | 0.00002299 | ||||
| Claim Rewards | 390688484 | 107 days ago | IN | 0 ETH | 0.00001697 | ||||
| Claim Rewards | 390687944 | 107 days ago | IN | 0 ETH | 0.00002329 | ||||
| Claim Rewards | 390606771 | 107 days ago | IN | 0 ETH | 0.00001782 | ||||
| Claim Rewards | 390591628 | 107 days ago | IN | 0 ETH | 0.00002503 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BestPlutusTokenYieldDistributorV3
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import { Ownable2Step, Ownable } from "openzeppelin-contracts/contracts/access/Ownable2Step.sol";
import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { IBestPlutusToken } from "./interfaces/IPlutusBestToken.sol";
import { IWhitelist } from "./interfaces/IWhitelist.sol";
import { IBestPlutusTokenYieldDistributorV3 } from "./interfaces/IBestPlutusTokenYieldDistributorV3.sol";
import { SafeERC20 } from "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import { Math } from "openzeppelin-contracts/contracts/utils/math/Math.sol";
contract BestPlutusTokenYieldDistributorV3 is Ownable2Step, IBestPlutusTokenYieldDistributorV3 {
using SafeERC20 for IERC20;
using Math for uint256;
IBestPlutusToken public constant B_PLS_TOKEN = IBestPlutusToken(0x9666d8f9A54ba574d7df03DD56b55AE0d85d3a6E);
address public constant PLUTUS_ROUTER = 0xca24CF44c863F7709B7ea0c08FF88B994063684b;
uint256 public constant DIVISION_FACTOR = 1e18;
uint8 public constant MAX_SEQUENTIAL_CLAIMS = 20;
IWhitelist public whitelist;
address[] internal allYieldTokens;
uint256 public yieldDepositCount;
mapping(address user => uint256 last) public lastClaimedDepositId;
mapping(uint256 depositId => YieldDeposit) public depositDetails;
mapping(address yieldAsset => bool) public isYieldAsset;
constructor(address _owner) Ownable(_owner) {
if (_owner == address(0)) revert INVALID_ADDRESS();
}
function depositYield(address[] calldata yieldAssets, uint128[] calldata amounts) external onlyOwner {
if (yieldAssets.length != amounts.length) revert LENGTH_MISMATCH();
uint48 timestamp = uint48(block.timestamp);
for (uint256 i; i < yieldAssets.length; i++) {
uint256 depositId = ++yieldDepositCount;
address yieldAsset = yieldAssets[i];
uint128 amount = amounts[i];
if (!isYieldAsset[yieldAsset]) {
isYieldAsset[yieldAsset] = true;
allYieldTokens.push(yieldAsset);
}
if (yieldAsset == address(0)) revert INVALID_ADDRESS();
if (amount == 0) continue;
IERC20(yieldAsset).safeTransferFrom(msg.sender, address(this), amount);
depositDetails[depositId] =
YieldDeposit({ yieldAmount: amount, yieldAsset: yieldAsset, timestamp: timestamp });
emit YieldDeposited(msg.sender, yieldAsset, amount, timestamp);
}
}
function claimRewards() public {
_isEligibleSender();
uint256 last = lastClaimedDepositId[msg.sender];
uint256 depositId = yieldDepositCount;
if (last == depositId) revert NO_CLAIMABLE_REWARDS();
if (depositId - last > MAX_SEQUENTIAL_CLAIMS) depositId = last + MAX_SEQUENTIAL_CLAIMS;
lastClaimedDepositId[msg.sender] = depositId;
for (uint256 i = last + 1; i <= depositId; i++) {
YieldDeposit memory deposit = depositDetails[i];
uint256 totalSupply = B_PLS_TOKEN.totalSupplyAtTimepoint(deposit.timestamp);
uint256 userBalance = B_PLS_TOKEN.balanceOfAtTimepoint(msg.sender, deposit.timestamp);
uint256 rewardShare = userBalance.mulDiv(deposit.yieldAmount, totalSupply, Math.Rounding.Floor);
if (rewardShare != 0) IERC20(deposit.yieldAsset).safeTransfer(msg.sender, rewardShare);
}
}
function pendingRewards(address user) public view returns (Rewards[] memory) {
uint256 last = lastClaimedDepositId[user];
uint256 depositId = yieldDepositCount;
Rewards[] memory rewards;
// No pending rewards if no new deposits
if (last == depositId) return rewards;
rewards = new Rewards[](depositId - last);
uint256 uniqueRewardsCount;
// Iterate over each deposit from last claimed to current depositId
for (uint256 i = last + 1; i <= depositId; i++) {
YieldDeposit memory deposit = depositDetails[i];
uint256 totalSupply = B_PLS_TOKEN.totalSupplyAtTimepoint(deposit.timestamp);
uint256 userBalance = B_PLS_TOKEN.balanceOfAtTimepoint(user, deposit.timestamp);
uint256 rewardShare = userBalance.mulDiv(deposit.yieldAmount, totalSupply, Math.Rounding.Floor);
if (rewardShare == 0) continue;
if (i == last + 1) {
///@dev add a new reward asset
rewards[uniqueRewardsCount] = Rewards({ yieldAsset: deposit.yieldAsset, amount: rewardShare });
uniqueRewardsCount++;
} else {
for (uint256 j; j < rewards.length; j++) {
if (rewards[j].yieldAsset == deposit.yieldAsset) {
rewards[j].amount += rewardShare;
break;
}
if (j == rewards.length - 1) {
///@dev add a new reward asset
rewards[uniqueRewardsCount] = Rewards({ yieldAsset: deposit.yieldAsset, amount: rewardShare });
uniqueRewardsCount++;
}
}
}
}
Rewards[] memory uniqueRewards = new Rewards[](uniqueRewardsCount);
uint256 k;
for (uint256 i; i < rewards.length; i++) {
if (rewards[i].yieldAsset != address(0)) {
uniqueRewards[k] = rewards[i];
k++;
}
}
return uniqueRewards;
}
function getAllYieldTokens() external view returns (address[] memory) {
return allYieldTokens;
}
function retrieve(address token, uint256 amount) external onlyOwner {
address _owner = msg.sender;
uint256 balance = address(this).balance;
if (balance != 0) {
(bool success,) = payable(_owner).call{ value: balance }("");
if (!success) revert FAILED_TRANSFER();
}
IERC20(token).safeTransfer(_owner, amount);
}
function setWhitelist(address _whitelist) external onlyOwner {
whitelist = IWhitelist(_whitelist);
}
function _isEligibleSender() private view {
if (msg.sender != tx.origin && !whitelist.isWhitelisted(msg.sender)) revert UNAUTHORIZED();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}//SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IBestPlutusToken {
function getCheckpointers() external view returns (address[] memory);
function totalSupply() external view returns (uint256 _totalSupply);
function totalSupplyAtTimepoint(uint48 timepoint) external view returns (uint256 _totalSupply);
function balanceOf(address account) external view returns (uint256 _balance);
function balanceOfAtTimepoint(address account, uint48 timepoint) external view returns (uint256 _balance);
error FAILED(string reason);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IWhitelist {
function isWhitelisted(address) external view returns (bool);
function whitelistAdd(address _addr) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IBestPlutusTokenYieldDistributorV3 {
struct Rewards {
address yieldAsset;
uint256 amount;
}
struct YieldDeposit {
uint256 yieldAmount;
address yieldAsset;
uint48 timestamp;
}
event YieldDeposited(address indexed user, address indexed yieldAsset, uint256 amount, uint48 timestamp);
error INVALID_ADDRESS();
error LENGTH_MISMATCH();
error UNAUTHORIZED();
error NO_CLAIMABLE_REWARDS();
error FAILED_TRANSFER();
function depositYield(address[] calldata yieldAssets, uint128[] calldata amounts) external;
function pendingRewards(address user) external view returns (Rewards[] memory);
function getAllYieldTokens() external view returns (address[] memory);
function retrieve(address token, uint256 amount) external;
function setWhitelist(address _whitelist) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FAILED_TRANSFER","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"INVALID_ADDRESS","type":"error"},{"inputs":[],"name":"LENGTH_MISMATCH","type":"error"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[],"name":"NO_CLAIMABLE_REWARDS","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"UNAUTHORIZED","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"yieldAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint48","name":"timestamp","type":"uint48"}],"name":"YieldDeposited","type":"event"},{"inputs":[],"name":"B_PLS_TOKEN","outputs":[{"internalType":"contract IBestPlutusToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIVISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SEQUENTIAL_CLAIMS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PLUTUS_ROUTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"depositDetails","outputs":[{"internalType":"uint256","name":"yieldAmount","type":"uint256"},{"internalType":"address","name":"yieldAsset","type":"address"},{"internalType":"uint48","name":"timestamp","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"yieldAssets","type":"address[]"},{"internalType":"uint128[]","name":"amounts","type":"uint128[]"}],"name":"depositYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllYieldTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"yieldAsset","type":"address"}],"name":"isYieldAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"lastClaimedDepositId","outputs":[{"internalType":"uint256","name":"last","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingRewards","outputs":[{"components":[{"internalType":"address","name":"yieldAsset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBestPlutusTokenYieldDistributorV3.Rewards[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whitelist","type":"address"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelist","outputs":[{"internalType":"contract IWhitelist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldDepositCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506040516117a53803806117a583398101604081905261002f91610101565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61006781610095565b506001600160a01b03811661008f57604051635963709b60e01b815260040160405180910390fd5b50610131565b600180546001600160a01b03191690556100ae816100b1565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011357600080fd5b81516001600160a01b038116811461012a57600080fd5b9392505050565b611665806101406000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063854cff2f116100ad5780639c56bf6d116100715780639c56bf6d146102da578063c3a2a6651461030d578063e30c397814610320578063e9c2301614610331578063f2fde38b1461034057600080fd5b8063854cff2f1461022457806388f76ba3146102375780638da5cb5b1461024a57806393e59dc11461025b5780639aaab9541461026e57600080fd5b8063372500ab116100f4578063372500ab146101e65780633c54d6aa146101f05780634fbf8b04146101f9578063715018a61461021457806379ba50971461021c57600080fd5b806306e6b0b9146101315780630a63ac041461016957806327671b901461017e5780632805b3ff1461019857806331d7a262146101c6575b600080fd5b61014c739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e81565b6040516001600160a01b0390911681526020015b60405180910390f35b610171610353565b60405161016091906112ef565b610186601481565b60405160ff9091168152602001610160565b6101b86101a6366004611357565b60056020526000908152604090205481565b604051908152602001610160565b6101d96101d4366004611357565b6103b5565b6040516101609190611372565b6101ee610848565b005b6101b860045481565b61014c73ca24cf44c863f7709b7ea0c08ff88b994063684b81565b6101ee610a6a565b6101ee610a7e565b6101ee610232366004611357565b610ac7565b6101ee61024536600461140b565b610af1565b6000546001600160a01b031661014c565b60025461014c906001600160a01b031681565b6102af61027c36600461147c565b600660205260009081526040902080546001909101546001600160a01b03811690600160a01b900465ffffffffffff1683565b604080519384526001600160a01b03909216602084015265ffffffffffff1690820152606001610160565b6102fd6102e8366004611357565b60076020526000908152604090205460ff1681565b6040519015158152602001610160565b6101ee61031b366004611495565b610d3a565b6001546001600160a01b031661014c565b6101b8670de0b6b3a764000081565b6101ee61034e366004611357565b610dda565b606060038054806020026020016040519081016040528092919081815260200182805480156103ab57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161038d575b5050505050905090565b6001600160a01b03811660009081526005602052604090205460045460609190828183036103e557949350505050565b6103ef83836114d5565b67ffffffffffffffff811115610407576104076114e8565b60405190808252806020026020018201604052801561044c57816020015b60408051808201909152600080825260208201528152602001906001900390816104255790505b50905060008061045d8560016114fe565b90505b8381116107455760008181526006602090815260408083208151606081018352815481526001909101546001600160a01b03811693820193909352600160a01b90920465ffffffffffff168282018190529051637b12ef1d60e01b81526004810191909152909190739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90637b12ef1d90602401602060405180830381865afa158015610504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105289190611511565b6040838101519051636be3e95b60e01b81526001600160a01b038c16600482015265ffffffffffff9091166024820152909150600090739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90636be3e95b90604401602060405180830381865afa15801561059a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105be9190611511565b83519091506000906105d39083908584610e4b565b9050806000036105e65750505050610733565b6105f18960016114fe565b850361064957604051806040016040528085602001516001600160a01b031681526020018281525087878151811061062b5761062b61152a565b6020026020010181905250858061064190611540565b96505061072e565b60005b875181101561072c5784602001516001600160a01b03168882815181106106755761067561152a565b6020026020010151600001516001600160a01b0316036106c257818882815181106106a2576106a261152a565b60200260200101516020018181516106ba91906114fe565b90525061072c565b600188516106d091906114d5565b810361072457604051806040016040528086602001516001600160a01b031681526020018381525088888151811061070a5761070a61152a565b6020026020010181905250868061072090611540565b9750505b60010161064c565b505b505050505b8061073d81611540565b915050610460565b5060008167ffffffffffffffff811115610761576107616114e8565b6040519080825280602002602001820160405280156107a657816020015b604080518082019091526000808252602082015281526020019060019003908161077f5790505b5090506000805b845181101561083b5760006001600160a01b03168582815181106107d3576107d361152a565b6020026020010151600001516001600160a01b031614610833578481815181106107ff576107ff61152a565b60200260200101518383815181106108195761081961152a565b6020026020010181905250818061082f90611540565b9250505b6001016107ad565b5090979650505050505050565b610850610e9c565b33600090815260056020526040902054600454808203610883576040516315b1d94d60e11b815260040160405180910390fd5b601461088f83836114d5565b11156108a3576108a06014836114fe565b90505b3360009081526005602052604081208290556108c08360016114fe565b90505b818111610a655760008181526006602090815260408083208151606081018352815481526001909101546001600160a01b03811693820193909352600160a01b90920465ffffffffffff168282018190529051637b12ef1d60e01b81526004810191909152909190739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90637b12ef1d90602401602060405180830381865afa158015610967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098b9190611511565b6040838101519051636be3e95b60e01b815233600482015265ffffffffffff9091166024820152909150600090739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90636be3e95b90604401602060405180830381865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a189190611511565b8351909150600090610a2d9083908584610e4b565b90508015610a4e576020840151610a4e906001600160a01b03163383610f33565b505050508080610a5d90611540565b9150506108c3565b505050565b610a72610f92565b610a7c6000610fbf565b565b60015433906001600160a01b03168114610abb5760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610ac481610fbf565b50565b610acf610f92565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610af9610f92565b828114610b195760405163899ef10d60e01b815260040160405180910390fd5b4260005b84811015610d32576000600460008154610b3690611540565b918290555090506000878784818110610b5157610b5161152a565b9050602002016020810190610b669190611357565b90506000868685818110610b7c57610b7c61152a565b9050602002016020810190610b919190611559565b6001600160a01b03831660009081526007602052604090205490915060ff16610c1a576001600160a01b0382166000818152600760205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555b6001600160a01b038216610c4157604051635963709b60e01b815260040160405180910390fd5b806001600160801b0316600003610c5a57505050610d2a565b610c786001600160a01b03831633306001600160801b038516610fd8565b604080516060810182526001600160801b0383168082526001600160a01b03858116602080850182815265ffffffffffff8c811687890181815260008d8152600686528a9020985189559251600190980180549351909216600160a01b026001600160d01b0319909316979095169690961717909455845192835292820152909133917f0deeba61a9db351a865239c2e49980f24571f3c5d837b032aa46cec91a1503ed910160405180910390a35050505b600101610b1d565b505050505050565b610d42610f92565b33478015610dc0576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d97576040519150601f19603f3d011682016040523d82523d6000602084013e610d9c565b606091505b5050905080610dbe576040516356434fe960e01b815260040160405180910390fd5b505b610dd46001600160a01b0385168385610f33565b50505050565b610de2610f92565b600180546001600160a01b0383166001600160a01b03199091168117909155610e136000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600080610e59868686611011565b9050610e64836110d6565b8015610e80575060008480610e7b57610e7b611582565b868809115b15610e9357610e906001826114fe565b90505b95945050505050565b333214801590610f155750600254604051633af32abf60e01b81523360048201526001600160a01b0390911690633af32abf90602401602060405180830381865afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611598565b155b15610a7c5760405163075fd2b160e01b815260040160405180910390fd5b6040516001600160a01b03838116602483015260448201839052610a6591859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611103565b6000546001600160a01b03163314610a7c5760405163118cdaa760e01b8152336004820152602401610ab2565b600180546001600160a01b0319169055610ac481611166565b6040516001600160a01b038481166024830152838116604483015260648201839052610dd49186918216906323b872dd90608401610f60565b60008383028160001985870982811083820303915050806000036110485783828161103e5761103e611582565b04925050506110cf565b8084116110685760405163227bc15360e01b815260040160405180910390fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150505b9392505050565b600060028260038111156110ec576110ec6115ba565b6110f691906115d0565b60ff166001149050919050565b60006111186001600160a01b038416836111b6565b9050805160001415801561113d57508080602001905181019061113b9190611598565b155b15610a6557604051635274afe760e01b81526001600160a01b0384166004820152602401610ab2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606111c4838360006111cd565b90505b92915050565b6060814710156111f25760405163cd78605960e01b8152306004820152602401610ab2565b600080856001600160a01b0316848660405161120e9190611600565b60006040518083038185875af1925050503d806000811461124b576040519150601f19603f3d011682016040523d82523d6000602084013e611250565b606091505b509150915061126086838361126a565b9695505050505050565b60608261127f5761127a826112c6565b6110cf565b815115801561129657506001600160a01b0384163b155b156112bf57604051639996b31560e01b81526001600160a01b0385166004820152602401610ab2565b50806110cf565b8051156112d65780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b602080825282518282018190526000918401906040840190835b818110156113305783516001600160a01b0316835260209384019390920191600101611309565b509095945050505050565b80356001600160a01b038116811461135257600080fd5b919050565b60006020828403121561136957600080fd5b6111c48261133b565b602080825282518282018190526000918401906040840190835b8181101561133057835180516001600160a01b03168452602090810151818501529093019260409092019160010161138c565b60008083601f8401126113d157600080fd5b50813567ffffffffffffffff8111156113e957600080fd5b6020830191508360208260051b850101111561140457600080fd5b9250929050565b6000806000806040858703121561142157600080fd5b843567ffffffffffffffff81111561143857600080fd5b611444878288016113bf565b909550935050602085013567ffffffffffffffff81111561146457600080fd5b611470878288016113bf565b95989497509550505050565b60006020828403121561148e57600080fd5b5035919050565b600080604083850312156114a857600080fd5b6114b18361133b565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b818103818111156111c7576111c76114bf565b634e487b7160e01b600052604160045260246000fd5b808201808211156111c7576111c76114bf565b60006020828403121561152357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060018201611552576115526114bf565b5060010190565b60006020828403121561156b57600080fd5b81356001600160801b03811681146110cf57600080fd5b634e487b7160e01b600052601260045260246000fd5b6000602082840312156115aa57600080fd5b815180151581146110cf57600080fd5b634e487b7160e01b600052602160045260246000fd5b600060ff8316806115f157634e487b7160e01b600052601260045260246000fd5b8060ff84160691505092915050565b6000825160005b818110156116215760208186018101518583015201611607565b50600092019182525091905056fea2646970667358221220cfcf6dc5f2dc489c43d59ccd7bd0a311fa17759ce7763f8cf293311aa08f4d5664736f6c634300081c0033000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063854cff2f116100ad5780639c56bf6d116100715780639c56bf6d146102da578063c3a2a6651461030d578063e30c397814610320578063e9c2301614610331578063f2fde38b1461034057600080fd5b8063854cff2f1461022457806388f76ba3146102375780638da5cb5b1461024a57806393e59dc11461025b5780639aaab9541461026e57600080fd5b8063372500ab116100f4578063372500ab146101e65780633c54d6aa146101f05780634fbf8b04146101f9578063715018a61461021457806379ba50971461021c57600080fd5b806306e6b0b9146101315780630a63ac041461016957806327671b901461017e5780632805b3ff1461019857806331d7a262146101c6575b600080fd5b61014c739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e81565b6040516001600160a01b0390911681526020015b60405180910390f35b610171610353565b60405161016091906112ef565b610186601481565b60405160ff9091168152602001610160565b6101b86101a6366004611357565b60056020526000908152604090205481565b604051908152602001610160565b6101d96101d4366004611357565b6103b5565b6040516101609190611372565b6101ee610848565b005b6101b860045481565b61014c73ca24cf44c863f7709b7ea0c08ff88b994063684b81565b6101ee610a6a565b6101ee610a7e565b6101ee610232366004611357565b610ac7565b6101ee61024536600461140b565b610af1565b6000546001600160a01b031661014c565b60025461014c906001600160a01b031681565b6102af61027c36600461147c565b600660205260009081526040902080546001909101546001600160a01b03811690600160a01b900465ffffffffffff1683565b604080519384526001600160a01b03909216602084015265ffffffffffff1690820152606001610160565b6102fd6102e8366004611357565b60076020526000908152604090205460ff1681565b6040519015158152602001610160565b6101ee61031b366004611495565b610d3a565b6001546001600160a01b031661014c565b6101b8670de0b6b3a764000081565b6101ee61034e366004611357565b610dda565b606060038054806020026020016040519081016040528092919081815260200182805480156103ab57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161038d575b5050505050905090565b6001600160a01b03811660009081526005602052604090205460045460609190828183036103e557949350505050565b6103ef83836114d5565b67ffffffffffffffff811115610407576104076114e8565b60405190808252806020026020018201604052801561044c57816020015b60408051808201909152600080825260208201528152602001906001900390816104255790505b50905060008061045d8560016114fe565b90505b8381116107455760008181526006602090815260408083208151606081018352815481526001909101546001600160a01b03811693820193909352600160a01b90920465ffffffffffff168282018190529051637b12ef1d60e01b81526004810191909152909190739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90637b12ef1d90602401602060405180830381865afa158015610504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105289190611511565b6040838101519051636be3e95b60e01b81526001600160a01b038c16600482015265ffffffffffff9091166024820152909150600090739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90636be3e95b90604401602060405180830381865afa15801561059a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105be9190611511565b83519091506000906105d39083908584610e4b565b9050806000036105e65750505050610733565b6105f18960016114fe565b850361064957604051806040016040528085602001516001600160a01b031681526020018281525087878151811061062b5761062b61152a565b6020026020010181905250858061064190611540565b96505061072e565b60005b875181101561072c5784602001516001600160a01b03168882815181106106755761067561152a565b6020026020010151600001516001600160a01b0316036106c257818882815181106106a2576106a261152a565b60200260200101516020018181516106ba91906114fe565b90525061072c565b600188516106d091906114d5565b810361072457604051806040016040528086602001516001600160a01b031681526020018381525088888151811061070a5761070a61152a565b6020026020010181905250868061072090611540565b9750505b60010161064c565b505b505050505b8061073d81611540565b915050610460565b5060008167ffffffffffffffff811115610761576107616114e8565b6040519080825280602002602001820160405280156107a657816020015b604080518082019091526000808252602082015281526020019060019003908161077f5790505b5090506000805b845181101561083b5760006001600160a01b03168582815181106107d3576107d361152a565b6020026020010151600001516001600160a01b031614610833578481815181106107ff576107ff61152a565b60200260200101518383815181106108195761081961152a565b6020026020010181905250818061082f90611540565b9250505b6001016107ad565b5090979650505050505050565b610850610e9c565b33600090815260056020526040902054600454808203610883576040516315b1d94d60e11b815260040160405180910390fd5b601461088f83836114d5565b11156108a3576108a06014836114fe565b90505b3360009081526005602052604081208290556108c08360016114fe565b90505b818111610a655760008181526006602090815260408083208151606081018352815481526001909101546001600160a01b03811693820193909352600160a01b90920465ffffffffffff168282018190529051637b12ef1d60e01b81526004810191909152909190739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90637b12ef1d90602401602060405180830381865afa158015610967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098b9190611511565b6040838101519051636be3e95b60e01b815233600482015265ffffffffffff9091166024820152909150600090739666d8f9a54ba574d7df03dd56b55ae0d85d3a6e90636be3e95b90604401602060405180830381865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a189190611511565b8351909150600090610a2d9083908584610e4b565b90508015610a4e576020840151610a4e906001600160a01b03163383610f33565b505050508080610a5d90611540565b9150506108c3565b505050565b610a72610f92565b610a7c6000610fbf565b565b60015433906001600160a01b03168114610abb5760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610ac481610fbf565b50565b610acf610f92565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610af9610f92565b828114610b195760405163899ef10d60e01b815260040160405180910390fd5b4260005b84811015610d32576000600460008154610b3690611540565b918290555090506000878784818110610b5157610b5161152a565b9050602002016020810190610b669190611357565b90506000868685818110610b7c57610b7c61152a565b9050602002016020810190610b919190611559565b6001600160a01b03831660009081526007602052604090205490915060ff16610c1a576001600160a01b0382166000818152600760205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555b6001600160a01b038216610c4157604051635963709b60e01b815260040160405180910390fd5b806001600160801b0316600003610c5a57505050610d2a565b610c786001600160a01b03831633306001600160801b038516610fd8565b604080516060810182526001600160801b0383168082526001600160a01b03858116602080850182815265ffffffffffff8c811687890181815260008d8152600686528a9020985189559251600190980180549351909216600160a01b026001600160d01b0319909316979095169690961717909455845192835292820152909133917f0deeba61a9db351a865239c2e49980f24571f3c5d837b032aa46cec91a1503ed910160405180910390a35050505b600101610b1d565b505050505050565b610d42610f92565b33478015610dc0576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d97576040519150601f19603f3d011682016040523d82523d6000602084013e610d9c565b606091505b5050905080610dbe576040516356434fe960e01b815260040160405180910390fd5b505b610dd46001600160a01b0385168385610f33565b50505050565b610de2610f92565b600180546001600160a01b0383166001600160a01b03199091168117909155610e136000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600080610e59868686611011565b9050610e64836110d6565b8015610e80575060008480610e7b57610e7b611582565b868809115b15610e9357610e906001826114fe565b90505b95945050505050565b333214801590610f155750600254604051633af32abf60e01b81523360048201526001600160a01b0390911690633af32abf90602401602060405180830381865afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611598565b155b15610a7c5760405163075fd2b160e01b815260040160405180910390fd5b6040516001600160a01b03838116602483015260448201839052610a6591859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611103565b6000546001600160a01b03163314610a7c5760405163118cdaa760e01b8152336004820152602401610ab2565b600180546001600160a01b0319169055610ac481611166565b6040516001600160a01b038481166024830152838116604483015260648201839052610dd49186918216906323b872dd90608401610f60565b60008383028160001985870982811083820303915050806000036110485783828161103e5761103e611582565b04925050506110cf565b8084116110685760405163227bc15360e01b815260040160405180910390fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150505b9392505050565b600060028260038111156110ec576110ec6115ba565b6110f691906115d0565b60ff166001149050919050565b60006111186001600160a01b038416836111b6565b9050805160001415801561113d57508080602001905181019061113b9190611598565b155b15610a6557604051635274afe760e01b81526001600160a01b0384166004820152602401610ab2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606111c4838360006111cd565b90505b92915050565b6060814710156111f25760405163cd78605960e01b8152306004820152602401610ab2565b600080856001600160a01b0316848660405161120e9190611600565b60006040518083038185875af1925050503d806000811461124b576040519150601f19603f3d011682016040523d82523d6000602084013e611250565b606091505b509150915061126086838361126a565b9695505050505050565b60608261127f5761127a826112c6565b6110cf565b815115801561129657506001600160a01b0384163b155b156112bf57604051639996b31560e01b81526001600160a01b0385166004820152602401610ab2565b50806110cf565b8051156112d65780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b602080825282518282018190526000918401906040840190835b818110156113305783516001600160a01b0316835260209384019390920191600101611309565b509095945050505050565b80356001600160a01b038116811461135257600080fd5b919050565b60006020828403121561136957600080fd5b6111c48261133b565b602080825282518282018190526000918401906040840190835b8181101561133057835180516001600160a01b03168452602090810151818501529093019260409092019160010161138c565b60008083601f8401126113d157600080fd5b50813567ffffffffffffffff8111156113e957600080fd5b6020830191508360208260051b850101111561140457600080fd5b9250929050565b6000806000806040858703121561142157600080fd5b843567ffffffffffffffff81111561143857600080fd5b611444878288016113bf565b909550935050602085013567ffffffffffffffff81111561146457600080fd5b611470878288016113bf565b95989497509550505050565b60006020828403121561148e57600080fd5b5035919050565b600080604083850312156114a857600080fd5b6114b18361133b565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b818103818111156111c7576111c76114bf565b634e487b7160e01b600052604160045260246000fd5b808201808211156111c7576111c76114bf565b60006020828403121561152357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060018201611552576115526114bf565b5060010190565b60006020828403121561156b57600080fd5b81356001600160801b03811681146110cf57600080fd5b634e487b7160e01b600052601260045260246000fd5b6000602082840312156115aa57600080fd5b815180151581146110cf57600080fd5b634e487b7160e01b600052602160045260246000fd5b600060ff8316806115f157634e487b7160e01b600052601260045260246000fd5b8060ff84160691505092915050565b6000825160005b818110156116215760208186018101518583015201611607565b50600092019182525091905056fea2646970667358221220cfcf6dc5f2dc489c43d59ccd7bd0a311fa17759ce7763f8cf293311aa08f4d5664736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
-----Decoded View---------------
Arg [0] : _owner (address): 0xa5c1c5a67Ba16430547FEA9D608Ef81119bE1876
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$6,873.54
Net Worth in ETH
2.998948
Token Allocations
PLS
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $0.009452 | 727,204.254 | $6,873.54 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.