-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
398023c
commit 9d27a03
Showing
7 changed files
with
42 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
|
||
|
||
[submodule "lib/chainlink-brownie-contracts"] | ||
path = lib/chainlink-brownie-contracts | ||
url = https://github.com/smartcontractkit/chainlink-brownie-contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule chainlink-brownie-contracts
added at
f06ed4
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.25; | ||
|
||
import {ConfirmedOwner} from "@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner.sol"; | ||
|
||
/** | ||
* @title dTSLA | ||
* @author Pandit Dhamdhere | ||
* @notice | ||
*/ | ||
|
||
contract dTSLA { | ||
/// Send an HTTP request to: | ||
// 1. How much TSLA is bought | ||
// 2. If enough TSLA is in the alpaca account, | ||
// mint dTSLA | ||
|
||
// Transaction function | ||
function sendMintRequest(uint256 amount) external onlyOwner {} | ||
|
||
function _mintFulFillRequest() internal {} | ||
|
||
/// @notice USER sends a request to sell TSLA for USDC or (Redemption token ) | ||
// This , have the chainlink function call our alpaca(bank) | ||
/// and do the following: | ||
// 1. Sell TSLA on the brokerage | ||
// 2. Buy USDC on the brokerage | ||
// 3. Send USDC to this contract for the user to withdraw | ||
|
||
function sendRedeemRequest() external {} | ||
|
||
function _redeemFulFillRequest() internal {} | ||
} |
This file was deleted.
Oops, something went wrong.