Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
74c4a650
Commit
74c4a650
authored
Dec 05, 2018
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add doc for unfreeze
parent
7a7287d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
doc.go
plugin/dapp/unfreeze/doc.go
+22
-0
No files found.
plugin/dapp/unfreeze/doc.go
0 → 100644
View file @
74c4a650
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// package unfreeze 提供了定期解冻合约的实现
// 功能描述:定期解冻合约帮助用户锁定一定量的币, 按在指定的规制解冻给受益人,
// 适用于分期付款, 分期支付形式的员工激励等情景。
//
// 合约提供了3类操作
// 1. 创建定期解冻合约:创建时需要指定支付的资产和总量,以及定期解冻的形式。
// 1. 受益人提币:受益人提走解冻了的资产。
// 1. 发起人终止合约: 发起人可以终止合约的履行。
//
// 解冻的形式目前支持两种
// 1. 固定数额解冻:指定时间间隔,解冻固定的资产。
// 1. 按剩余量的固定比例解冻:指定时间间隔,按剩余量的固定比例解冻。 这种方式,越到后面解冻的越少。
// 说明:在合约创建时, 就可以解冻一次。
// 举例, 一个固定数额解冻和合约, 总量为100, 一个月解冻10. 创建时可以由受益人提走10, 第一个月后又可以提走10.
// 在受益人没有及时提币的情况下, 受益人在一段时间之后可以一次性提走本该解冻的所有的币。 即解冻的币是按指定
// 形式解冻的,和受益人的提币时间和次数等都不会影响解冻的进程。
package
unfreeze
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment