Skip to content

Conversation

@Voorsie
Copy link

@Voorsie Voorsie commented Apr 10, 2022

This proxy contract can be used for the CollabLand bot in Discord to measure both normal and staked OKLG balance and optionally factor in NFT boosters


//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the interface IERC20.sol here instead of the contract? will save on gas.

address public OKLGStakingContract;
bool public factorNFTBoost = false;

modifier onlyOwner() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine to specify the modifier, but we could use Ownable.sol as well to support the other functions like transferOwnership among other things in the future if need be.

OKLGContract = _OKLGContract;
}

function setOKLGStakingContract(address _OKLGStakingContract)
Copy link
Member

@whatl3y whatl3y Apr 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, but let's keep parameters camel case instead of title case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants