Coro Tashi Docs
  • Getting Started
    • Introduction
    • What is CORO TASHI?
  • UNDERSTANDING CORO TASHI
    • How it Works
    • Client Side Flow
    • Challenges and Limitations
    • Core Features
    • Smart Contract Breakdown
    • Tokenomics – The Power Behind TBTC
    • TashiDŌ Algorithm
    • Revenue Model
    • Conclusion
  • How to Get Started
    • Getting Started with Coro Tashi
  • Create a web3 wallet
  • Claim - Tashi Tokens
  • Welcome to Coro Tashi
  • Product and Timeline
    • Product State
Powered by GitBook
On this page
  1. UNDERSTANDING CORO TASHI

Smart Contract Breakdown

PreviousCore FeaturesNextTokenomics – The Power Behind TBTC

Last updated 5 months ago

CtrlK

The Code of the Shōgun’s Vault

Forged in Solidity, unyielding as steel, this code governs those who pledge their TBTC. It is law, order, and the path to power.


The Gatekeeper (Deposit Mechanism)

  • Command: deposit(uint256 _pid, uint256 _amount)

  • Function: Warriors stake their TBTC, and the contract records their offering.

  • Rule: Once pledged, the path begins—there is no turning back without consequence.


The Silent Blade (Reward System)

  • Watcher: The TashiDo Algorithm tracks every moment.

  • Check Rewards: pendingReward(uint256 _pid, address _user)

  • Claim Rewards: claimReward(uint256 _pid)

  • Law: Loyalty is rewarded. Hesitation is punished. Patience brings power.


The Shōgun’s Command (Pool Creation & Management)

  • Create a Pool: addPool(IERC20 _stakedToken, IERC20 _rewardToken, uint256 _APY, uint256 _lockDays)

  • Purpose: The battlefield evolves—each pool has its own risks and rewards.

  • Wisdom: Some pools reward patience. Others reward boldness. Choose wisely.


The Path of No Return (Unstaking & Penalties)

  • Withdraw Safely: withdraw(uint256 _pid, uint256 _amount)

  • Emergency Exit: emergencyWithdraw(uint256 _pid)

  • Warning:

    • Serve your time, and you reclaim your honor unscathed.

    • Leave too soon, and the penalty strikes.


The Emperor’s Seal (Ownership & Control)

  • Owner Commands:

    • Check Master: owner()

    • Transfer Power: transferOwnership(address newOwner)

    • Step Down: renounceOwnership()

  • Legacy: The system stands strong yet adaptable, ensuring the Shōgun’s Vault endures through time.


Final Oath

This contract is more than code—it is the law of the Staking Samurai. Honor it. Master it. Claim your rightful rewards.