Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treasury cw20 template(comments removed) #36

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

debbypark99
Copy link

contracts -> treasury 폴더 안에 contracts.rs, error.rs, lib.rs, msg.rs, state.rs 총 5개의 rust file.

Config - Owner는 owner 변경을 포함한 모든 권한이 있음, Manager는 owner 변경을 제외한 모든 권한이 있음.
Execute - 해당 contract로 유저는 stake, unstake, fund, claim, update_config 총 4가지 execute를 할 수 있음
Query - GetConfig, StakedBalanceAtHeight, TotalStakedAtHeight, StakedValue, TotalValue, Claims, ListStakers 총 7가지 query를 할 수 있음.

To do

  1. max claim이 꼭 필요한가
  2. NFT까지 합치기
  3. 코드 내용 완벽하게 이해하고 test 돌리기

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.

1 participant