Skip to content

Commit

Permalink
Updated Smart Contract README
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor committed Sep 5, 2024
1 parent 9d5849d commit 2801a94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions smart-contract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ Adds funds to the prize pool. This entry point can only be called by the contrac

| Arguments | Description |
|---------------------------|-------------------------------------------------|
| `amount` | Amount in motes (1,000,000,000 motes is 1 CSPR) |
| `amount` | Amount in motes (1 CSPR is 1,000,000,000 motes) |

### `transfer_fees_to_account`

Transfers the requested amount from the fee purse to receiver`s account. Reverts if the requested amount bigger than collected fees. This entry point can only be called by the contract owner (designated during deployment).

| Arguments | Description |
|-------------------------|-------------------------------------------------|
| `amount` | Amount in motes (1,000,000,000 motes is 1 CSPR) |
| `amount` | Amount in motes (1 CSPR is 1,000,000,000 motes) |
| `receiver` | Receiver account hash |

### `play_lottery`

Participates in the current lottery round by purchasing a ticket. This is a [`Payable`](https://odra.dev/docs/tutorials/odra-solidity#payable) entry point that needs to be called using [`proxy_caller`](https://odra.dev/docs/tutorials/using-proxy-caller)

| Arguments | Description |
|-----------------------|------------------------------------------------------|
| `amount` | Ticket price in motes (1,000,000,000 motes is 1 CSPR |
| Arguments | Description |
|-----------------------|-------------------------------------------------------|
| `amount` | Ticket price in motes (1 CSPR is 1,000,000,000 motes) |


## Usage
Expand Down

0 comments on commit 2801a94

Please sign in to comment.