Rise In Logo

Learn everything about Stellar

Submit Your First Stellar Homework

In this homework, we will be adding transfer, transfer_from, burn and burn_from functions to our simple token smart contract that we have developed in previous lessons.

Steps

Make sure that all functions must be added to the contract.rs file.

  • Complete the transfer function
  • Transfer amount of tokens from from address to to address.
  • Check if there is sufficient balance during the transfer.
  • Complete the transfer_from function
  • Transfer amount of tokens from from address to to address.
  • This operation should check if the from address has given permission to the to address to make the transfer.
  • Complete the burn function
  • Burn amount of tokens from from address.
  • Check if there is sufficient balance during the burn operation.
  • Complete the burn_from function
  • Burn amount of tokens from from address to to address.
  • This operation should check if the from address has given permission to the to address to burn the tokens.

Project

Comments

You need to enroll in the course to be able to comment!

Stay in the know

Never miss updates on new programs and opportunities.

Rise In Logo

Rise together in web3!

Disclaimer: The information, programs, and events provided on https://risein.com is strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice, nor do we make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://risein.com disclaims any responsibility for financial decisions made by users based on the information provided here.