Skip to content

Commit

Permalink
docs: subaccount concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Oct 12, 2023
1 parent b932ead commit a6c5fb0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/specs/Reward/_sidebar.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!-- docs/_sidebar.md -->

* [Home](/)
* [About SGE Network](../../README.md)
* [Modules](../README.md)
* [Bet](../Bet/01_Overview.md)
Expand Down
22 changes: 21 additions & 1 deletion docs/specs/SubAccount/02_Concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@

Sub Account module is tasked with create, topup and fund/refund of a sub account.

>
## **Sub Account**

Sub Account is a special type of account that manipulating its balance can be done by the blockchain code logic and nobody can use `bank` or `staking` modules to transfer or use the subaccount balance to delegate.

> There is a One(None)-To-One relationship between a subaccount and its owner account, so a normal account is able to have a subaccount associated with it or no subaccount associated.
## **TopUp**

Sub Account balance can be topped up on demand and can be done by the transaction endpoints of the sub account module.

## **Withdrawal**

Sub Account unlocked balance can be withdrawn to the owner's account balance. this can be done by the transaction endpoints of the sub account module.

## **Wager**

Using the subaccount module transaction message interfaces, the owner is able to wager using the sub account module's balance.

## **HouseDeposit/Withdraw**

Using the subaccount module transaction message interfaces, the owner is able to deposit/withdraw to the house module using the sub account module's balance.
1 change: 1 addition & 0 deletions docs/specs/SubAccount/_sidebar.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!-- docs/_sidebar.md -->

* [Home](/)
* [About SGE Network](../../README.md)
* [Modules](../README.md)
* [Bet](../Bet/01_Overview.md)
Expand Down

0 comments on commit a6c5fb0

Please sign in to comment.