Source Code
Overview
MON Balance
MON Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BuyBackStore
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
import "./Roles.sol";
/// @title BuyBackStore
/// @notice Persistent storage for BuyBack.sol
contract BuyBackStore is Roles {
// Constants
uint256 public constant BPS_DIVIDER = 10000;
uint256 public constant UNIT = 10 ** 18;
// Fee share for Buyback
uint256 public feeShare;
// Asset to balance
mapping(address => uint256) private assetsBalances;
uint256 public pinguBalance;
// BuyBack reward in bps
uint256 public buyBackReward;
// BuyBack paused state
bool public paused;
// @notice Initialize the BuyBackStore
/// @param rs The address of the RoleStore
function initialize(address rs) external initializer {
roleStore = RoleStore(rs);
_setGov(msg.sender);
pinguBalance = 0;
feeShare = 3500;
buyBackReward = 100;
paused = false;
}
/// @notice Set the fee share
/// @param _feeShare The fee share
function setFeeShare(uint256 _feeShare) external onlyGov {
require(_feeShare <= BPS_DIVIDER, "!feeShare");
feeShare = _feeShare;
}
/// @notice Set the buy back reward
/// @param _buyBackReward The buy back reward
function setBuyBackReward(uint256 _buyBackReward) external onlyGov {
require(_buyBackReward <= BPS_DIVIDER, "!reward");
buyBackReward = _buyBackReward;
}
/// @notice Set the paused state
/// @param _paused The paused state
function setPaused(bool _paused) external onlyGov {
paused = _paused;
}
/// @notice Increment the asset balance
/// @param asset The address of the asset
/// @param amount The amount of the asset
function incrementAssetBalance(
address asset,
uint256 amount
) external onlyContract {
assetsBalances[asset] += amount;
}
/// @notice Decrement the asset balance
/// @param asset The address of the asset
/// @param amount The amount of the asset
function decrementAssetBalance(
address asset,
uint256 amount
) external onlyContract {
assetsBalances[asset] = assetsBalances[asset] <= amount
? 0
: assetsBalances[asset] - amount;
}
/// @notice Reset the asset balance
/// @param asset The address of the asset
function resetAssetBalance(address asset) external onlyContract {
assetsBalances[asset] = 0;
}
/// @notice Increment the Pingu balance
/// @param amount The amount of the Pingu
function incrementPinguBalance(uint256 amount) external onlyContract {
pinguBalance += amount;
}
/// @notice Decrement the Pingu balance
/// @param amount The amount of the Pingu
function decrementPinguBalance(uint256 amount) external onlyContract {
pinguBalance = pinguBalance <= amount ? 0 : pinguBalance - amount;
}
/// @notice Reset the Pingu balance
function resetPinguBalance() external onlyContract {
pinguBalance = 0;
}
/// @notice Get the asset balance
/// @param asset The address of the asset
/// @return The balance of the asset
function getAssetBalance(address asset) external view returns (uint256) {
return assetsBalances[asset];
}
/// @notice Get the asset balances
/// @param assets The addresses of the assets
/// @return The balances of the assets array
function getAssetsBalances(
address[] memory assets
) external view returns (uint256[] memory) {
uint256 length = assets.length;
uint256[] memory balances = new uint256[](length);
for (uint256 i = 0; i < length; i++) {
balances[i] = assetsBalances[assets[i]];
}
return balances;
}
/// @notice Get the Pingu balance
/// @return The balance of the Pingu
function getPinguBalance() external view returns (uint256) {
return pinguBalance;
}
/// @notice Get the fee share
/// @return The fee share
function getFeeShare() external view returns (uint256) {
return feeShare;
}
/// @notice Get the buy back reward
/// @return The buy back reward
function getBuyBackReward() external view returns (uint256) {
return buyBackReward;
}
/// @notice Get the paused state
/// @return The paused state
function isPaused() external view returns (bool) {
return paused;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
import "./Governable.sol";
import "./RoleStore.sol";
/// @title Roles
/// @notice Role-based access control mechanism via onlyContract modifier
abstract contract Roles is Governable {
bytes32 internal constant CONTRACT_ROLE = keccak256("CONTRACT");
RoleStore public roleStore;
/// @dev Reverts if caller address has not the contract role
modifier onlyContract() {
require(roleStore.hasRole(msg.sender, CONTRACT_ROLE), "!contract-role");
_;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
/// @title Governable
/// @notice Basic access control mechanism, gov has access to certain functions
abstract contract Governable is Initializable {
address public gov;
event SetGov(address prevGov, address nextGov);
/// @dev Reverts if called by any account other than gov
modifier onlyGov() {
require(msg.sender == gov, "!gov");
_;
}
/// @notice Sets a new governance address
/// @dev Only callable by governance
function setGov(address _gov) external onlyGov {
_setGov(_gov);
}
/// @notice Sets a new governance address
/// @dev Internal function without access restriction
function _setGov(address _gov) internal {
require(_gov != address(0), "!zero-gov");
address prevGov = gov;
gov = _gov;
emit SetGov(prevGov, _gov);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
import "./EnumerableSet.sol";
import "./Governable.sol";
/**
* @title RoleStore
* @notice Role-based access control mechanism. Governance can grant and
* revoke roles dynamically via {grantRole} and {revokeRole}
*/
contract RoleStore is Governable {
// Libraries
using EnumerableSet for EnumerableSet.AddressSet;
using EnumerableSet for EnumerableSet.Bytes32Set;
event RoleGranted(
bytes32 indexed role,
address indexed account,
address indexed sender
);
event RoleRevoked(
bytes32 indexed role,
address indexed account,
address indexed sender
);
// Set of roles
EnumerableSet.Bytes32Set internal roles;
// Role -> address
mapping(bytes32 => EnumerableSet.AddressSet) internal roleMembers;
function initialize() external initializer {
_setGov(msg.sender);
}
/// @notice Grants `role` to `account`
/// @dev Only callable by governance
function grantRole(address account, bytes32 role) external onlyGov {
// add role if not already present
if (!roles.contains(role)) roles.add(role);
require(roleMembers[role].add(account));
emit RoleGranted(role, account, msg.sender);
}
/// @notice Revokes `role` from `account`
/// @dev Only callable by governance
function revokeRole(address account, bytes32 role) external onlyGov {
require(roleMembers[role].remove(account));
emit RoleRevoked(role, account, msg.sender);
// Remove role if it has no longer any members
if (roleMembers[role].length() == 0) {
roles.remove(role);
}
}
/// @notice Returns `true` if `account` has been granted `role`
function hasRole(
address account,
bytes32 role
) external view returns (bool) {
return roleMembers[role].contains(account);
}
/// @notice Returns number of roles
function getRoleCount() external view returns (uint256) {
return roles.length();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/Address.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized < type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Internal function that returns the initialized version. Returns `_initialized`
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Internal function that returns the initialized version. Returns `_initializing`
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity 0.8.17;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(
Set storage set,
bytes32 value
) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(
Set storage set,
uint256 index
) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(
Bytes32Set storage set,
bytes32 value
) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(
Bytes32Set storage set,
bytes32 value
) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(
Bytes32Set storage set,
bytes32 value
) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(
Bytes32Set storage set,
uint256 index
) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(
Bytes32Set storage set
) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(
AddressSet storage set,
address value
) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(
AddressSet storage set,
address value
) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(
AddressSet storage set,
address value
) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(
AddressSet storage set,
uint256 index
) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(
AddressSet storage set
) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(
UintSet storage set,
uint256 value
) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(
UintSet storage set,
uint256 value
) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(
UintSet storage set,
uint256 index
) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(
UintSet storage set
) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @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, it is bubbled up by this
* function (like regular Solidity function calls).
*
* 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.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @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`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
}
}
}{
"remappings": [
"@openzeppelin/=lib/openzeppelin-contracts/",
"chainlink/=node_modules/@chainlink/",
"pyth-sdk-solidity/=node_modules/@pythnetwork/pyth-sdk-solidity/",
"@uniswap/v2-periphery/=node_modules/@uniswap/v2-periphery/",
"@uniswap/v2-core/=node_modules/@uniswap/v2-core/",
"ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"viaIR": true
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevGov","type":"address"},{"indexed":false,"internalType":"address","name":"nextGov","type":"address"}],"name":"SetGov","type":"event"},{"inputs":[],"name":"BPS_DIVIDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decrementAssetBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decrementPinguBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getAssetBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"}],"name":"getAssetsBalances","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyBackReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPinguBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"incrementAssetBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"incrementPinguBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rs","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pinguBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"resetAssetBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetPinguBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roleStore","outputs":[{"internalType":"contract RoleStore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyBackReward","type":"uint256"}],"name":"setBuyBackReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feeShare","type":"uint256"}],"name":"setFeeShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080806040523461001657610cbf908161001c8239f35b600080fdfe608060408181526004908136101561001657600080fd5b60009283803560e01c9182630df56d61146109e2575050806312d43a51146109b657806316c38b3c146109705780632b7c4371146107545780634a4a7b04146109475780635373433f1461090f5780635c975abb146106545780636be54b9b146101fa5780636d6040cd1461078f5780637c4283bc1461077257806381d8bf5514610754578063836da2b71461069b5780639d8e217714610678578063af2624a11461039e578063b187bd2614610654578063b3cba4a2146105e7578063bd13963a14610557578063c4d66de8146103fc578063cfad57a2146103bd578063db4842641461039e578063dd16a6c614610333578063e51ae20a146102b0578063e7904f191461021d578063e9ade90e146101fa5763eca3a7f71461013957600080fd5b8291346101f65760203660031901126101f657610154610a7a565b600154835163ac4ab3fb60e01b81523393810193909352600080516020610c6a83398151915260248401526001600160a01b0392906020908290604490829087165afa9081156101ec57906101b09186916101be575b50610b2f565b168252600360205281205580f35b6101df915060203d81116101e5575b6101d78183610a95565b810190610b17565b386101aa565b503d6101cd565b84513d87823e3d90fd5b5050fd5b8382346102195781600319360112610219576020906002549051908152f35b5080fd5b5090346102ac57816003193601126102ac57610237610a7a565b600154835163ac4ab3fb60e01b81523393810193909352600080516020610c6a83398151915260248401526001600160a01b0392906020908290604490829087165afa80156101ec576102909186916101be5750610b2f565b168252600360205281206102a76024358254610b6c565b905580f35b8280fd5b5090346102ac5760203660031901126102ac57600154825163ac4ab3fb60e01b81523383820152600080516020610c6a833981519152602482015290602090829060449082906001600160a01b03165afa9081156103265761031a92935084916101be5750610b2f565b6102a781358254610b6c565b50505051903d90823e3d90fd5b5090346102ac5760203660031901126102ac5780359161036060018060a01b03855460101c163314610ae5565b612710831161037157505060055580f35b906020606492519162461bcd60e51b83528201526007602482015266085c995dd85c9960ca1b6044820152fd5b8382346102195781600319360112610219576020906005549051908152f35b83346103f95760203660031901126103f9576103f66103da610a7a565b6103f160018060a01b03845460101c163314610ae5565b610bc6565b80f35b80fd5b5090346102ac5760203660031901126102ac57610417610a7a565b9083549060ff8260081c16159283809461054a575b8015610533575b156104d95790859160ff19938560018683161785556104c8575b5060018060a01b03166bffffffffffffffffffffffff60a01b600154161760015561047733610bc6565b55610dac600255606460055560065416600655610492575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff19166101011783553861044d565b845162461bcd60e51b8152602081840152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156104335750600160ff841614610433565b50600160ff84161061042c565b50346102ac5760203660031901126102ac57600154815163ac4ab3fb60e01b81523381850152600080516020610c6a833981519152602482015283359291602090829060449082906001600160a01b03165afa9182156105de5750906105c39185916101be5750610b2f565b8154908082116105d557505081905580f35b6102a791610b8f565b513d86823e3d90fd5b5090346102ac5760203660031901126102ac5780359161061460018060a01b03855460101c163314610ae5565b612710831161062557505060025580f35b906020606492519162461bcd60e51b8352820152600960248201526821666565536861726560b81b6044820152fd5b83823461021957816003193601126102195760209060ff6006541690519015158152f35b83823461021957816003193601126102195760209051670de0b6b3a76400008152f35b50346102ac57806003193601126102ac576106b4610a7a565b916024359260018060a01b03916020836001541691604486518094819363ac4ab3fb60e01b83523390830152600080516020610c6a83398151915260248301525afa90811561074a579061070e9187916101be5750610b2f565b1691828452600360205280828520541115600014610737575082915b8352600360205282205580f35b6107449082852054610b8f565b9161072a565b84513d88823e3d90fd5b5090346102ac57826003193601126102ac5760209250549051908152f35b838234610219578160031936011261021957602090516127108152f35b50919034610219576020806003193601126102ac5781359267ffffffffffffffff84116103f957366023850112156103f957838301356107ce81610acd565b946107db87519687610a95565b8186528386016024809360051b8301019136831161090b579497969593948301905b8282106108da57505050835161081281610acd565b9261081f87519485610a95565b81845261082b82610acd565b8489019690601f1901368837855b83811061088057505050505083519485948186019282875251809352850193925b82811061086957505050500390f35b83518552869550938101939281019260010161085a565b97989697949695946001600160a01b0361089a8284610b9c565b5116865260038752898620546108b0828a610b9c565b5260001981146108c857600101989796949598610839565b634e487b7160e01b8652601183528486fd5b969795969395949381356001600160a01b03811681036109075781529497969593949088019088016107fd565b8580fd5b8480fd5b8382346102195760203660031901126102195760209181906001600160a01b03610937610a7a565b1681526003845220549051908152f35b83823461021957816003193601126102195760015490516001600160a01b039091168152602090f35b5050346102195760203660031901126102195735801515809103610219576109a560018060a01b03835460101c163314610ae5565b60ff80196006541691161760065580f35b8382346102195781600319360112610219579054905160109190911c6001600160a01b03168152602090f35b8484839234610a755783600319360112610a755760015463ac4ab3fb60e01b82523384830152600080516020610c6a8339815191526024830152602090829060449082906001600160a01b03165afa918215610a6c575090610a4a918491610a4e5750610b2f565b5580f35b610a66915060203d81116101e5576101d78183610a95565b856101aa565b513d85823e3d90fd5b505050fd5b600435906001600160a01b0382168203610a9057565b600080fd5b90601f8019910116810190811067ffffffffffffffff821117610ab757604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff8111610ab75760051b60200190565b15610aec57565b606460405162461bcd60e51b815260206004820152600460248201526310b3b7bb60e11b6044820152fd5b90816020910312610a9057518015158103610a905790565b15610b3657565b60405162461bcd60e51b815260206004820152600e60248201526d21636f6e74726163742d726f6c6560901b6044820152606490fd5b91908201809211610b7957565b634e487b7160e01b600052601160045260246000fd5b91908203918211610b7957565b8051821015610bb05760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03818116918215610c38576000805462010000600160b01b03198116601093841b62010000600160b01b031617909155604080519190921c909216825260208201929092527f53351836099c03ffc3b1727d8abd4b0222afa87d4ed76ae3102d51369ef7f7859190a1565b60405162461bcd60e51b815260206004820152600960248201526810bd32b93796b3b7bb60b91b6044820152606490fdfea66b7a3e6b19d24ccb6f717fc232a1bb0278a7f83f8e2211835fc4ed0fe69f19a2646970667358221220a1043dc6ee02d310b86a965b653c168769771eb4788416d841b717dcf7ea771364736f6c63430008110033
Deployed Bytecode
0x608060408181526004908136101561001657600080fd5b60009283803560e01c9182630df56d61146109e2575050806312d43a51146109b657806316c38b3c146109705780632b7c4371146107545780634a4a7b04146109475780635373433f1461090f5780635c975abb146106545780636be54b9b146101fa5780636d6040cd1461078f5780637c4283bc1461077257806381d8bf5514610754578063836da2b71461069b5780639d8e217714610678578063af2624a11461039e578063b187bd2614610654578063b3cba4a2146105e7578063bd13963a14610557578063c4d66de8146103fc578063cfad57a2146103bd578063db4842641461039e578063dd16a6c614610333578063e51ae20a146102b0578063e7904f191461021d578063e9ade90e146101fa5763eca3a7f71461013957600080fd5b8291346101f65760203660031901126101f657610154610a7a565b600154835163ac4ab3fb60e01b81523393810193909352600080516020610c6a83398151915260248401526001600160a01b0392906020908290604490829087165afa9081156101ec57906101b09186916101be575b50610b2f565b168252600360205281205580f35b6101df915060203d81116101e5575b6101d78183610a95565b810190610b17565b386101aa565b503d6101cd565b84513d87823e3d90fd5b5050fd5b8382346102195781600319360112610219576020906002549051908152f35b5080fd5b5090346102ac57816003193601126102ac57610237610a7a565b600154835163ac4ab3fb60e01b81523393810193909352600080516020610c6a83398151915260248401526001600160a01b0392906020908290604490829087165afa80156101ec576102909186916101be5750610b2f565b168252600360205281206102a76024358254610b6c565b905580f35b8280fd5b5090346102ac5760203660031901126102ac57600154825163ac4ab3fb60e01b81523383820152600080516020610c6a833981519152602482015290602090829060449082906001600160a01b03165afa9081156103265761031a92935084916101be5750610b2f565b6102a781358254610b6c565b50505051903d90823e3d90fd5b5090346102ac5760203660031901126102ac5780359161036060018060a01b03855460101c163314610ae5565b612710831161037157505060055580f35b906020606492519162461bcd60e51b83528201526007602482015266085c995dd85c9960ca1b6044820152fd5b8382346102195781600319360112610219576020906005549051908152f35b83346103f95760203660031901126103f9576103f66103da610a7a565b6103f160018060a01b03845460101c163314610ae5565b610bc6565b80f35b80fd5b5090346102ac5760203660031901126102ac57610417610a7a565b9083549060ff8260081c16159283809461054a575b8015610533575b156104d95790859160ff19938560018683161785556104c8575b5060018060a01b03166bffffffffffffffffffffffff60a01b600154161760015561047733610bc6565b55610dac600255606460055560065416600655610492575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff19166101011783553861044d565b845162461bcd60e51b8152602081840152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156104335750600160ff841614610433565b50600160ff84161061042c565b50346102ac5760203660031901126102ac57600154815163ac4ab3fb60e01b81523381850152600080516020610c6a833981519152602482015283359291602090829060449082906001600160a01b03165afa9182156105de5750906105c39185916101be5750610b2f565b8154908082116105d557505081905580f35b6102a791610b8f565b513d86823e3d90fd5b5090346102ac5760203660031901126102ac5780359161061460018060a01b03855460101c163314610ae5565b612710831161062557505060025580f35b906020606492519162461bcd60e51b8352820152600960248201526821666565536861726560b81b6044820152fd5b83823461021957816003193601126102195760209060ff6006541690519015158152f35b83823461021957816003193601126102195760209051670de0b6b3a76400008152f35b50346102ac57806003193601126102ac576106b4610a7a565b916024359260018060a01b03916020836001541691604486518094819363ac4ab3fb60e01b83523390830152600080516020610c6a83398151915260248301525afa90811561074a579061070e9187916101be5750610b2f565b1691828452600360205280828520541115600014610737575082915b8352600360205282205580f35b6107449082852054610b8f565b9161072a565b84513d88823e3d90fd5b5090346102ac57826003193601126102ac5760209250549051908152f35b838234610219578160031936011261021957602090516127108152f35b50919034610219576020806003193601126102ac5781359267ffffffffffffffff84116103f957366023850112156103f957838301356107ce81610acd565b946107db87519687610a95565b8186528386016024809360051b8301019136831161090b579497969593948301905b8282106108da57505050835161081281610acd565b9261081f87519485610a95565b81845261082b82610acd565b8489019690601f1901368837855b83811061088057505050505083519485948186019282875251809352850193925b82811061086957505050500390f35b83518552869550938101939281019260010161085a565b97989697949695946001600160a01b0361089a8284610b9c565b5116865260038752898620546108b0828a610b9c565b5260001981146108c857600101989796949598610839565b634e487b7160e01b8652601183528486fd5b969795969395949381356001600160a01b03811681036109075781529497969593949088019088016107fd565b8580fd5b8480fd5b8382346102195760203660031901126102195760209181906001600160a01b03610937610a7a565b1681526003845220549051908152f35b83823461021957816003193601126102195760015490516001600160a01b039091168152602090f35b5050346102195760203660031901126102195735801515809103610219576109a560018060a01b03835460101c163314610ae5565b60ff80196006541691161760065580f35b8382346102195781600319360112610219579054905160109190911c6001600160a01b03168152602090f35b8484839234610a755783600319360112610a755760015463ac4ab3fb60e01b82523384830152600080516020610c6a8339815191526024830152602090829060449082906001600160a01b03165afa918215610a6c575090610a4a918491610a4e5750610b2f565b5580f35b610a66915060203d81116101e5576101d78183610a95565b856101aa565b513d85823e3d90fd5b505050fd5b600435906001600160a01b0382168203610a9057565b600080fd5b90601f8019910116810190811067ffffffffffffffff821117610ab757604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff8111610ab75760051b60200190565b15610aec57565b606460405162461bcd60e51b815260206004820152600460248201526310b3b7bb60e11b6044820152fd5b90816020910312610a9057518015158103610a905790565b15610b3657565b60405162461bcd60e51b815260206004820152600e60248201526d21636f6e74726163742d726f6c6560901b6044820152606490fd5b91908201809211610b7957565b634e487b7160e01b600052601160045260246000fd5b91908203918211610b7957565b8051821015610bb05760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03818116918215610c38576000805462010000600160b01b03198116601093841b62010000600160b01b031617909155604080519190921c909216825260208201929092527f53351836099c03ffc3b1727d8abd4b0222afa87d4ed76ae3102d51369ef7f7859190a1565b60405162461bcd60e51b815260206004820152600960248201526810bd32b93796b3b7bb60b91b6044820152606490fdfea66b7a3e6b19d24ccb6f717fc232a1bb0278a7f83f8e2211835fc4ed0fe69f19a2646970667358221220a1043dc6ee02d310b86a965b653c168769771eb4788416d841b717dcf7ea771364736f6c63430008110033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in MON
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.