Code Monkey home page Code Monkey logo

erc721-staking's Introduction

GM, reader! Ever since I was young I enjoyed building. Back then it was Lego, now it's Smart Contracts on the Blockchain. Being a developer encompasses the thing I love the most: bringing my vision to reality, solving logic problems and generating value for the people around me.

As a Web3 developer, my mission is to leverage my deep understanding of smart contracts and Ethereum to help turn innovative ideas into reality and make a positive impact on people's lives all over the world. I am a firm believer that Decentralisation through Blockchain technology represents the next step in humanity's digital evolution and I am committed to using my problem-solving skills to advance this mission.

I now carry out my personal mission at Nethermind. Our mission is to deliver cutting-edge research & development to allow accessible, transparent, borderless economy and governance.

erc721-staking's People

Contributors

andreitoma8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

erc721-staking's Issues

Why do you create three smart-contracts instead of two?

Why do you think it's better to separate token and staking smart-contracts? Is there any sense, but code segregation? We could combine these two smart-contracts into single one. If it wasn't blockchain development I would separate them into two microservices, but when it comes to paying for deployment, it's cheaper to have one sc.

Trying to understand how the rewardsToken safeTransfer work

Hello!

Thank you for making these contracts available for free.

I have a question that that it'd be really helpful to get an explanation from.

In the staking contract, when calling rewardsToken.safeTransfer(msg.sender, rewards);, I'm assuming the msg.sender in the ERC20 contract is going to be the ERC721Staking contract that's calling it

rewardsToken.safeTransfer(msg.sender, rewards);

So basically it'll call _transfer(**ERC721Staking Address**, **Rewardee Address**, **amount**); in the ERC20 contract.

So what I'm trying to understand is how does the ERC721Staking have any tokens to start with to transfer to the rewardee ?

The rewards token constructor

_mint(msg.sender, 1000000 * 10**decimals());

will mint to the msg.sender but that's the address that deploys the contract and not the ERC721Staking contract.

Apologies if this is a silly question, I am a newbie to smart contract development :)

Thank you!

existing nft contract?

Is there a way to use an existing nft smart contract?

Have tried renaming nft.address in the deploy script, passing the contract address in constructor (wont let me verify with constructor arguments) but it doesnt seem to like anything except the contract deployed alongside the token and staking.

Where would I configure this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.