8000 GitHub - AlexChien/bank: 🏦A strange and virtual bank in Evolution Land.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AlexChien/bank

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bank

abstract

GringottsBank is a virtual bank in evolution land. It is a magic place it can give you kryptonite(KTON, an ERC20 token) as interest if you deposit RING into it.

kryptonite can also used to buy land assets in evolution land. Specifically, players can only buy the reserved land and other special lands with kryptonite.

deployment

deploy contract GringottsBank. constructor's paramaters:

  1. address _ring: address of token contract of RING
  2. address _kton: address of token contract of KTON

Usage

1. how to deposit RING

invoke

// _data = uint2Bytes(how_many_months_you_wants_to_lock_your_ring_for)
ring_.transfer(address_of_GringottsBank, amount_of_ring, _data)

2. How to withdraw RING after maturity

invoke GringottsBank.claimBack

3. how to withdraw RING before maturity

invoke

// _data = uint2Bytes(depositID)
kryptonite_.transfer(address_of_GringottsBank, amount_of_KTON_as_penalty, _data)

About

🏦A strange and virtual bank in Evolution Land.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0