Skip to content

Commit

Permalink
CALLBACK_FEE_DEPOSIT->MAX_CALLBACK_FEE_DEPOSIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad Misić authored Aug 1, 2024
1 parent d037d57 commit d141d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions listings/applications/coin_flip/src/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod CoinFlip {
pub const PUBLISH_DELAY: u64 = 0; // return the random value asap
pub const NUM_OF_WORDS: u64 = 1; // one random value is sufficient
pub const CALLBACK_FEE_LIMIT: u128 = 100_000_000_000_000; // 0.0001 ETH
pub const CALLBACK_FEE_DEPOSIT: u256 = CALLBACK_FEE_LIMIT * 5; // needs to cover the Premium fee
pub const MAX_CALLBACK_FEE_DEPOSIT: u256 = CALLBACK_FEE_LIMIT * 5; // needs to cover the Premium fee

#[constructor]
fn constructor(
Expand Down Expand Up @@ -129,7 +129,7 @@ pub mod CoinFlip {

// Approve the randomness contract to transfer the callback deposit/fee
let eth_dispatcher = self.eth_dispatcher.read();
eth_dispatcher.approve(randomness_contract_address, CALLBACK_FEE_DEPOSIT);
eth_dispatcher.approve(randomness_contract_address, MAX_CALLBACK_FEE_DEPOSIT);

let nonce = self.nonce.read();

Expand Down

0 comments on commit d141d5e

Please sign in to comment.