Skip to content

Commit 10ba827

Browse files
authored
Update PiStable.rs
1 parent 9824067 commit 10ba827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/PiStable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ pub struct PiStable;
55

66
#[contractimpl]
77
impl PiStable {
8-
const STABLE_COIN_VALUE: u128 = 314159; // Pegged value in cents
8+
const STABLE_COIN_VALUE: u128 = 31415900; // Pegged value in cents ($314,159)
99
const TOTAL_SUPPLY: u128 = 100_000_000_000; // Total supply of 100 billion tokens
1010

1111
pub fn initialize(env: Env) {
1212
// Mint total supply to the contract owner
1313
let owner: Address = env.current_contract_address();
14-
env.storage().persistent().set(&symbol!("total_supply"), &Self::TOTAL_SUPPLY);
14+
env.storage().persistent().set(&symbol!("total_supply"), &0); // Initialize total supply to 0
1515
env.storage().persistent().set(&symbol!("owner"), &owner);
1616
}
1717

0 commit comments

Comments
 (0)