We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9824067 commit 10ba827Copy full SHA for 10ba827
contracts/PiStable.rs
@@ -5,13 +5,13 @@ pub struct PiStable;
5
6
#[contractimpl]
7
impl PiStable {
8
- const STABLE_COIN_VALUE: u128 = 314159; // Pegged value in cents
+ const STABLE_COIN_VALUE: u128 = 31415900; // Pegged value in cents ($314,159)
9
const TOTAL_SUPPLY: u128 = 100_000_000_000; // Total supply of 100 billion tokens
10
11
pub fn initialize(env: Env) {
12
// Mint total supply to the contract owner
13
let owner: Address = env.current_contract_address();
14
- env.storage().persistent().set(&symbol!("total_supply"), &Self::TOTAL_SUPPLY);
+ env.storage().persistent().set(&symbol!("total_supply"), &0); // Initialize total supply to 0
15
env.storage().persistent().set(&symbol!("owner"), &owner);
16
}
17
0 commit comments