4. Deposit DAI into Public Pool
Description
Deposit DAI to public liquidity pool. Once you deposit your DAIs from your funds, you will receive reDAIs.
TBD: Narratives
User Interface
Function Description
Item | Description |
Contract Address | Public pool contract (referenced by Smart Contract Overview section) |
Contract Name | SLDDAIPools1.sol |
Function | function provide(uint256 mintAmount) |
Function Selector | 0x2e2ebe06 |
Invocation Type | Ethereum Transaction |
Passing Parameters | Amount of DAIs to deposit; actual number multiplied by 1E18 |
Return Value | None |
Event Emitted | event Provide(address indexed account, uint256 amount, uint256 writeAmount); |
Event Signature | 0x4089141ea5e4c16575f5ebf65f1786497ea07c175846fc7745ef8d8986a4ff65 |
Transaction Sample(BSC testnet) |
ABI Description
Examples
Calling Examples
HTTP Request Example
Send a Deposit Transaction
POST
(BSC Mainnet) https://bsc-dataseed.binance.org/
Make a deposit transaction to Shield Protocol V1 on BSC network. More details on how to send a transaction via BSC RPC could be found here, https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction
Request Body
Name | Type | Description |
---|---|---|
jsonrpc | string | "2.0" |
method | string | "eth_sendRawTransaction" |
params | array | the signed transaction data coerced into string array |
id | number | request sequence id, you could use timestamp as id |
Last updated